configure.in
changeset 8146 bfff4df36f0b
parent 8124 5226058345bf
child 8147 9802c269104f
     1.1 --- a/configure.in	Wed Jan 29 18:38:13 2014 -0800
     1.2 +++ b/configure.in	Thu Jan 30 20:27:13 2014 -0300
     1.3 @@ -1508,12 +1508,19 @@
     1.4  AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]),
     1.5                              , enable_video_x11_xrandr=yes)
     1.6              if test x$enable_video_x11_xrandr = xyes; then
     1.7 +                dnl XRRScreenResources is only present in Xrandr >= 1.2, we use that as a test.
     1.8                  definitely_enable_video_x11_xrandr=no
     1.9 -                AC_CHECK_HEADER(X11/extensions/Xrandr.h,
    1.10 -                                have_xrandr_h_hdr=yes,
    1.11 -                                have_xrandr_h_hdr=no,
    1.12 -                                [#include <X11/Xlib.h>
    1.13 -                                ])
    1.14 +                have_xrandr_h_hdr=no
    1.15 +                AC_TRY_COMPILE([
    1.16 +                #include <X11/Xlib.h>
    1.17 +                #include <X11/extensions/Xrandr.h>
    1.18 +                ],[
    1.19 +                XRRScreenResources *res = NULL;
    1.20 +                ],[
    1.21 +                have_xrandr_h_hdr=yes
    1.22 +                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH)
    1.23 +                SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
    1.24 +                ])
    1.25                  if test x$have_xrandr_h_hdr = xyes; then
    1.26                      if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
    1.27                          echo "-- dynamic libXrandr -> $xrandr_lib"