configure
changeset 8146 bfff4df36f0b
parent 8124 5226058345bf
child 8147 9802c269104f
     1.1 --- a/configure	Wed Jan 29 18:38:13 2014 -0800
     1.2 +++ b/configure	Thu Jan 30 20:27:13 2014 -0300
     1.3 @@ -20077,17 +20077,33 @@
     1.4  fi
     1.5  
     1.6              if test x$enable_video_x11_xrandr = xyes; then
     1.7 -                definitely_enable_video_x11_xrandr=no
     1.8 -                ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
     1.9 -
    1.10 -"
    1.11 -if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
    1.12 -  have_xrandr_h_hdr=yes
    1.13 -else
    1.14 -  have_xrandr_h_hdr=no
    1.15 -fi
    1.16 -
    1.17 -
    1.18 +                                definitely_enable_video_x11_xrandr=no
    1.19 +                have_xrandr_h_hdr=no
    1.20 +                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.21 +/* end confdefs.h.  */
    1.22 +
    1.23 +                #include <X11/Xlib.h>
    1.24 +                #include <X11/extensions/Xrandr.h>
    1.25 +
    1.26 +int
    1.27 +main ()
    1.28 +{
    1.29 +
    1.30 +                XRRScreenResources *res = NULL;
    1.31 +
    1.32 +  ;
    1.33 +  return 0;
    1.34 +}
    1.35 +_ACEOF
    1.36 +if ac_fn_c_try_compile "$LINENO"; then :
    1.37 +
    1.38 +                have_xrandr_h_hdr=yes
    1.39 +                $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
    1.40 +
    1.41 +                SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
    1.42 +
    1.43 +fi
    1.44 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.45                  if test x$have_xrandr_h_hdr = xyes; then
    1.46                      if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
    1.47                          echo "-- dynamic libXrandr -> $xrandr_lib"