aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2016-11-18 21:49:44 +0100
committerPaul Fertser <fercerpav@gmail.com>2016-12-08 16:27:43 +0000
commita033a27f6e2b2a8d3207e7d95ba13d3956ecdfbf (patch)
tree5145d586fc57b2d3060ce0ed3257c240df0fce8b
parentf8d2262c4beab4e54951c6b1f242d95e78849316 (diff)
configure: Fail on enabling sysfsgpio on non-linux OS
Change-Id: I5036d8eca6a6e6ed47e3b9ff78bc3a3bf34491fb Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/3888 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0935c752..f7deae49 100644
--- a/configure.ac
+++ b/configure.ac
@@ -316,6 +316,14 @@ AC_ARG_ENABLE([sysfsgpio],
AS_HELP_STRING([--enable-sysfsgpio], [Enable building support for programming driven via sysfs gpios.]),
[build_sysfsgpio=$enableval], [build_sysfsgpio=no])
+AS_CASE([$host_os],
+ [linux*], [],
+ [
+ AS_IF([test "x$build_sysfsgpio" = "xyes"], [
+ AC_MSG_ERROR([sysfsgpio is only available on linux])
+ ])
+])
+
AC_ARG_ENABLE([minidriver_dummy],
AS_HELP_STRING([--enable-minidriver-dummy], [Enable the dummy minidriver.]),
[build_minidriver_dummy=$enableval], [build_minidriver_dummy=no])