From 26e12e21762c8400f6d27410ec3bacfa70d1ef6b Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 6 Apr 2009 11:33:18 +0200 Subject: [PATCH] Fix compilation with old D-Bus 1.0.x installations --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 16025ac..80c4611 100644 --- a/configure.ac +++ b/configure.ac @@ -203,6 +203,9 @@ fi PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, dummy=yes, AC_MSG_ERROR(D-Bus >= 1.0 is required)) +AC_CHECK_LIB(dbus-1, dbus_watch_get_unix_fd, dummy=yes, + AC_DEFINE(NEED_DBUS_WATCH_GET_UNIX_FD, 1, + [Define to 1 if you need the dbus_watch_get_unix_fd() function.])) AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) DBUS_DATADIR="`$PKG_CONFIG --variable=sysconfdir dbus-1`" -- 2.7.4