diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-12-29 10:19:48 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-12-29 10:19:48 +1000 |
commit | 0c7c087f77132657dd8ee342963bb1b51d659571 (patch) | |
tree | 78d1244c28b0785c4c17f4b6bff91d8fd9939cb3 /configure.ac | |
parent | ba9377c6d9e6d0d2813e471b516bb36902dae2ce (diff) |
Test for mtdev before assuming multitouch
If the XI2.2 headers are present but mtdev isn't, build without MULTITOUCH
defined.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 5671193..451a730 100644 --- a/configure.ac +++ b/configure.ac @@ -48,13 +48,14 @@ XORG_DEFAULT_OPTIONS PKG_CHECK_MODULES(XORG, [xorg-server >= 1.10] xproto inputproto) PKG_CHECK_MODULES(UDEV, udev) -PKG_CHECK_MODULES(XI22, [inputproto >= 2.1.99.3], - HAVE_XI22="yes"; AC_DEFINE(MULTITOUCH, 1, [XI2.2 available]), - HAVE_XI22="no") +PKG_CHECK_MODULES(XI22, [inputproto >= 2.1.99.3], HAVE_XI22="yes", HAVE_XI22="no") if test "x$HAVE_XI22" = xyes; then # Obtain compiler/linker options for mtdev - PKG_CHECK_MODULES(MTDEV, mtdev) + PKG_CHECK_MODULES(MTDEV, mtdev, HAVE_MTDEV="yes", HAVE_MTDEV="no") +fi +if test "x$HAVE_XI22" = xyes && test "x$HAVE_MTDEV" = xyes; then + AC_DEFINE(MULTITOUCH, 1, [XI2.2 available]) fi # Define a configure option for an alternate input module directory |