comparison configure.in @ 1648:9f59d4c5aaea

Mac OS X fat build works! :)
author Sam Lantinga <slouken@libsdl.org>
date Sat, 22 Apr 2006 19:17:14 +0000
parents 5eaab017cc28
children 0a53c90a37f9 af4352da64d8
comparison
equal deleted inserted replaced
1647:2af911d41a08 1648:9f59d4c5aaea
63 *) 63 *)
64 BASE_CFLAGS="-D_GNU_SOURCE=1" 64 BASE_CFLAGS="-D_GNU_SOURCE=1"
65 BASE_LDFLAGS="" 65 BASE_LDFLAGS=""
66 ;; 66 ;;
67 esac 67 esac
68 BUILD_CFLAGS="$CFLAGS" 68 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
69 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS" 69 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
70 BUILD_LDFLAGS="$LDFLAGS" 70 BUILD_LDFLAGS="$LDFLAGS"
71 EXTRA_LDFLAGS="$BASE_LDFLAGS" 71 EXTRA_LDFLAGS="$BASE_LDFLAGS"
72 for path in /usr/local; do 72 for path in /usr/local; do
73 if test -d $path/include; then 73 if test -d $path/include; then
2334 2334
2335 CheckDummyVideo 2335 CheckDummyVideo
2336 CheckDiskAudio 2336 CheckDiskAudio
2337 CheckDummyAudio 2337 CheckDummyAudio
2338 CheckDLOPEN 2338 CheckDLOPEN
2339
2340 # Set up files for the shared object loading library
2341 # (this needs to be done before the dynamic X11 check)
2342 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
2343 AC_DEFINE(SDL_LOADSO_DLCOMPAT)
2344 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"
2345 have_loadso=yes
2346 fi
2347
2339 CheckCOCOA 2348 CheckCOCOA
2340 CheckCARBON 2349 CheckCARBON
2341 CheckX11 2350 CheckX11
2342 CheckMacGL 2351 CheckMacGL
2343 CheckOpenGLX11 2352 CheckOpenGLX11
2371 # Set up files for the timer library 2380 # Set up files for the timer library
2372 if test x$enable_timers = xyes; then 2381 if test x$enable_timers = xyes; then
2373 AC_DEFINE(SDL_TIMER_UNIX) 2382 AC_DEFINE(SDL_TIMER_UNIX)
2374 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 2383 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
2375 have_timers=yes 2384 have_timers=yes
2376 fi
2377 # Set up files for the shared object loading library
2378 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
2379 AC_DEFINE(SDL_LOADSO_DLCOMPAT)
2380 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"
2381 have_loadso=yes
2382 fi 2385 fi
2383 # The Mac OS X platform requires special setup. 2386 # The Mac OS X platform requires special setup.
2384 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m" 2387 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m"
2385 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" 2388 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
2386 SDL_LIBS="-lSDLmain $SDL_LIBS" 2389 SDL_LIBS="-lSDLmain $SDL_LIBS"