Only check for Linux-specific input APIs on Linux targets (thanks, Marcus!).
authorRyan C. Gordon <icculus@icculus.org>
Sat, 25 Apr 2015 20:49:26 -0400
changeset 9574 98c57505d74d
parent 9573 cc6cba65bf36
child 9575 957d1cf8e26f
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.
configure
configure.in
--- a/configure	Wed Apr 08 12:14:36 2015 +0200
+++ b/configure	Sat Apr 25 20:49:26 2015 -0400
@@ -23001,8 +23001,12 @@
         CheckLibUDev
         CheckDBus
         CheckIBus
-        CheckInputEvents
-        CheckInputKD
+        case $ARCH in
+          linux)
+              CheckInputEvents
+              CheckInputKD
+          ;;
+        esac
         CheckTslib
         CheckUSBHID
         CheckPTHREAD
--- a/configure.in	Wed Apr 08 12:14:36 2015 +0200
+++ b/configure.in	Sat Apr 25 20:49:26 2015 -0400
@@ -2897,8 +2897,12 @@
         CheckLibUDev
         CheckDBus
         CheckIBus
-        CheckInputEvents
-        CheckInputKD
+        case $ARCH in
+          linux)
+              CheckInputEvents
+              CheckInputKD
+          ;;
+        esac
         CheckTslib
         CheckUSBHID
         CheckPTHREAD