[PATCH weston] build: check for INPUT_PROP_MAX in linux/input.h

Adrian Negreanu groleo at gmail.com
Tue Jul 2 07:26:27 PDT 2013


From: Adrian Negreanu <adrian.m.negreanu at intel.com>

Signed-off-by: Adrian Negreanu <adrian.m.negreanu at intel.com>
---
 configure.ac | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/configure.ac b/configure.ac
index 726eb4f..2216e16 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,6 +52,22 @@ AC_CHECK_DECL(CLOCK_MONOTONIC,[],
 	      [[#include <time.h>]])
 AC_CHECK_HEADERS([execinfo.h])
 
+AC_CHECK_HEADERS([linux/input.h])
+
+AC_MSG_CHECKING([INPUT_PROP_MAX in linux/input.h])
+AC_EGREP_CPP(yes_have_INPUT_PROP_MAX, [
+#include <linux/input.h>
+#ifdef INPUT_PROP_MAX
+yes_have_INPUT_PROP_MAX
+#endif
+], [
+    AC_MSG_RESULT([yes])
+], [
+    AC_MSG_RESULT([no])
+    AC_ERROR([INPUT_PROP_MAX is missing from linux/input.h])
+])
+
+
 AC_CHECK_FUNCS([mkostemp strchrnul])
 
 COMPOSITOR_MODULES="wayland-server >= 1.1.90 pixman-1"
-- 
1.8.0



More information about the wayland-devel mailing list