[grilo/debian: 14/23] build: Add --enable-grl-net



commit d8c6129cd3f1576f8aec4bf943e1d4984c101970
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Fri Mar 4 12:14:42 2011 +0100

    build: Add --enable-grl-net
    
    Add option to enable/disable Grilo Net library building.
    
    Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>

 configure.ac |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9999282..71171c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -109,12 +109,30 @@ PKG_CHECK_MODULES(GTU, gtk+-2.0 \
 
 AM_CONDITIONAL(BUILD_GRILO_TEST_UI, test "x$BUILD_GRILO_TEST_UI" = "xyes")
 
-# net library
+# ----------------------------------------------------------
+# NET LIBRARY
+# ----------------------------------------------------------
 
 PKG_CHECK_MODULES(NET, libsoup-2.4,
 			HAVE_LIBSOUP=yes,
 			HAVE_LIBSOUP=no)
 
+AC_ARG_ENABLE([grl_net],
+        AS_HELP_STRING([--enable-grl-net],
+                [Enable Grilo Net library (default: auto)]),
+        [
+                case "$enableval" in
+                     yes)
+                        if test "x$HAVE_LIBSOUP" = "xno"; then
+                           AC_MSG_ERROR([libsoup-2.4 not found, install it or use --disable-grl-net])
+                        fi
+                        ;;
+                     no)
+                        HAVE_LIBSOUP=no
+                        ;;
+                esac
+        ])
+
 AM_CONDITIONAL(BUILD_GRILO_NET, test "x$HAVE_LIBSOUP" = "xyes")
 
 # ----------------------------------------------------------



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