From 0c0c3fda5d74ce51575004bea0a30d6f582c47be Mon Sep 17 00:00:00 2001 From: glimmer07 Date: Sun, 12 Jul 2009 15:39:30 +0000 Subject: [PATCH] Test for Dbus and enable if found --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index b804d0deb..418990602 100644 --- a/configure.ac +++ b/configure.ac @@ -616,6 +616,19 @@ AM_CONDITIONAL(WITH_LIBWPG, test "x$with_libwpg" = "xyes") AC_SUBST(LIBWPG_LIBS) AC_SUBST(LIBWPG_CFLAGS) +dnl ****************************** +dnl Check for dbus functionality +dnl ****************************** + +PKG_CHECK_MODULES(DBUS, dbus-glib-1, with_dbus=yes, with_dbus=no) +if test "x$with_dbus" = "xyes"; then + AC_DEFINE(WITH_DBUS,1,[Build in dbus]) +fi +AM_CONDITIONAL(WITH_DBUS, test "x$with_dbus" = "xyes") + +AC_SUBST(DBUS_LIBS) +AC_SUBST(DBUS_CFLAGS) + dnl ****************************** dnl Check for ImageMagick Magick++ dnl ****************************** @@ -1008,6 +1021,7 @@ Configuration: Internal Python: ${with_python} Internal Perl: ${with_perl} Enable LittleCms: ${enable_lcms} + Enable DBUS ${with_dbus} Enable Inkboard: ${with_inkboard} Enable SSL in Inkboard: ${with_inkboard_ssl} Enable Poppler-Cairo: ${enable_poppler_cairo} -- 2.30.2