From cd884f4e31e547768a7295673aa94641876ab69d Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Mon, 23 Mar 2020 17:40:12 +0100 Subject: [PATCH] build: added dependency check for python-dbus --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index 40e7f24..0561e4b 100644 --- a/configure.ac +++ b/configure.ac @@ -77,6 +77,20 @@ else AC_MSG_ERROR(python module requests not found) fi +dnl Check for dbus +AC_MSG_CHECKING(for dbus installed) +prog=" +import dbus +import dbus.service +from dbus.mainloop.glib import DBusGMainLoop +" +if $PYTHON -c "$prog" 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then + AC_MSG_RESULT(found) +else + AC_MSG_RESULT(not found) + AC_MSG_ERROR(python module dbus not found) +fi + AC_CONFIG_FILES([Makefile po/Makefile.in bin/Makefile