X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=configure.ac;h=bb084077795a196bd667d5964e0c9d812e9de265;hp=7e41d577bcb30736b03be1f091253cfce2dbdd96;hb=9b271c0316e59185f9ab5574c74d22b78bf6701d;hpb=03a170c03cd4a09721369ece48affb70d66c6b90 diff --git a/configure.ac b/configure.ac index 7e41d577b..bb0840777 100644 --- a/configure.ac +++ b/configure.ac @@ -236,8 +236,10 @@ AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include = 1.3.2]) - +# ------------------------------------------------------------------------------ +PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2], have_dbus=yes, have_dbus=no]) +AS_IF([test "$have_dbus" = "yes"], [ AC_DEFINE(HAVE_DBUS, [1], [Define if dbus-1 is available]) ]) +AM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"]) # ------------------------------------------------------------------------------ have_coverage=no