summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-03 20:20:46 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-03 20:20:46 +0000
commitd97274c4704598d691b639c39334c25d342792b8 (patch)
treed5876c7c2d33e77de091f25a8ec1f6a4729c3fae /acinclude.m4
parent2aab870f593da0b3ec83095e5ded93b900e4b600 (diff)
Bump D-Bus requirement
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m430
1 files changed, 9 insertions, 21 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 3313611c..33b2f5c0 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -80,25 +80,13 @@ AC_DEFUN([AC_PATH_BLUEZ], [
])
AC_DEFUN([AC_PATH_DBUS], [
- PKG_CHECK_MODULES(DBUS, dbus-1 > 0.35, dummy=yes,
- AC_MSG_ERROR(dbus > 0.35 is required))
- m4_ifdef([PKG_CHECK_EXISTS], [
- PKG_CHECK_EXISTS(dbus-1 < 0.95, DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE")
- if (test "${glib_found}" = "yes"); then
- dnl PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 > 0.60, dbus_glib_found=yes, dbus_glib_found=no)
- dbus_glib_found=no
- else
- dbus_glib_found=no
- fi
- ], [
- DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
- dbus_glib_found=no
- ])
- AC_SUBST(DBUS_CFLAGS)
- AC_SUBST(DBUS_LIBS)
+ PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, dummy=yes,
+ AC_MSG_ERROR(D-Bus library 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.]))
+ [Define to 1 if you need the dbus_watch_get_unix_fd() function.]))
+ AC_SUBST(DBUS_CFLAGS)
+ AC_SUBST(DBUS_LIBS)
])
AC_DEFUN([AC_PATH_GLIB], [
@@ -255,14 +243,14 @@ AC_DEFUN([AC_ARG_BLUEZ], [
dund_enable=${enableval}
])
- AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test], [install test programs]), [
- test_enable=${enableval}
- ])
-
AC_ARG_ENABLE(cups, AC_HELP_STRING([--enable-cups], [install CUPS backend support]), [
cups_enable=${enableval}
])
+ AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test], [install test programs]), [
+ test_enable=${enableval}
+ ])
+
AC_ARG_ENABLE(manpages, AC_HELP_STRING([--enable-manpages], [install Bluetooth manual pages]), [
manpages_enable=${enableval}
])