configure.in
changeset 8146 bfff4df36f0b
parent 8124 5226058345bf
child 8147 9802c269104f
equal deleted inserted replaced
8145:663d7d9de9bf 8146:bfff4df36f0b
  1506             fi
  1506             fi
  1507             AC_ARG_ENABLE(video-x11-xrandr,
  1507             AC_ARG_ENABLE(video-x11-xrandr,
  1508 AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]),
  1508 AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]),
  1509                             , enable_video_x11_xrandr=yes)
  1509                             , enable_video_x11_xrandr=yes)
  1510             if test x$enable_video_x11_xrandr = xyes; then
  1510             if test x$enable_video_x11_xrandr = xyes; then
       
  1511                 dnl XRRScreenResources is only present in Xrandr >= 1.2, we use that as a test.
  1511                 definitely_enable_video_x11_xrandr=no
  1512                 definitely_enable_video_x11_xrandr=no
  1512                 AC_CHECK_HEADER(X11/extensions/Xrandr.h,
  1513                 have_xrandr_h_hdr=no
  1513                                 have_xrandr_h_hdr=yes,
  1514                 AC_TRY_COMPILE([
  1514                                 have_xrandr_h_hdr=no,
  1515                 #include <X11/Xlib.h>
  1515                                 [#include <X11/Xlib.h>
  1516                 #include <X11/extensions/Xrandr.h>
  1516                                 ])
  1517                 ],[
       
  1518                 XRRScreenResources *res = NULL;
       
  1519                 ],[
       
  1520                 have_xrandr_h_hdr=yes
       
  1521                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH)
       
  1522                 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
       
  1523                 ])
  1517                 if test x$have_xrandr_h_hdr = xyes; then
  1524                 if test x$have_xrandr_h_hdr = xyes; then
  1518                     if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  1525                     if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  1519                         echo "-- dynamic libXrandr -> $xrandr_lib"
  1526                         echo "-- dynamic libXrandr -> $xrandr_lib"
  1520                         AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib", [ ])
  1527                         AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib", [ ])
  1521                         definitely_enable_video_x11_xrandr=yes
  1528                         definitely_enable_video_x11_xrandr=yes