comparison configure.in @ 1638:ebd1aedb1292

Miscellaneous Mac OS X fixes
author Sam Lantinga <slouken@libsdl.org>
date Mon, 17 Apr 2006 03:34:28 +0000
parents 9ba366b919c7
children 5eaab017cc28
comparison
equal deleted inserted replaced
1637:9ba366b919c7 1638:ebd1aedb1292
1809 AC_MSG_CHECKING(for dlopen) 1809 AC_MSG_CHECKING(for dlopen)
1810 have_dlopen=no 1810 have_dlopen=no
1811 AC_TRY_COMPILE([ 1811 AC_TRY_COMPILE([
1812 #include <dlfcn.h> 1812 #include <dlfcn.h>
1813 ],[ 1813 ],[
1814 #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020
1815 #error Use dlcompat for Mac OS X 10.2 compatibility
1816 #endif
1814 ],[ 1817 ],[
1815 have_dlopen=yes 1818 have_dlopen=yes
1816 ]) 1819 ])
1817 AC_MSG_RESULT($have_dlopen) 1820 AC_MSG_RESULT($have_dlopen)
1818 1821
2318 # just the OS X kernel sans upper layers like Carbon and Cocoa. 2321 # just the OS X kernel sans upper layers like Carbon and Cocoa.
2319 # Next line is broken, and a few files below require Mac OS X (full) 2322 # Next line is broken, and a few files below require Mac OS X (full)
2320 ARCH=macosx 2323 ARCH=macosx
2321 2324
2322 # Mac OS X builds with both the Carbon and OSX APIs at the moment 2325 # Mac OS X builds with both the Carbon and OSX APIs at the moment
2323 EXTRA_CFLAGS="-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX" 2326 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
2327 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
2324 2328
2325 # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point 2329 # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point
2326 # is -lm which is not needed under Mac OS X. But for some reasons it 2330 # is -lm which is not needed under Mac OS X. But for some reasons it
2327 # also tends to contain spurious -L switches, which we don't want to 2331 # also tends to contain spurious -L switches, which we don't want to
2328 # use here or in sdl-config. Hence we reset it. 2332 # use here or in sdl-config. Hence we reset it.
2329 EXTRA_LDFLAGS="" 2333 EXTRA_LDFLAGS=""
2330 2334
2331 CheckDummyVideo 2335 CheckDummyVideo
2332 CheckDiskAudio 2336 CheckDiskAudio
2333 CheckDummyAudio 2337 CheckDummyAudio
2334 #CheckDLOPEN # Don't check dlopen(), to retain 10.2 compatibility 2338 CheckDLOPEN
2335 CheckCOCOA 2339 CheckCOCOA
2336 CheckCARBON 2340 CheckCARBON
2337 CheckX11 2341 CheckX11
2338 CheckMacGL 2342 CheckMacGL
2339 CheckOpenGLX11 2343 CheckOpenGLX11