comparison configure.in @ 989:475166d13b44

Factorize OSMesa OpenGL code for Atari drivers
author Patrice Mandin <patmandin@gmail.com>
date Thu, 25 Nov 2004 15:47:49 +0000
parents 3b1ba22f5a28
children 12b13601a544
comparison
equal deleted inserted replaced
988:24b5c3ad4852 989:475166d13b44
1128 esac 1128 esac
1129 fi 1129 fi
1130 } 1130 }
1131 1131
1132 dnl Check for Mesa offscreen rendering 1132 dnl Check for Mesa offscreen rendering
1133 CheckOSMesa() 1133 CheckAtariOSMesa()
1134 { 1134 {
1135 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 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) 1136 AC_PATH_PROG(OSMESA_CONFIG, osmesa-config, no)
1137 AC_CHECK_LIB(OSMesa, OSMesaCreateContext, have_osmesa_lib=yes, have_osmesa_lib=no, -lm) 1137 if test "x$OSMESA_CONFIG" = "xno" -o "x$enable_atari_ldg" = "xno"; then
1138 if test x$have_osmesa_hdr = xyes -a x$have_osmesa_lib = xyes; then 1138 AC_CHECK_HEADER(GL/osmesa.h, have_osmesa_hdr=yes)
1139 CFLAGS="$CFLAGS -DHAVE_OPENGL" 1139 AC_CHECK_LIB(OSMesa, OSMesaCreateContext, have_osmesa_lib=yes, have_osmesa_lib=no, -lm)
1140 SYSTEM_LIBS="$SYSTEM_LIBS -lOSMesa" 1140 if test "x$have_osmesa_hdr" = "xyes" -a "x$have_osmesa_lib" = "xyes"; then
1141 CFLAGS="$CFLAGS -DHAVE_OPENGL"
1142 SYSTEM_LIBS="$SYSTEM_LIBS -lOSMesa"
1143 fi
1144 else
1145 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
1146 OSMESA_LIBS=`$OSMESA_CONFIG --libs`
1147 CFLAGS="$CFLAGS -DHAVE_OPENGL $OSMESA_CFLAGS"
1148 SYSTEM_LIBS="$SYSTEM_LIBS $OSMESA_LIBS"
1141 fi 1149 fi
1142 fi 1150 fi
1143 } 1151 }
1144 1152
1145 dnl See if we can use the new unified event interface in Linux 2.4 1153 dnl See if we can use the new unified event interface in Linux 2.4
2582 CheckAtariBiosEvent 2590 CheckAtariBiosEvent
2583 CheckAtariXbiosVideo 2591 CheckAtariXbiosVideo
2584 CheckAtariGemVideo 2592 CheckAtariGemVideo
2585 CheckAtariAudio 2593 CheckAtariAudio
2586 CheckAtariLdg 2594 CheckAtariLdg
2595 CheckAtariOSMesa
2587 CheckPTH 2596 CheckPTH
2588 CheckOSMesa
2589 # Set up files for the audio library 2597 # Set up files for the audio library
2590 if test x$enable_threads = xyes -a x$enable_pth = xyes; then 2598 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
2591 if test x$enable_audio = xyes; then 2599 if test x$enable_audio = xyes; then
2592 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" 2600 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
2593 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" 2601 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"