summaryrefslogtreecommitdiff
blob: 71d1633d5e4c36ec182e170d90699cf56bb0b386 (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
--- gnome-applets-2.12.1/configure.in	2005-10-03 22:16:56.000000000 -0400
+++ gnome-applets-2.12.1.new/configure.in	2005-10-11 12:54:02.000000000 -0400
@@ -363,15 +363,23 @@
 
 HAL_CFLAGS=
 HAL_LIBS=
-PKG_CHECK_MODULES(HAL, hal >= $HAL_REQUIRED dbus-glib-1 >= $DBUS_GLIB_REQUIRED,
+AC_ARG_WITH(hal,[  --without-hal       build without hal support])
+
+if test "x$with_hal" != xno; then
+
+ PKG_CHECK_MODULES(HAL, hal >= $HAL_REQUIRED dbus-glib-1 >= $DBUS_GLIB_REQUIRED,
 		  HAVE_HAL="yes",
 		  HAVE_HAL="no")
 
-if test "x$HAVE_HAL" = "xyes"; then
+ if test "x$HAVE_HAL" = "xyes"; then
 	AC_DEFINE(HAVE_HAL, 1, [HAL available])
 	AC_MSG_RESULT(available)
-else
+ else
 	AC_MSG_RESULT(no)
+ fi
+ 
+else
+	AC_MSG_WARN(["Hal support disabled"])
 fi
 
 AC_SUBST(HAL_CFLAGS)