summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-04-09 12:54:47 +0200
committerBastien Nocera <hadess@hadess.net>2015-04-09 13:01:53 +0200
commit159cf523037c90bb0fc197cda021f9ccdbf7752b (patch)
tree19fc87999dbe3f4db07d297fa274b04f6c020a63
parenta43d59dc86d507945f92816deb18117a417114b4 (diff)
downloadgnome-control-center-159cf523037c90bb0fc197cda021f9ccdbf7752b.tar.gz
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).
-rw-r--r--configure.ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cd59931bf..9f944b04d 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