Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/configure.in Thu Jul 27 06:53:23 2006 +0000 +++ b/configure.in Fri Jul 28 08:43:17 2006 +0000 @@ -1359,7 +1359,7 @@ dnl Check to see if OpenGL support is desired AC_ARG_ENABLE(video-opengl, -AC_HELP_STRING([--enable-video-opengl], [include OpenGL context creation [[default=yes]]]), +AC_HELP_STRING([--enable-video-opengl], [include OpenGL support [[default=yes]]]), , enable_video_opengl=yes) dnl Find OpenGL @@ -1379,6 +1379,7 @@ if test x$video_opengl = xyes; then AC_DEFINE(SDL_VIDEO_OPENGL) AC_DEFINE(SDL_VIDEO_OPENGL_GLX) + AC_DEFINE(SDL_VIDEO_RENDER_OGL) fi fi } @@ -1398,6 +1399,7 @@ AC_MSG_RESULT($video_opengl) if test x$video_opengl = xyes; then AC_DEFINE(SDL_VIDEO_OPENGL) + AC_DEFINE(SDL_VIDEO_RENDER_OGL) EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" fi fi @@ -1409,6 +1411,7 @@ if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then AC_DEFINE(SDL_VIDEO_OPENGL) AC_DEFINE(SDL_VIDEO_OPENGL_WGL) + AC_DEFINE(SDL_VIDEO_RENDER_OGL) fi } @@ -1417,6 +1420,8 @@ { if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then AC_DEFINE(SDL_VIDEO_OPENGL) + AC_DEFINE(SDL_VIDEO_OPENGL_BGL) + AC_DEFINE(SDL_VIDEO_RENDER_OGL) EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" fi } @@ -1426,6 +1431,8 @@ { if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then AC_DEFINE(SDL_VIDEO_OPENGL) + AC_DEFINE(SDL_VIDEO_OPENGL_CGL) + AC_DEFINE(SDL_VIDEO_RENDER_OGL) case "$host" in *-*-darwin*) if test x$enable_video_cocoa = xyes; then @@ -1456,6 +1463,7 @@ fi AC_DEFINE(SDL_VIDEO_OPENGL) AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA) + AC_DEFINE(SDL_VIDEO_RENDER_OGL) SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS" SDL_LIBS="$SDL_LIBS $OSMESA_LIBS"