Mercurial > sdl-ios-xcode
comparison configure.in @ 1548:a77c022733fe
EXTRA_LDFLAGS are the linker flags and libraries needed to build SDL.
SDL_LIBS are the linker flags and libraries needed to build SDL applications.
SDL_STATIC_LIBS is set to SDL_LIBS by default.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 18 Mar 2006 18:41:59 +0000 |
parents | dd05d6ee234e |
children | 31c2b8e4885e |
comparison
equal
deleted
inserted
replaced
1547:dd05d6ee234e | 1548:a77c022733fe |
---|---|
2304 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c" | 2304 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c" |
2305 SOURCES="$SOURCES $srcdir/src/timer/mint/*.S" | 2305 SOURCES="$SOURCES $srcdir/src/timer/mint/*.S" |
2306 fi | 2306 fi |
2307 have_timers=yes | 2307 have_timers=yes |
2308 fi | 2308 fi |
2309 # Now set libraries needed in sdl-config | |
2310 SYSTEM_LIBS="$EXTRA_LDFLAGS" | |
2311 ;; | 2309 ;; |
2312 *-riscos) | 2310 *-riscos) |
2313 ARCH=riscos | 2311 ARCH=riscos |
2314 CheckOSS | 2312 CheckOSS |
2315 CheckPTHREAD | 2313 CheckPTHREAD |
2399 else | 2397 else |
2400 SDL_RLD_FLAGS="" | 2398 SDL_RLD_FLAGS="" |
2401 fi | 2399 fi |
2402 | 2400 |
2403 case "$ARCH" in | 2401 case "$ARCH" in |
2404 openbsd | netbsd | bsdi) | |
2405 SHARED_SYSTEM_LIBS="$SYSTEM_LIBS" | |
2406 ;; | |
2407 qnx) | |
2408 SHARED_SYSTEM_LIBS="$SYSTEM_LIBS" | |
2409 ;; | |
2410 macosx) | 2402 macosx) |
2411 SHARED_SYSTEM_LIBS="" | |
2412 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then | 2403 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then |
2413 SHARED_SYSTEM_LIBS="$SHARED_SYSTEM_LIBS -framework Cocoa" | 2404 SDL_LIBS="$SDL_LIBS -framework Cocoa" |
2414 fi | 2405 fi |
2415 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then | 2406 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then |
2416 SHARED_SYSTEM_LIBS="$SHARED_SYSTEM_LIBS -framework Carbon" | 2407 SDL_LIBS="$SDL_LIBS -framework Carbon" |
2417 fi | 2408 fi |
2418 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | 2409 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then |
2419 SHARED_SYSTEM_LIBS="$SHARED_SYSTEM_LIBS -framework OpenGL" | 2410 SDL_LIBS="$SDL_LIBS -framework OpenGL" |
2420 fi | 2411 fi |
2421 ;; | |
2422 *) | |
2423 SHARED_SYSTEM_LIBS="" | |
2424 ;; | |
2425 esac | |
2426 | |
2427 case "$ARCH" in | |
2428 macosx) | |
2429 # Evil hack to allow static linking on Mac OS X | 2412 # Evil hack to allow static linking on Mac OS X |
2430 SDL_STATIC_LIBS="\${exec_prefix}/lib/libSDLmain.a \${exec_prefix}/lib/libSDL.a" | 2413 SDL_STATIC_LIBS="\${exec_prefix}/lib/libSDLmain.a \${exec_prefix}/lib/libSDL.a" |
2431 ;; | 2414 ;; |
2432 *) | 2415 *) |
2433 SDL_STATIC_LIBS="$SDL_LIBS" | 2416 SDL_STATIC_LIBS="$SDL_LIBS" |
2434 ;; | 2417 ;; |
2435 esac | 2418 esac |
2436 | |
2437 STATIC_SYSTEM_LIBS="$SYSTEM_LIBS" | |
2438 | 2419 |
2439 dnl Expand the cflags and libraries needed by apps using SDL | 2420 dnl Expand the cflags and libraries needed by apps using SDL |
2440 AC_SUBST(SDL_CFLAGS) | 2421 AC_SUBST(SDL_CFLAGS) |
2441 AC_SUBST(SDL_LIBS) | 2422 AC_SUBST(SDL_LIBS) |
2442 AC_SUBST(SDL_STATIC_LIBS) | 2423 AC_SUBST(SDL_STATIC_LIBS) |
2458 AC_SUBST(ENABLE_SHARED_TRUE) | 2439 AC_SUBST(ENABLE_SHARED_TRUE) |
2459 AC_SUBST(ENABLE_SHARED_FALSE) | 2440 AC_SUBST(ENABLE_SHARED_FALSE) |
2460 AC_SUBST(ENABLE_STATIC_TRUE) | 2441 AC_SUBST(ENABLE_STATIC_TRUE) |
2461 AC_SUBST(ENABLE_STATIC_FALSE) | 2442 AC_SUBST(ENABLE_STATIC_FALSE) |
2462 | 2443 |
2463 dnl Expand the libraries needed for static and dynamic linking | |
2464 AC_SUBST(STATIC_SYSTEM_LIBS) | |
2465 AC_SUBST(SHARED_SYSTEM_LIBS) | |
2466 AC_SUBST(SYSTEM_LIBS) | |
2467 | |
2468 dnl Expand the sources and objects needed to build the library | 2444 dnl Expand the sources and objects needed to build the library |
2469 AC_SUBST(ac_aux_dir) | 2445 AC_SUBST(ac_aux_dir) |
2470 AC_SUBST(INCLUDE) | 2446 AC_SUBST(INCLUDE) |
2471 AC_SUBST(SOURCES) | 2447 AC_SUBST(SOURCES) |
2472 AC_SUBST(OBJECTS) | 2448 AC_SUBST(OBJECTS) |