[network-manager-applet/NMA_0_8] build: allow explicit enabling/disabling of gnome-bluetooth dep (bgo #627663)



commit e523771e0d68c347763a004a3f9ac100db5cfbb2
Author: Dan Williams <dcbw redhat com>
Date:   Tue Aug 24 11:05:01 2010 -0500

    build: allow explicit enabling/disabling of gnome-bluetooth dep (bgo #627663)

 configure.ac |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1ab81f4..b2dd2cd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -97,12 +97,24 @@ fi
 AC_SUBST(DBUS_SYS_DIR)
 
 dnl Check for gnome-bluetooth
-PKG_CHECK_MODULES(GNOME_BLUETOOTH,
-		  gconf-2.0
-		  gnome-bluetooth-1.0 >= 2.27.6
-		  libnm-util >= 0.8.1
-		  libnm-glib >= 0.8.1,
-		  have_gbt=yes, have_gbt=no)
+AC_ARG_WITH([bluetooth],
+	    AS_HELP_STRING([--with-bluetooth|--without-bluetooth], [Enable Bluetooth support]),
+	    with_bluetooth="$withval",with_bluetooth=yes)
+have_gbt=no
+case "${with_bluetooth}" in
+	no)	AC_MSG_NOTICE(Bluetooth support disabled)
+		;;
+	*)
+		AC_MSG_CHECKING(for gnome-bluetooth)
+		PKG_CHECK_MODULES(GNOME_BLUETOOTH,
+				  gconf-2.0
+				  gnome-bluetooth-1.0 >= 2.27.6
+				  libnm-util >= 0.8.1
+				  libnm-glib >= 0.8.1,
+				  have_gbt=yes, have_gbt=no)
+		;;
+esac
+
 AM_CONDITIONAL(HAVE_GBT, test x"$have_gbt" = "xyes")
 
 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]