From 521ea3f0f5484e5335433d4f4b6de73836257780 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 10 Dec 2012 07:58:41 +0000 Subject: [PATCH] xi2.2 is off by default UNLESS you --enable it... separated from xi2 which si very common and older - alwayson by default. 2.2 is an extension of 2.0 which adds new library functions, defines etc. SVN revision: 80575 --- configure.ac | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index d306ac35aa..ad50c61060 100644 --- a/configure.ac +++ b/configure.ac @@ -2588,7 +2588,7 @@ AC_MSG_NOTICE([Ecore_X checks]) ### Additional options to configure AC_ARG_ENABLE([gesture], - [AC_HELP_STRING([--enable-gesture], [enable X11 Gestures and Input2.])], + [AC_HELP_STRING([--enable-gesture], [enable X11 Gesture extension support])], [ if test "x${enableval}" = "xyes" ; then want_gesture="yes" @@ -2599,7 +2599,7 @@ AC_ARG_ENABLE([gesture], [want_gesture="no"]) AC_ARG_ENABLE([xinput2], - [AC_HELP_STRING([--disable-xinput2], [disable X11 XInput2.h usage])], + [AC_HELP_STRING([--disable-xinput2], [disable X11 XInput v2.x support])], [ if test "x${enableval}" = "xyes" ; then want_xinput2="yes" @@ -2609,6 +2609,17 @@ AC_ARG_ENABLE([xinput2], ], [want_xinput2="yes"]) +AC_ARG_ENABLE([xinput22], + [AC_HELP_STRING([--enable-xinput22], [enable X11 XInput v2.2+ support])], + [ + if test "x${enableval}" = "xyes" ; then + want_xinput22="yes" + else + want_xinput22="no" + fi + ], + [want_xinput22="no"]) + AC_ARG_ENABLE([xim], [AC_HELP_STRING([--disable-xim], [disable X Input Method.])], [ @@ -2752,7 +2763,9 @@ if test "x${want_x11_xlib}" = "xyes" ; then fi if test "${want_xinput2}" = "yes"; then ECORE_CHECK_X_EXTENSION([Xi2], [XInput2.h], [Xi], [XIQueryDevice]) - ECORE_CHECK_X_EXTENSION([Xi2_2], [XInput2.h], [Xi], [XIGrabTouchBegin]) + fi + if test "${want_xinput22}" = "yes"; then + ECORE_CHECK_X_EXTENSION([Xi2_2], [XInput2.h], [Xi],[XIGrabTouchBegin]) fi AC_DEFINE([HAVE_ECORE_X_XLIB], [1], [Defined to 1 if Xlib is enabled.]) @@ -3425,7 +3438,7 @@ echo echo "Ecore Graphic systems:" echo -echo " Ecore_X....................: ${with_x11} (pixman=${want_pixman}) (gesture=${want_gesture}) (xinput2=${want_xinput2})" +echo " Ecore_X....................: ${with_x11} (xgesture=${want_gesture}) (xi2=${want_xinput2}) (xi2.2=${want_xinput22})" echo " Ecore_Win32................: $have_win32" echo " Ecore_Cocoa................: $have_ecore_cocoa" echo " Ecore_SDL..................: $want_sdl"