[Telepathy-commits] [telepathy-qt4/master] configure.ac: look for Python and dbus-python
Simon McVittie
simon.mcvittie at collabora.co.uk
Thu Dec 4 08:47:04 PST 2008
For the moment we're using the well-tested dbus.mainloop.glib (part
of dbus-python), rather than dbus.mainloop.qt (part of PyQt4).
---
configure.ac | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index d60ee62..ac4c087 100644
--- a/configure.ac
+++ b/configure.ac
@@ -164,6 +164,21 @@ if test -z "$PYTHON"; then
AC_MSG_ERROR([Python is required to compile this package])
fi
+# Check for Python >= 2.5 with dbus, to run the tests
+AC_MSG_CHECKING([for Python >= 2.5 with D-Bus bindings])
+for TEST_PYTHON in python2.5 python; do
+ if $TEST_PYTHON -c "from sys import version_info; raise SystemExit(version_info < (2, 5, 0, 'final', 0))" >/dev/null 2>&1; then
+ if $TEST_PYTHON -c "import dbus.mainloop.glib" >/dev/null 2>&1; then
+ AC_MSG_RESULT([$TEST_PYTHON])
+ break
+ else
+ TEST_PYTHON=false
+ fi
+ fi
+done
+AC_SUBST([TEST_PYTHON])
+AM_CONDITIONAL([HAVE_TEST_PYTHON], test false != "$TEST_PYTHON")
+
dnl Doxygen
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
--
1.5.6.5
More information about the Telepathy-commits
mailing list