diff test/configure.in @ 991:12b13601a544

Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
author Patrice Mandin <patmandin@gmail.com>
date Fri, 26 Nov 2004 16:16:50 +0000
parents 8ba1b9cf9f12
children e440d5c488c1
line wrap: on
line diff
--- a/test/configure.in	Fri Nov 26 16:13:24 2004 +0000
+++ b/test/configure.in	Fri Nov 26 16:16:50 2004 +0000
@@ -28,7 +28,7 @@
         MATHLIB=""
         SYS_GL_LIBS="-lGL"
         ;;
-    *-*-darwin* | *-*-mint* )
+    *-*-darwin* )
         MATHLIB=""
         SYS_GL_LIBS=""
         ;;
@@ -38,6 +38,18 @@
         fi
         SYS_GL_LIBS=""
         ;;
+    *-*-mint*)
+        MATHLIB=""
+        AC_PATH_PROG(OSMESA_CONFIG, osmesa-config, no)
+        if test "x$OSMESA_CONFIG" = "xyes"; then
+            OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
+            OSMESA_LIBS=`$OSMESA_CONFIG --libs`
+            CFLAGS="$CFLAGS $OSMESA_CFLAGS"
+            SYS_GL_LIBS="$OSMESA_LIBS"
+        else
+            SYS_GL_LIBS="-lOSMesa"
+        fi
+		;;
     *)
         MATHLIB="-lm"
         AC_PATH_X