[gnome-control-center] build: Make some panels requirements on Linux



commit 159cf523037c90bb0fc197cda021f9ccdbf7752b
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Apr 9 12:54:47 2015 +0200

    build: Make some panels requirements on Linux
    
    The Network, Bluetooth, Printers and Wacom panels are not optional on
    Linux systems (except S390 which doesn't have USB support).

 configure.ac |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cd59931..9f944b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -426,6 +426,21 @@ else
         AC_MSG_RESULT(no)
 fi
 
+case $host_os in
+  linux*)
+    if test "$host_cpu" = s390 -o "$host_cpu" = s390x; then
+      # Nothing
+      echo "USB-related panels disabled on S390"
+    else
+      if test "x$have_networkmanager" != "xyes" -o
+              "x$have_bluetooth" != "xyes" -o
+              "x$enable_cups" != "xyes" -o
+              "x$have_wacom" != "xyes"; then
+        AC_MSG_ERROR([The Network, Bluetooth, Printers and Wacom panels are not optional on Linux systems])
+     fi
+    fi
+    ;;
+esac
 
 AC_CONFIG_FILES([
 Makefile


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