configure.in
changeset 6362 562a9fe60603
parent 6340 eadb3790009f
child 6365 975e23e06124
     1.1 --- a/configure.in	Wed Jul 11 22:20:02 2012 -0400
     1.2 +++ b/configure.in	Wed Jul 18 10:47:41 2012 -0700
     1.3 @@ -1106,7 +1106,24 @@
     1.4              ])
     1.5              AC_MSG_RESULT($have_const_param_XextAddDisplay)
     1.6  
     1.7 -            AC_CHECK_LIB(X11, XGetEventData, AC_DEFINE(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS, 1, [Have XGenericEvent]))
     1.8 +            dnl AC_CHECK_LIB(X11, XGetEventData, AC_DEFINE(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS, 1, [Have XGenericEvent]))
     1.9 +            AC_MSG_CHECKING([for XGenericEvent])
    1.10 +            have_XGenericEvent=no
    1.11 +            AC_TRY_COMPILE([
    1.12 +              	#include <X11/Xlib.h>
    1.13 +            ],[
    1.14 +Display *display;
    1.15 +XEvent event;
    1.16 +XGenericEventCookie *cookie = &event.xcookie;
    1.17 +XNextEvent(display, &event);
    1.18 +XGetEventData(display, cookie);
    1.19 +XFreeEventData(display, cookie);
    1.20 +            ],[
    1.21 +                have_XGenericEvent=yes
    1.22 +                AC_DEFINE(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS)
    1.23 +            ])
    1.24 +            AC_MSG_RESULT($have_XGenericEvent)
    1.25 +
    1.26              AC_CHECK_LIB(X11, XkbKeycodeToKeysym, AC_DEFINE(SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM, 1, [Have XkbKeycodeToKeysym]))
    1.27  
    1.28              AC_ARG_ENABLE(video-x11-xcursor,