[mutter/wip/multitouch: 1/8] configure: Look for Multitouch API in XInput2
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/multitouch: 1/8] configure: Look for Multitouch API in XInput2
- Date: Sat, 6 Aug 2011 09:16:03 +0000 (UTC)
commit eecbc2233a253e4c1c590c323ed8248eec3960c0
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Aug 2 18:50:43 2011 +0200
configure: Look for Multitouch API in XInput2
configure.in | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 10590d9..c59e064 100644
--- a/configure.in
+++ b/configure.in
@@ -265,6 +265,23 @@ fi
AM_CONDITIONAL(HAVE_XINPUT2, test "$have_xinput2" = "yes")
+if test x$have_xinput2 = xyes; then
+ mutter_save_libs="$LIBS"
+ LIBS="-lXi $LIBS"
+
+ AC_CHECK_FUNC(XIAllowTouchEvents,
+ have_xtouch=yes,
+ have_xtouch=no)
+
+ LIBS="$mutter_save_libs"
+else
+ have_xtouch=no
+fi
+
+if test x$have_xtouch = xyes; then
+ AC_DEFINE(HAVE_XTOUCH, , [Building with X touch events])
+fi
+
PKG_CHECK_MODULES(MUTTER, $MUTTER_PC_MODULES)
AC_PATH_XTRA
@@ -585,6 +602,7 @@ mutter-$VERSION
Xsync: ${found_xsync}
Xcursor: ${have_xcursor}
XInput2: ${have_xinput2}
+ Touch events: ${have_xtouch}
"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]