test/configure.in
changeset 991 12b13601a544
parent 981 8ba1b9cf9f12
child 1367 e440d5c488c1
--- 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