blob: da2f10c72607dbe59fd9e72426b40ff47bff8b75 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001When building the dbus-ptest package, we have to enable python. However
2checking if the host-system python has the necessary library isn't useful.
3
4Disable the python module check for cross compiling.
5
6Upstream-Status: Inappropriate [oe specific]
7
8Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050010---
11 configure.ac | 7 -------
12 1 file changed, 7 deletions(-)
13
14diff --git a/configure.ac b/configure.ac
15index 80d27b4..becc1cc 100644
16--- a/configure.ac
17+++ b/configure.ac
18@@ -279,13 +279,6 @@ if test "x$enable_tests" = xyes; then
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019 # full test coverage is required, Python is a hard dependency
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050020 AC_MSG_NOTICE([Full test coverage (--enable-tests=yes) requires Python, dbus-python, pygi])
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021 AM_PATH_PYTHON([2.6])
22- AC_MSG_CHECKING([for Python modules for full test coverage])
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050023- if "$PYTHON" -c "import dbus, gi.repository.GObject, dbus.mainloop.glib"; then
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024- AC_MSG_RESULT([yes])
25- else
26- AC_MSG_RESULT([no])
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027- AC_MSG_ERROR([cannot import dbus, gi.repository.GObject, dbus.mainloop.glib Python modules])
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028- fi
29 else
30 # --enable-tests not given: do not abort if Python is missing
31 AM_PATH_PYTHON([2.6], [], [:])
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050032--
331.9.1
34