Mercurial > sdl-ios-xcode
comparison configure.in @ 1952:420716272158
Implemented X11 OpenGL support.
Added support for the SDL_VIDEO_OPENGL environment variable.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 28 Jul 2006 08:43:17 +0000 |
parents | 3182150b470f |
children | 754847f19490 |
comparison
equal
deleted
inserted
replaced
1951:7177581dc9fa | 1952:420716272158 |
---|---|
1357 fi | 1357 fi |
1358 } | 1358 } |
1359 | 1359 |
1360 dnl Check to see if OpenGL support is desired | 1360 dnl Check to see if OpenGL support is desired |
1361 AC_ARG_ENABLE(video-opengl, | 1361 AC_ARG_ENABLE(video-opengl, |
1362 AC_HELP_STRING([--enable-video-opengl], [include OpenGL context creation [[default=yes]]]), | 1362 AC_HELP_STRING([--enable-video-opengl], [include OpenGL support [[default=yes]]]), |
1363 , enable_video_opengl=yes) | 1363 , enable_video_opengl=yes) |
1364 | 1364 |
1365 dnl Find OpenGL | 1365 dnl Find OpenGL |
1366 CheckOpenGLX11() | 1366 CheckOpenGLX11() |
1367 { | 1367 { |
1377 ]) | 1377 ]) |
1378 AC_MSG_RESULT($video_opengl) | 1378 AC_MSG_RESULT($video_opengl) |
1379 if test x$video_opengl = xyes; then | 1379 if test x$video_opengl = xyes; then |
1380 AC_DEFINE(SDL_VIDEO_OPENGL) | 1380 AC_DEFINE(SDL_VIDEO_OPENGL) |
1381 AC_DEFINE(SDL_VIDEO_OPENGL_GLX) | 1381 AC_DEFINE(SDL_VIDEO_OPENGL_GLX) |
1382 AC_DEFINE(SDL_VIDEO_RENDER_OGL) | |
1382 fi | 1383 fi |
1383 fi | 1384 fi |
1384 } | 1385 } |
1385 | 1386 |
1386 dnl Find QNX RtP OpenGL | 1387 dnl Find QNX RtP OpenGL |
1396 video_opengl=yes | 1397 video_opengl=yes |
1397 ]) | 1398 ]) |
1398 AC_MSG_RESULT($video_opengl) | 1399 AC_MSG_RESULT($video_opengl) |
1399 if test x$video_opengl = xyes; then | 1400 if test x$video_opengl = xyes; then |
1400 AC_DEFINE(SDL_VIDEO_OPENGL) | 1401 AC_DEFINE(SDL_VIDEO_OPENGL) |
1402 AC_DEFINE(SDL_VIDEO_RENDER_OGL) | |
1401 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" | 1403 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" |
1402 fi | 1404 fi |
1403 fi | 1405 fi |
1404 } | 1406 } |
1405 | 1407 |
1407 CheckWIN32GL() | 1409 CheckWIN32GL() |
1408 { | 1410 { |
1409 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | 1411 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then |
1410 AC_DEFINE(SDL_VIDEO_OPENGL) | 1412 AC_DEFINE(SDL_VIDEO_OPENGL) |
1411 AC_DEFINE(SDL_VIDEO_OPENGL_WGL) | 1413 AC_DEFINE(SDL_VIDEO_OPENGL_WGL) |
1414 AC_DEFINE(SDL_VIDEO_RENDER_OGL) | |
1412 fi | 1415 fi |
1413 } | 1416 } |
1414 | 1417 |
1415 dnl Check for BeOS OpenGL | 1418 dnl Check for BeOS OpenGL |
1416 CheckBeGL() | 1419 CheckBeGL() |
1417 { | 1420 { |
1418 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | 1421 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then |
1419 AC_DEFINE(SDL_VIDEO_OPENGL) | 1422 AC_DEFINE(SDL_VIDEO_OPENGL) |
1423 AC_DEFINE(SDL_VIDEO_OPENGL_BGL) | |
1424 AC_DEFINE(SDL_VIDEO_RENDER_OGL) | |
1420 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" | 1425 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" |
1421 fi | 1426 fi |
1422 } | 1427 } |
1423 | 1428 |
1424 dnl Check for MacOS OpenGL | 1429 dnl Check for MacOS OpenGL |
1425 CheckMacGL() | 1430 CheckMacGL() |
1426 { | 1431 { |
1427 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | 1432 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then |
1428 AC_DEFINE(SDL_VIDEO_OPENGL) | 1433 AC_DEFINE(SDL_VIDEO_OPENGL) |
1434 AC_DEFINE(SDL_VIDEO_OPENGL_CGL) | |
1435 AC_DEFINE(SDL_VIDEO_RENDER_OGL) | |
1429 case "$host" in | 1436 case "$host" in |
1430 *-*-darwin*) | 1437 *-*-darwin*) |
1431 if test x$enable_video_cocoa = xyes; then | 1438 if test x$enable_video_cocoa = xyes; then |
1432 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL" | 1439 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL" |
1433 fi | 1440 fi |
1454 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags` | 1461 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags` |
1455 OSMESA_LIBS=`$OSMESA_CONFIG --libs` | 1462 OSMESA_LIBS=`$OSMESA_CONFIG --libs` |
1456 fi | 1463 fi |
1457 AC_DEFINE(SDL_VIDEO_OPENGL) | 1464 AC_DEFINE(SDL_VIDEO_OPENGL) |
1458 AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA) | 1465 AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA) |
1466 AC_DEFINE(SDL_VIDEO_RENDER_OGL) | |
1459 SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS" | 1467 SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS" |
1460 SDL_LIBS="$SDL_LIBS $OSMESA_LIBS" | 1468 SDL_LIBS="$SDL_LIBS $OSMESA_LIBS" |
1461 | 1469 |
1462 AC_ARG_ENABLE(osmesa-shared, | 1470 AC_ARG_ENABLE(osmesa-shared, |
1463 AC_HELP_STRING([--enable-osmesa-shared], [dynamically load OSMesa OpenGL support [[default=yes]]]), | 1471 AC_HELP_STRING([--enable-osmesa-shared], [dynamically load OSMesa OpenGL support [[default=yes]]]), |