configure.in
changeset 1625 7e89aa7843c5
parent 1624 8208ae96bb2d
child 1628 10b4827452a8
--- a/configure.in	Thu Apr 13 13:29:00 2006 +0000
+++ b/configure.in	Thu Apr 13 13:30:21 2006 +0000
@@ -1444,9 +1444,12 @@
         AC_DEFINE(SDL_VIDEO_OPENGL)
         case "$host" in
             *-*-darwin*)
-                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
-                # The following is probably not available in Darwin:
-                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL"
+                if test x$enable_video_cocoa = xyes; then
+                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
+                fi
+                if test x$enable_video_carbon = xyes; then
+                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL"
+                fi
         esac
     fi
 }