[banshee] [build] Make GIO optional with --disable-gio configure switch.



commit feae16f4612ab8b638f2b8582f5739aa6ae66d68
Author: Alex Launi <alex launi gmail com>
Date:   Fri Jun 18 00:01:44 2010 -0400

    [build] Make GIO optional with --disable-gio configure switch.
    
    Fixes bgo#621315.

 build/m4/banshee/gio.m4 |   30 +++++++++++++++++-------------
 1 files changed, 17 insertions(+), 13 deletions(-)
---
diff --git a/build/m4/banshee/gio.m4 b/build/m4/banshee/gio.m4
index e0700be..16778d2 100644
--- a/build/m4/banshee/gio.m4
+++ b/build/m4/banshee/gio.m4
@@ -1,21 +1,25 @@
 AC_DEFUN([BANSHEE_CHECK_GIO_SHARP],
 [
 	GNOMESHARP_REQUIRED=2.8
+	
+	AC_ARG_ENABLE(gio, AC_HELP_STRING([--disable-gio], [Disable GIO for IO operations]), ,enable_gio="yes")
+	
+	if test "x$enable_gio" = "xyes"; then
+	   	PKG_CHECK_MODULES(GTKSHARP_BEANS,
+			gtk-sharp-beans-2.0 >= $GNOMESHARP_REQUIRED,
+			enable_gio=yes, enable_gio=no)
 
-    enable_gio=no
+		PKG_CHECK_MODULES(GIOSHARP,
+			gio-sharp-2.0 >= $GNOMESHARP_REQUIRED,
+			enable_gio="$enable_gio", enable_gio=no)
 
-	PKG_CHECK_MODULES(GTKSHARP_BEANS,
-		gtk-sharp-beans-2.0 >= $GNOMESHARP_REQUIRED,
-        enable_gio=yes, enable_gio=no)
+		PKG_CHECK_MODULES(GLIB_2_22,
+			glib-2.0 >= 2.22,
+			enable_gio="$enable_gio", enable_gio=no)
 
-	PKG_CHECK_MODULES(GIOSHARP,
-		gio-sharp-2.0 >= $GNOMESHARP_REQUIRED,
-        enable_gio="$enable_gio", enable_gio=no)
-
-	PKG_CHECK_MODULES(GLIB_2_22,
-		glib-2.0 >= 2.22,
-        enable_gio="$enable_gio", enable_gio=no)
-
-	AM_CONDITIONAL(ENABLE_GIO, test "x$enable_gio" = "xyes")
+		AM_CONDITIONAL(ENABLE_GIO, "x$enable_gio" = "xyes")
+	else
+		AM_CONDITIONAL(ENABLE_GIO, false)
+	fi
 ])
 



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