summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-27 00:01:54 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-27 00:01:54 +0200
commit558f80d3d4c21ddd5fa1981574c449bc4d86ddfa (patch)
tree7b71f1152872f76c49ce8730ebc7b779838c68e7
parentc6b21d102908104ffe9b6103894f8c8fcf2ae7f4 (diff)
Add autoconf check for linux/input.h
Since X went modular, we cannot rely on LINUX_INPUT being defined even when the Linux input subsystem is available. Fix: add an autoconf rule that checks for linux/input.h and define LINUX_INPUT if the header is found.
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f93f430..d003861 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,6 +85,9 @@ AC_SUBST([CFLAGS])
# Checks for header files.
AC_HEADER_STDC
+AC_HEADER_CHECK([linux/input.h],
+ [AC_DEFINE([LINUX_INPUT], [1], [Using the Linux input subsystem])]
+ )
XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION