Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
1 dnl Process this file with autoconf to produce a configure script.
7 dnl Detect the canonical host and target build environment
10 dnl Setup for automake
11 AM_INIT_AUTOMAKE(SDL_tests, $SDL_VERSION)
17 dnl Check for compiler environment
21 dnl Figure out which math library to use
23 *-*-cygwin* | *-*-mingw32*)
25 SYS_GL_LIBS="-lopengl32"
36 if test x$ac_cv_prog_gcc = xyes; then
43 SYS_GL_LIBS="-lOSMesa"
49 if test x$have_x = xyes; then
50 CFLAGS="$CFLAGS $X_CFLAGS"
51 SYS_GL_LIBS="$X_LIBS -lGL"
61 AM_PATH_SDL($SDL_VERSION,
63 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
65 CFLAGS="$CFLAGS $SDL_CFLAGS"
66 LIBS="$LIBS $SDL_LIBS"
69 AC_MSG_CHECKING(for OpenGL support)
72 #include "SDL_opengl.h"
77 AC_MSG_RESULT($have_opengl)
78 if test x$have_opengl = xyes; then
79 CFLAGS="$CFLAGS -DHAVE_OPENGL"
80 GL_LIBS="$SYS_GL_LIBS"
86 # Finally create all the generated files