configure.in
changeset 3025 54fac87e1f34
parent 3014 cacb282192a1
child 3032 77c3e67f0740
equal deleted inserted replaced
3024:1a08749aebce 3025:54fac87e1f34
  1018                     x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  1018                     x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  1019                     x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  1019                     x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  1020                     xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  1020                     xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  1021                     xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  1021                     xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  1022                     xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  1022                     xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
       
  1023                     xss_lib='/usr/X11R6/lib/libXss.6.dylib'
  1023                     ;;
  1024                     ;;
  1024                 *-*-osf*)
  1025                 *-*-osf*)
  1025                     x11_lib='libX11.so'
  1026                     x11_lib='libX11.so'
  1026                     x11ext_lib='libXext.so'
  1027                     x11ext_lib='libXext.so'
  1027                     ;;
  1028                     ;;
  1060                             xinput_lib=[`ls -- $path/libXi.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
  1061                             xinput_lib=[`ls -- $path/libXi.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
  1061                             if test "x$xinput_lib" = "x"; then
  1062                             if test "x$xinput_lib" = "x"; then
  1062                                 xinput_lib=[`ls -- $path/libXi.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
  1063                                 xinput_lib=[`ls -- $path/libXi.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
  1063                             fi
  1064                             fi
  1064                         fi
  1065                         fi
       
  1066                         if test "x$xss_lib" = "x"; then
       
  1067                             xss_lib=[`ls -- $path/libXss.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
       
  1068                             if test "x$xss_lib" = "x"; then
       
  1069                                 xss_lib=[`ls -- $path/libXss.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
       
  1070                             fi
       
  1071                         fi
  1065                     done
  1072                     done
  1066                     ;;
  1073                     ;;
  1067             esac
  1074             esac
  1068 
  1075 
  1069             if test x$ac_cv_func_shmat != xyes; then
  1076             if test x$ac_cv_func_shmat != xyes; then
  1121 AC_HELP_STRING([--enable-video-x11-xinerama], [enable X11 Xinerama support [[default=yes]]]),
  1128 AC_HELP_STRING([--enable-video-x11-xinerama], [enable X11 Xinerama support [[default=yes]]]),
  1122                             , enable_video_x11_xinerama=yes)
  1129                             , enable_video_x11_xinerama=yes)
  1123             if test x$enable_video_x11_xinerama = xyes; then
  1130             if test x$enable_video_x11_xinerama = xyes; then
  1124                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA)
  1131                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA)
  1125                 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
  1132                 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
  1126             fi
       
  1127             AC_ARG_ENABLE(video-x11-xme,
       
  1128 AC_HELP_STRING([--enable-video-x11-xme], [enable Xi Graphics XME for fullscreen [[default=yes]]]),
       
  1129                             , enable_video_x11_xme=yes)
       
  1130             if test x$enable_video_x11_xme = xyes; then
       
  1131                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XME)
       
  1132                 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c"
       
  1133             fi
  1133             fi
  1134             AC_ARG_ENABLE(video-x11-xrandr,
  1134             AC_ARG_ENABLE(video-x11-xrandr,
  1135 AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]),
  1135 AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]),
  1136                             , enable_video_x11_xrandr=yes)
  1136                             , enable_video_x11_xrandr=yes)
  1137             if test x$enable_video_x11_xrandr = xyes; then
  1137             if test x$enable_video_x11_xrandr = xyes; then
  1186                 fi
  1186                 fi
  1187             fi
  1187             fi
  1188             if test x$definitely_enable_video_x11_xinput = xyes; then
  1188             if test x$definitely_enable_video_x11_xinput = xyes; then
  1189                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT)
  1189                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT)
  1190             fi
  1190             fi
  1191             AC_ARG_ENABLE(video-x11-dpms,
  1191             AC_ARG_ENABLE(video-x11-scrnsaver,
  1192 AC_HELP_STRING([--enable-video-x11-dpms], [enable X11 DPMS extension [[default=yes]]]),
  1192 AC_HELP_STRING([--enable-video-x11-scrnsaver], [enable X11 screensaver extension [[default=yes]]]),
  1193                             , enable_video_x11_dpms=yes)
  1193                             , enable_video_x11_scrnsaver=yes)
  1194             if test x$enable_video_x11_dpms = xyes; then
  1194             if test x$enable_video_x11_scrnsaver = xyes; then
  1195                 AC_CHECK_HEADER(X11/extensions/dpms.h,
  1195                 AC_CHECK_HEADER(X11/extensions/scrnsaver.h,
  1196                                 have_dpms_h_hdr=yes,
  1196                                 have_scrnsaver_h_hdr=yes,
  1197                                 have_dpms_h_hdr=no,
  1197                                 have_scrnsaver_h_hdr=no,
  1198                                 [#include <X11/Xlib.h>
  1198                                 [#include <X11/Xlib.h>
  1199                                 ])
  1199                                 ])
  1200                 if test x$have_dpms_h_hdr = xyes; then
  1200                 if test x$have_scrnsaver_h_hdr = xyes; then
  1201                     AC_DEFINE(SDL_VIDEO_DRIVER_X11_DPMS)
  1201                     if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
       
  1202                         echo "-- dynamic libXss -> $xss_lib"
       
  1203                         AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS, "$xss_lib")
       
  1204                         definitely_enable_video_x11_scrnsaver=yes
       
  1205                     else
       
  1206                         AC_CHECK_LIB(Xss, XScreenSaverSuspend, have_xss_lib=yes)
       
  1207                         if test x$have_xss_lib = xyes ; then
       
  1208                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
       
  1209                             definitely_enable_video_x11_scrnsaver=yes
       
  1210                         fi
       
  1211                     fi
  1202                 fi
  1212                 fi
       
  1213             fi
       
  1214             if test x$definitely_enable_video_x11_scrnsaver = xyes; then
       
  1215                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_SCRNSAVER)
  1203             fi
  1216             fi
  1204 
  1217 
  1205             AC_ARG_ENABLE(render-x11,
  1218             AC_ARG_ENABLE(render-x11,
  1206 AC_HELP_STRING([--enable-render-x11], [enable the X11 render driver [[default=yes]]]),
  1219 AC_HELP_STRING([--enable-render-x11], [enable the X11 render driver [[default=yes]]]),
  1207                                 , enable_render_x11=yes)
  1220                                 , enable_render_x11=yes)