comparison configure.in @ 3935:00959c391aa6 SDL-1.2

There are several subsystems that need IOKit linked in on Mac OS X, so handle cases where one or more of them are disabled.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 04 Apr 2007 10:34:42 +0000
parents f8cc7c7ccf95
children 42e83d81224b b8de86ee2ad6
comparison
equal deleted inserted replaced
3934:f8cc7c7ccf95 3935:00959c391aa6
2460 fi 2460 fi
2461 # Set up files for the joystick library 2461 # Set up files for the joystick library
2462 if test x$enable_joystick = xyes; then 2462 if test x$enable_joystick = xyes; then
2463 AC_DEFINE(SDL_JOYSTICK_IOKIT) 2463 AC_DEFINE(SDL_JOYSTICK_IOKIT)
2464 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c" 2464 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
2465 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
2466 have_joystick=yes 2465 have_joystick=yes
2466 need_iokit_framework=yes
2467 fi 2467 fi
2468 # Set up files for the cdrom library 2468 # Set up files for the cdrom library
2469 if test x$enable_cdrom = xyes; then 2469 if test x$enable_cdrom = xyes; then
2470 AC_DEFINE(SDL_CDROM_MACOSX) 2470 AC_DEFINE(SDL_CDROM_MACOSX)
2471 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c" 2471 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
2481 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m" 2481 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m"
2482 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" 2482 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
2483 SDL_LIBS="-lSDLmain $SDL_LIBS" 2483 SDL_LIBS="-lSDLmain $SDL_LIBS"
2484 if test x$enable_video_cocoa = xyes; then 2484 if test x$enable_video_cocoa = xyes; then
2485 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" 2485 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
2486 need_iokit_framework=yes
2486 fi 2487 fi
2487 if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then 2488 if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then
2488 # The Cocoa backend still needs Carbon, and the YUV code QuickTime 2489 # The Cocoa backend still needs Carbon, and the YUV code QuickTime
2489 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuickTime -Wl,-framework,ApplicationServices" 2490 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuickTime -Wl,-framework,ApplicationServices"
2490 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" 2491 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
2491 fi 2492 fi
2492 # If either the audio or CD driver is used, add the AudioUnit framework 2493 # If either the audio or CD driver is used, add the AudioUnit framework
2493 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then 2494 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then
2494 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit" 2495 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
2496 fi
2497 # Some subsystems reference IOKit...
2498 if test x$need_iokit_framework = xyes; then
2499 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
2495 fi 2500 fi
2496 ;; 2501 ;;
2497 *-*-mint*) 2502 *-*-mint*)
2498 ARCH=mint 2503 ARCH=mint
2499 CheckDummyVideo 2504 CheckDummyVideo