Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40979
This commit is contained in:
Patrice Mandin 2004-11-17 23:13:15 +00:00
parent 74f380107e
commit e9c344a4a4
5 changed files with 224 additions and 25 deletions

View file

@ -1129,6 +1129,19 @@ CheckMacGL()
fi
}
dnl Check for Mesa offscreen rendering
CheckOSMesa()
{
if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
AC_CHECK_HEADER(GL/osmesa.h, have_osmesa_hdr=yes)
AC_CHECK_LIB(OSMesa, OSMesaCreateContext, have_osmesa_lib=yes, have_osmesa_lib=no, -lm)
if test x$have_osmesa_hdr = xyes -a x$have_osmesa_lib = xyes; then
CFLAGS="$CFLAGS -DHAVE_OPENGL"
SYSTEM_LIBS="$SYSTEM_LIBS -lOSMesa"
fi
fi
}
dnl See if we can use the new unified event interface in Linux 2.4
CheckInputEvents()
{
@ -2572,6 +2585,7 @@ case "$target" in
CheckAtariAudio
CheckAtariLdg
CheckPTH
CheckOSMesa
# Set up files for the audio library
if test x$enable_threads = xyes -a x$enable_pth = xyes; then
if test x$enable_audio = xyes; then