[gtk+/multitouch: 71/129] configure: Detect XInput 2.1
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/multitouch: 71/129] configure: Detect XInput 2.1
- Date: Sat, 18 Feb 2012 17:12:18 +0000 (UTC)
commit 5c98ea081ef5cb8809f6b0b248270697bbf44d4e
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Feb 28 20:43:03 2011 +0100
configure: Detect XInput 2.1
configure.ac | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 75761d5..0960ffb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1126,6 +1126,10 @@ if test "x$enable_x11_backend" = xyes; then
AC_DEFINE(XINPUT_2, 1, [Define to 1 if XInput 2.0 is available]),
X_EXTENSIONS="$X_EXTENSIONS XInput")
+ gtk_save_LIBS="$LIBS"
+ LIBS="$LIBS -lXi"
+ AC_CHECK_FUNC(XIAllowTouchEvents, AC_DEFINE(XINPUT_2_1, 1, [Define to 1 if XInput 2.1 is available]))
+ LIBS="$gtk_save_LIBS"
else
AC_DEFINE(XINPUT_NONE, 1,
[Define to 1 if no XInput should be used])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]