configure.in
changeset 6316 a89c79a3f0cd
parent 6313 d86efd889847
child 6318 49b2cb56db6e
     1.1 --- a/configure.in	Wed May 30 15:21:13 2012 -0400
     1.2 +++ b/configure.in	Thu May 31 13:37:02 2012 +0300
     1.3 @@ -1192,6 +1192,23 @@
     1.4              fi
     1.5              if test x$definitely_enable_video_x11_xinput = xyes; then
     1.6                  AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT2, 1, [ ])
     1.7 +                AC_MSG_CHECKING(for xinput2 multitouch)
     1.8 +            	have_xinput2_multitouch=no
     1.9 +            	AC_TRY_COMPILE([
    1.10 +              		#include <X11/Xlib.h>
    1.11 +             		#include <X11/Xproto.h>
    1.12 +			#include <X11/extensions/XInput2.h>
    1.13 +            	],[
    1.14 +Status 
    1.15 +XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
    1.16 +{
    1.17 +    return (Status)0;
    1.18 +}
    1.19 +            	],[
    1.20 +            	have_xinput2_multitouch=yes
    1.21 +            	AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH)
    1.22 +            	])
    1.23 +            	AC_MSG_RESULT($have_xinput2_multitouch)
    1.24              fi
    1.25              AC_ARG_ENABLE(video-x11-xrandr,
    1.26  AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]),