Mercurial > sdl-ios-xcode
comparison configure.in @ 1384:6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 20 Feb 2006 08:49:00 +0000 |
parents | 1736c5e2173f |
children | ce65f014190a |
comparison
equal
deleted
inserted
replaced
1383:1736c5e2173f | 1384:6fd39b50dd91 |
---|---|
735 AC_ARG_ENABLE(x11-shared, | 735 AC_ARG_ENABLE(x11-shared, |
736 AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [default=yes]]), | 736 AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [default=yes]]), |
737 , enable_x11_shared=yes) | 737 , enable_x11_shared=yes) |
738 | 738 |
739 case "$target" in | 739 case "$target" in |
740 *-*-darwin* ) | 740 *-*-darwin*) |
741 x11_lib='/usr/X11R6/lib/libX11.6.dylib' | 741 x11_lib='/usr/X11R6/lib/libX11.6.dylib' |
742 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib' | 742 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib' |
743 ;; | 743 ;; |
744 *-*-osf* ) | 744 *-*-osf*) |
745 x11_lib='libX11.so' | |
746 x11ext_lib='libXext.so' | |
747 ;; | |
748 *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32 | |
745 x11_lib='libX11.so' | 749 x11_lib='libX11.so' |
746 x11ext_lib='libXext.so' | 750 x11ext_lib='libXext.so' |
747 ;; | 751 ;; |
748 *) | 752 *) |
749 if test x$X_LIBS = x; then X_LIBS="-L/usr/lib"; fi | 753 if test x$X_LIBS = x; then X_LIBS="-L/usr/lib"; fi |
750 x11_lib_spec=`echo $X_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libX11.so.*/'` | 754 x11_lib_spec=`echo $X_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libX11.so*/'` |
751 x11_lib=`ls $x11_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` | 755 x11_lib=`ls $x11_lib_spec 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'` |
752 x11ext_lib_spec=`echo $X_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libXext.so.*/'` | 756 x11ext_lib_spec=`echo $X_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libXext.so*/'` |
753 x11ext_lib=`ls $x11ext_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` | 757 x11ext_lib=`ls $x11ext_lib_spec 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'` |
754 ;; | 758 ;; |
755 esac | 759 esac |
756 | 760 |
757 X_CFLAGS="$X_CFLAGS -DXTHREADS" | 761 X_CFLAGS="$X_CFLAGS -DXTHREADS" |
758 if test x$ac_cv_func_shmat != xyes; then | 762 if test x$ac_cv_func_shmat != xyes; then |
2350 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'` | 2354 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'` |
2351 | 2355 |
2352 # Set runtime shared library paths as needed | 2356 # Set runtime shared library paths as needed |
2353 | 2357 |
2354 if test "x$enable_rpath" = "xyes"; then | 2358 if test "x$enable_rpath" = "xyes"; then |
2355 if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then | 2359 if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi -o $ARCH = irix; then |
2356 SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" | 2360 SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" |
2357 fi | 2361 fi |
2358 if test $ARCH = solaris; then | 2362 if test $ARCH = solaris; then |
2359 SDL_RLD_FLAGS="-R\${exec_prefix}/lib" | 2363 SDL_RLD_FLAGS="-R\${exec_prefix}/lib" |
2360 fi | 2364 fi |