comparison configure.in @ 978:3b1ba22f5a28

Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
author Patrice Mandin <patmandin@gmail.com>
date Wed, 17 Nov 2004 23:13:15 +0000
parents 795ac5fbe260
children 475166d13b44
comparison
equal deleted inserted replaced
977:9c55b00f8251 978:3b1ba22f5a28
1127 SYSTEM_LIBS="$SYSTEM_LIBS -framework OpenGL -framework AGL" 1127 SYSTEM_LIBS="$SYSTEM_LIBS -framework OpenGL -framework AGL"
1128 esac 1128 esac
1129 fi 1129 fi
1130 } 1130 }
1131 1131
1132 dnl Check for Mesa offscreen rendering
1133 CheckOSMesa()
1134 {
1135 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
1136 AC_CHECK_HEADER(GL/osmesa.h, have_osmesa_hdr=yes)
1137 AC_CHECK_LIB(OSMesa, OSMesaCreateContext, have_osmesa_lib=yes, have_osmesa_lib=no, -lm)
1138 if test x$have_osmesa_hdr = xyes -a x$have_osmesa_lib = xyes; then
1139 CFLAGS="$CFLAGS -DHAVE_OPENGL"
1140 SYSTEM_LIBS="$SYSTEM_LIBS -lOSMesa"
1141 fi
1142 fi
1143 }
1144
1132 dnl See if we can use the new unified event interface in Linux 2.4 1145 dnl See if we can use the new unified event interface in Linux 2.4
1133 CheckInputEvents() 1146 CheckInputEvents()
1134 { 1147 {
1135 dnl Check for Linux 2.4 unified input event interface support 1148 dnl Check for Linux 2.4 unified input event interface support
1136 AC_ARG_ENABLE(input-events, 1149 AC_ARG_ENABLE(input-events,
2570 CheckAtariXbiosVideo 2583 CheckAtariXbiosVideo
2571 CheckAtariGemVideo 2584 CheckAtariGemVideo
2572 CheckAtariAudio 2585 CheckAtariAudio
2573 CheckAtariLdg 2586 CheckAtariLdg
2574 CheckPTH 2587 CheckPTH
2588 CheckOSMesa
2575 # Set up files for the audio library 2589 # Set up files for the audio library
2576 if test x$enable_threads = xyes -a x$enable_pth = xyes; then 2590 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
2577 if test x$enable_audio = xyes; then 2591 if test x$enable_audio = xyes; then
2578 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" 2592 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
2579 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" 2593 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"