build: added dependency check for python-dbus

This commit is contained in:
Martin Wagner 2020-03-23 17:40:12 +01:00
parent 9c181776d6
commit cd884f4e31

View File

@ -77,6 +77,20 @@ else
AC_MSG_ERROR(python module requests not found) AC_MSG_ERROR(python module requests not found)
fi 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 AC_CONFIG_FILES([Makefile
po/Makefile.in po/Makefile.in
bin/Makefile bin/Makefile