comparison configure.in @ 1625:7e89aa7843c5

Fixed bug #193 The attached patch is mostly cosmetic: Currently, we always add both -framework OpenGL and -framework AGL for Mac OS X command line builds. However, the former is only used for the Cocoa video driver, and the latter only for the Carbon video driver (as far as I can tell, at least). Hence the attached patch modifies configure.in so that each only gets added to the list of frameworks if the corresponding video driver is enabled.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 13 Apr 2006 13:30:21 +0000
parents 8208ae96bb2d
children 10b4827452a8
comparison
equal deleted inserted replaced
1624:8208ae96bb2d 1625:7e89aa7843c5
1442 { 1442 {
1443 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 1443 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
1444 AC_DEFINE(SDL_VIDEO_OPENGL) 1444 AC_DEFINE(SDL_VIDEO_OPENGL)
1445 case "$host" in 1445 case "$host" in
1446 *-*-darwin*) 1446 *-*-darwin*)
1447 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL" 1447 if test x$enable_video_cocoa = xyes; then
1448 # The following is probably not available in Darwin: 1448 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
1449 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL" 1449 fi
1450 if test x$enable_video_carbon = xyes; then
1451 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL"
1452 fi
1450 esac 1453 esac
1451 fi 1454 fi
1452 } 1455 }
1453 1456
1454 dnl Check for Mesa offscreen rendering 1457 dnl Check for Mesa offscreen rendering