[gupnp] Default context manager is 'linux' on Linux



commit 6abc0a3825a70247635f3b2cb3281ba153488d31
Author: Ludovic Ferrandis <ludovic ferrandis linux intel com>
Date:   Fri May 25 10:25:27 2012 +0200

    Default context manager is 'linux' on Linux
    
    'unix' for all other platforms
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676803

 configure.ac |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c61517c..1e7964d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -61,7 +61,18 @@ AC_ARG_WITH([context_manager],
             AS_HELP_STRING(
                         [--with-context-manager=@<:@network-manager/connman/unix/linux@:>@],
                         [Context Manager backend to use]),,
-            [with_context_manager="unix"])
+            [with_context_manager="none"])
+
+if test "x$with_context_manager" = "xnone"; then
+        case "$target_os" in
+        linux*)
+                with_context_manager="linux"
+                ;;
+        *)
+                with_context_manager="unix"
+                ;;
+        esac
+fi
 
 AC_MSG_CHECKING([Context Manager backend to use])
 AC_MSG_RESULT([${with_context_manager}])



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