diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2008-09-05 21:54:45 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2008-09-05 21:54:45 +0200 |
commit | 69939608df5a3af1aba01bf78513137758590cf1 (patch) | |
tree | 51255fc8a9127c207d26631881a0436ba1271014 /skype/configure.ac | |
parent | 15e220045ffd8fdc88a953cf4b4bbfc3ca1c5692 (diff) |
check for the skype4py python module and disable skyped if not available
Diffstat (limited to 'skype/configure.ac')
-rw-r--r-- | skype/configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/skype/configure.ac b/skype/configure.ac index 4fefe614..a168d5ac 100644 --- a/skype/configure.ac +++ b/skype/configure.ac @@ -32,6 +32,19 @@ PKG_CHECK_MODULES(BITLBEE, bitlbee) CFLAGS="$CFLAGS $BITLBEE_CFLAGS" LDFLAGS="$LDFLAGS $BITLBEE_LIBS" prefix=`$PKG_CONFIG --variable=prefix bitlbee` + +dnl Check for Skype4Py +AC_MSG_CHECKING(for Python module Skype4Py) +python -c "import Skype4Py" +if test "$?" != "0"; then + AC_MSG_RESULT(no) + SKYPE4PY="no" +else + AC_MSG_RESULT(yes) + SKYPE4PY="yes" +fi +AC_SUBST(SKYPE4PY) + AC_OUTPUT(config.mak) AC_OUTPUT(skyped.conf.dist) @@ -40,6 +53,7 @@ echo " linker flags: $LDFLAGS shared object flags: $SHARED_FLAGS shared object extension: $SHARED_EXT + skyped: $SKYPE4PY install program: $INSTALL prefix: $prefix sysconfig dir: $sysconfdir/skyped |