summaryrefslogtreecommitdiff
blob: 441da18053d75b3773dc3701e171035846e9f91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Index: configure.in
===================================================================
RCS file: /cvsroot/bluez/gnome/configure.in,v
retrieving revision 1.57
diff -u -r1.57 configure.in
--- configure.in	26 Dec 2007 12:02:30 -0000	1.57
+++ configure.in	26 Dec 2007 14:33:36 -0000
@@ -45,9 +45,11 @@
 DBUS_BINDING_TOOL="dbus-binding-tool"
 AC_SUBST(DBUS_BINDING_TOOL)
 
+AC_ARG_ENABLE(hal, AC_HELP_STRING([--enable-hal], [enable HAL support]))
+
 PKG_CHECK_MODULES(HAL, hal >= 0.5.8, [ 
-	AC_DEFINE(HAVE_HAL, 1, [Define to 1 if you have HAL support.])
-], dummy=no)
+	test "${enable_hal}" = "yes" && AC_DEFINE(HAVE_HAL, 1, [Define to 1 if you have HAL support.])
+], test "${enable_hal}" = "yes" && AC_MSG_ERROR(hal support needs hal >= 0.5.8 installed))
 AC_SUBST(HAL_CFLAGS)
 AC_SUBST(HAL_LIBS)
 
@@ -62,9 +64,11 @@
 AC_SUBST(GCONF_CFLAGS)
 AC_SUBST(GCONF_LIBS)
 
+AC_ARG_ENABLE(libnotify, AC_HELP_STRING([--enable-libnotify], [enable libnotify support]))
+
 PKG_CHECK_MODULES(NOTIFY, libnotify >= 0.3.2, [
-	AC_DEFINE(HAVE_LIBNOTIFY, 1, [Define to 1 if you have libnotify support.])
-], dummy=no)
+	test "${enable_libnotify}" = "yes" && AC_DEFINE(HAVE_LIBNOTIFY, 1, [Define to 1 if you have libnotify support.])
+], test "${enable_libnotify}" = "yes" && AC_MSG_ERROR(libnotify support needs libnotify >= 0.3.2 installed))
 AC_SUBST(NOTIFY_CFLAGS)
 AC_SUBST(NOTIFY_LIBS)