Mercurial > sdl-ios-xcode
comparison configure.in @ 1367:e440d5c488c1
Fixes for BeOS and Solaris builds
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 17 Feb 2006 08:43:23 +0000 |
parents | 34d9df784d84 |
children | 00fc57bb5dc4 |
comparison
equal
deleted
inserted
replaced
1366:34d9df784d84 | 1367:e440d5c488c1 |
---|---|
105 fi | 105 fi |
106 AC_FUNC_STRTOD | 106 AC_FUNC_STRTOD |
107 if test x$ac_cv_func_strtod = xyes; then | 107 if test x$ac_cv_func_strtod = xyes; then |
108 AC_DEFINE(HAVE_STRTOD) | 108 AC_DEFINE(HAVE_STRTOD) |
109 fi | 109 fi |
110 AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strcpy strncpy strcat strncat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol _i64toa _ui64toa strtoll atoi atof strcmp strncmp stricmp strcasecmp sscanf snprintf vsnprint sigaction setjmp nanosleep) | 110 AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strcpy strncpy strcat strncat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol _i64toa _ui64toa strtoll atoi atof strcmp strncmp stricmp strcasecmp sscanf snprintf vsnprintf sigaction setjmp nanosleep) |
111 fi | 111 fi |
112 | 112 |
113 if test x$have_inttypes != xyes; then | 113 if test x$have_inttypes != xyes; then |
114 AC_CHECK_SIZEOF(char, 1) | 114 AC_CHECK_SIZEOF(char, 1) |
115 AC_CHECK_SIZEOF(short, 2) | 115 AC_CHECK_SIZEOF(short, 2) |
760 *-*-osf* ) | 760 *-*-osf* ) |
761 x11_lib='libX11.so' | 761 x11_lib='libX11.so' |
762 x11ext_lib='libXext.so' | 762 x11ext_lib='libXext.so' |
763 ;; | 763 ;; |
764 *) | 764 *) |
765 x11_lib='libX11.so.6' | 765 x11_lib_spec=`echo $X_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libX11.so.*/'` |
766 x11ext_lib='libXext.so.6' | 766 x11_lib=`ls $x11_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` |
767 x11ext_lib_spec=`echo $X_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libXext.so.*/'` | |
768 x11ext_lib=`ls $x11ext_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` | |
767 ;; | 769 ;; |
768 esac | 770 esac |
769 | 771 |
770 X_CFLAGS="$X_CFLAGS -DXTHREADS" | 772 X_CFLAGS="$X_CFLAGS -DXTHREADS" |
771 if test x$ac_cv_func_shmat != xyes; then | 773 if test x$ac_cv_func_shmat != xyes; then |
783 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib") | 785 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib") |
784 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib") | 786 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib") |
785 else | 787 else |
786 X_LIBS="$X_LIBS -lX11 -lXext" | 788 X_LIBS="$X_LIBS -lX11 -lXext" |
787 fi | 789 fi |
788 | |
789 | 790 |
790 AC_DEFINE(SDL_VIDEO_DRIVER_X11) | 791 AC_DEFINE(SDL_VIDEO_DRIVER_X11) |
791 SOURCES="$SOURCES $srcdir/src/video/x11/*.c" | 792 SOURCES="$SOURCES $srcdir/src/video/x11/*.c" |
792 BUILD_CFLAGS="$BUILD_CFLAGS $X_CFLAGS" | 793 BUILD_CFLAGS="$BUILD_CFLAGS $X_CFLAGS" |
793 BUILD_LIBS="$BUILD_LIBS $X_LIBS" | 794 BUILD_LIBS="$BUILD_LIBS $X_LIBS" |
2182 if test x$enable_loadso = xyes; then | 2183 if test x$enable_loadso = xyes; then |
2183 AC_DEFINE(SDL_LOADSO_BEOS) | 2184 AC_DEFINE(SDL_LOADSO_BEOS) |
2184 SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c" | 2185 SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c" |
2185 have_loadso=yes | 2186 have_loadso=yes |
2186 fi | 2187 fi |
2187 # The BeOS platform requires special libraries | 2188 # The BeOS platform requires special setup. |
2189 SOURCES="$srcdir/src/main/beos/*.cc $SOURCES" | |
2188 BUILD_LIBS="$BUILD_LIBS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding" | 2190 BUILD_LIBS="$BUILD_LIBS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding" |
2189 ;; | 2191 ;; |
2190 *-*-darwin* ) | 2192 *-*-darwin* ) |
2191 # This could be either full "Mac OS X", or plain "Darwin" which is | 2193 # This could be either full "Mac OS X", or plain "Darwin" which is |
2192 # just the OS X kernel sans upper layers like Carbon and Cocoa. | 2194 # just the OS X kernel sans upper layers like Carbon and Cocoa. |