configure.in
changeset 1942 4371d679ee12
parent 1940 255fb6feae0d
child 1944 91f41fc124a7
equal deleted inserted replaced
1941:bf09d535e014 1942:4371d679ee12
  1484                 fi
  1484                 fi
  1485         esac
  1485         esac
  1486     fi
  1486     fi
  1487 }
  1487 }
  1488 
  1488 
  1489 dnl Find glSDL
       
  1490 CheckglSDL()
       
  1491 {
       
  1492     AC_ARG_ENABLE(video-glsdl,
       
  1493 [  --enable-video-glsdl    use glSDL video driver [default=yes]],
       
  1494                   , enable_video_glsdl=yes)
       
  1495     AC_MSG_CHECKING(for glSDL support)
       
  1496     AC_MSG_RESULT($video_opengl)
       
  1497     if test x$video_opengl = xyes -a x$enable_video_glsdl = xyes; then
       
  1498         AC_DEFINE(SDL_VIDEO_DRIVER_GLSDL)
       
  1499         SOURCES="$SOURCES $srcdir/src/video/glsdl/*.c"
       
  1500     fi
       
  1501 }
       
  1502 
       
  1503 dnl Check for Mesa offscreen rendering
  1489 dnl Check for Mesa offscreen rendering
  1504 CheckAtariOSMesa()
  1490 CheckAtariOSMesa()
  1505 {
  1491 {
  1506     if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then
  1492     if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then
  1507         AC_CHECK_HEADER(GL/osmesa.h, have_osmesa_hdr=yes)
  1493         AC_CHECK_HEADER(GL/osmesa.h, have_osmesa_hdr=yes)
  2104         CheckWscons
  2090         CheckWscons
  2105         CheckAAlib
  2091         CheckAAlib
  2106         CheckQtopia
  2092         CheckQtopia
  2107         CheckPicoGUI
  2093         CheckPicoGUI
  2108         CheckOpenGLX11
  2094         CheckOpenGLX11
  2109         CheckglSDL
       
  2110         CheckInputEvents
  2095         CheckInputEvents
  2111         CheckTslib
  2096         CheckTslib
  2112         CheckUSBHID
  2097         CheckUSBHID
  2113         CheckPTHREAD
  2098         CheckPTHREAD
  2114         CheckClockGettime
  2099         CheckClockGettime
  2203         CheckDLOPEN
  2188         CheckDLOPEN
  2204         CheckNAS
  2189         CheckNAS
  2205         CheckPHOTON
  2190         CheckPHOTON
  2206         CheckX11
  2191         CheckX11
  2207         CheckOpenGLX11
  2192         CheckOpenGLX11
  2208         CheckglSDL
       
  2209         CheckPTHREAD
  2193         CheckPTHREAD
  2210         # Set up files for the audio library
  2194         # Set up files for the audio library
  2211         if test x$enable_audio = xyes; then
  2195         if test x$enable_audio = xyes; then
  2212             AC_DEFINE(SDL_AUDIO_DRIVER_QNXNTO)
  2196             AC_DEFINE(SDL_AUDIO_DRIVER_QNXNTO)
  2213             SOURCES="$SOURCES $srcdir/src/audio/nto/*.c"
  2197             SOURCES="$SOURCES $srcdir/src/audio/nto/*.c"
  2241         CheckDummyVideo
  2225         CheckDummyVideo
  2242         CheckDiskAudio
  2226         CheckDiskAudio
  2243         CheckDummyAudio
  2227         CheckDummyAudio
  2244         CheckWIN32
  2228         CheckWIN32
  2245         CheckWIN32GL
  2229         CheckWIN32GL
  2246         CheckglSDL
       
  2247         CheckDIRECTX
  2230         CheckDIRECTX
  2248         CheckNASM
  2231         CheckNASM
  2249         # Set up files for the video library
  2232         # Set up files for the video library
  2250         if test x$enable_video = xyes; then
  2233         if test x$enable_video = xyes; then
  2251             AC_DEFINE(SDL_VIDEO_DRIVER_WIN32)
  2234             AC_DEFINE(SDL_VIDEO_DRIVER_WIN32)
  2326         CheckDiskAudio
  2309         CheckDiskAudio
  2327         CheckDummyAudio
  2310         CheckDummyAudio
  2328         CheckNASM
  2311         CheckNASM
  2329         CheckBWINDOW
  2312         CheckBWINDOW
  2330         CheckBeGL
  2313         CheckBeGL
  2331         CheckglSDL
       
  2332         # Set up files for the audio library
  2314         # Set up files for the audio library
  2333         if test x$enable_audio = xyes; then
  2315         if test x$enable_audio = xyes; then
  2334             AC_DEFINE(SDL_AUDIO_DRIVER_BAUDIO)
  2316             AC_DEFINE(SDL_AUDIO_DRIVER_BAUDIO)
  2335             SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
  2317             SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
  2336             have_audio=yes
  2318             have_audio=yes
  2407 
  2389 
  2408         CheckCOCOA
  2390         CheckCOCOA
  2409         CheckX11
  2391         CheckX11
  2410         CheckMacGL
  2392         CheckMacGL
  2411         CheckOpenGLX11
  2393         CheckOpenGLX11
  2412         CheckglSDL
       
  2413         CheckPTHREAD
  2394         CheckPTHREAD
  2414         CheckAltivec
  2395         CheckAltivec
  2415 
  2396 
  2416         # Need this or things might misbuild on a G3.
  2397         # Need this or things might misbuild on a G3.
  2417         EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
  2398         EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
  2461         CheckAtariXbiosVideo
  2442         CheckAtariXbiosVideo
  2462         CheckAtariGemVideo
  2443         CheckAtariGemVideo
  2463         CheckAtariAudio
  2444         CheckAtariAudio
  2464         CheckAtariLdg
  2445         CheckAtariLdg
  2465         CheckAtariOSMesa
  2446         CheckAtariOSMesa
  2466         CheckglSDL
       
  2467         CheckPTH
  2447         CheckPTH
  2468         # Set up files for the audio library
  2448         # Set up files for the audio library
  2469         if test x$enable_threads = xyes -a x$enable_pth = xyes; then
  2449         if test x$enable_threads = xyes -a x$enable_pth = xyes; then
  2470             if test x$enable_audio = xyes; then
  2450             if test x$enable_audio = xyes; then
  2471                 AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO)
  2451                 AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO)