Commit 5c09bf73b2a0d129cfdcfa1d831ffc453b8cb417

Ryan C. Gordon 2015-04-25T20:49:26

Only check for Linux-specific input APIs on Linux targets (thanks, Marcus!). This is only for the configure script. The CMake project files already make this Linux-exclusive. Fixes Bugzilla #2659.

diff --git a/configure b/configure
index 42283e1..314c439 100755
--- a/configure
+++ b/configure
@@ -23001,8 +23001,12 @@ case "$host" in
         CheckLibUDev
         CheckDBus
         CheckIBus
-        CheckInputEvents
-        CheckInputKD
+        case $ARCH in
+          linux)
+              CheckInputEvents
+              CheckInputKD
+          ;;
+        esac
         CheckTslib
         CheckUSBHID
         CheckPTHREAD
diff --git a/configure.in b/configure.in
index 38c682b..fd4200c 100644
--- a/configure.in
+++ b/configure.in
@@ -2897,8 +2897,12 @@ case "$host" in
         CheckLibUDev
         CheckDBus
         CheckIBus
-        CheckInputEvents
-        CheckInputKD
+        case $ARCH in
+          linux)
+              CheckInputEvents
+              CheckInputKD
+          ;;
+        esac
         CheckTslib
         CheckUSBHID
         CheckPTHREAD