Mercurial > sdl-ios-xcode
comparison configure.in @ 1373:04499d3e1b6b
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 19 Feb 2006 16:42:18 +0000 |
parents | 00fc57bb5dc4 |
children | 998b7f9a287a |
comparison
equal
deleted
inserted
replaced
1372:3e171fa5f4df | 1373:04499d3e1b6b |
---|---|
61 BASE_LIBS="" | 61 BASE_LIBS="" |
62 ;; | 62 ;; |
63 esac | 63 esac |
64 CFLAGS="$CFLAGS $BASE_CFLAGS" | 64 CFLAGS="$CFLAGS $BASE_CFLAGS" |
65 | 65 |
66 dnl Set up the compiler and linker flags for building SDL | |
67 INCLUDE="-I$srcdir/include" | |
68 if test x$srcdir != x.; then | |
69 INCLUDE="-Iinclude $INCLUDE" | |
70 fi | |
71 BUILD_CFLAGS="$BASE_CFLAGS \$(INCLUDE)" | |
72 BUILD_LIBS="$BASE_LIBS" | |
73 | |
74 dnl Set up the compiler and linker flags for SDL applications | |
75 SDL_CFLAGS="$BASE_CFLAGS" | |
76 SDL_LIBS="$BASE_LIBS -lSDL" | |
77 | |
66 dnl Check for tools | 78 dnl Check for tools |
67 #AC_LIBTOOL_DLOPEN | 79 #AC_LIBTOOL_DLOPEN |
68 AC_LIBTOOL_WIN32_DLL | 80 AC_LIBTOOL_WIN32_DLL |
69 AC_PROG_LIBTOOL | 81 AC_PROG_LIBTOOL |
70 AC_PROG_CC | 82 AC_PROG_CC |
106 AC_FUNC_STRTOD | 118 AC_FUNC_STRTOD |
107 if test x$ac_cv_func_strtod = xyes; then | 119 if test x$ac_cv_func_strtod = xyes; then |
108 AC_DEFINE(HAVE_STRTOD) | 120 AC_DEFINE(HAVE_STRTOD) |
109 fi | 121 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 vsnprintf sigaction setjmp nanosleep) | 122 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) |
123 | |
124 AC_CHECK_LIB(m, pow, [BUILD_LIBS="$BUILD_LIBS -lm"]) | |
111 fi | 125 fi |
112 | 126 |
113 if test x$have_inttypes != xyes; then | 127 if test x$have_inttypes != xyes; then |
114 AC_CHECK_SIZEOF(char, 1) | 128 AC_CHECK_SIZEOF(char, 1) |
115 AC_CHECK_SIZEOF(short, 2) | 129 AC_CHECK_SIZEOF(short, 2) |
150 fi | 164 fi |
151 fi | 165 fi |
152 AC_DEFINE(size_t, unsigned int) | 166 AC_DEFINE(size_t, unsigned int) |
153 AC_DEFINE(uintptr_t, unsigned long) | 167 AC_DEFINE(uintptr_t, unsigned long) |
154 fi | 168 fi |
155 | |
156 # Set up the build preprocessor flags | |
157 INCLUDE="-I$srcdir/include" | |
158 if test x$srcdir != x.; then | |
159 INCLUDE="-Iinclude $INCLUDE" | |
160 fi | |
161 BUILD_CFLAGS="$BASE_CFLAGS \$(INCLUDE)" | |
162 | 169 |
163 # Standard C sources | 170 # Standard C sources |
164 SOURCES="$SOURCES $srcdir/src/*.c" | 171 SOURCES="$SOURCES $srcdir/src/*.c" |
165 SOURCES="$SOURCES $srcdir/src/audio/*.c" | 172 SOURCES="$SOURCES $srcdir/src/audio/*.c" |
166 SOURCES="$SOURCES $srcdir/src/cdrom/*.c" | 173 SOURCES="$SOURCES $srcdir/src/cdrom/*.c" |
170 SOURCES="$SOURCES $srcdir/src/joystick/*.c" | 177 SOURCES="$SOURCES $srcdir/src/joystick/*.c" |
171 SOURCES="$SOURCES $srcdir/src/stdlib/*.c" | 178 SOURCES="$SOURCES $srcdir/src/stdlib/*.c" |
172 SOURCES="$SOURCES $srcdir/src/thread/*.c" | 179 SOURCES="$SOURCES $srcdir/src/thread/*.c" |
173 SOURCES="$SOURCES $srcdir/src/timer/*.c" | 180 SOURCES="$SOURCES $srcdir/src/timer/*.c" |
174 SOURCES="$SOURCES $srcdir/src/video/*.c" | 181 SOURCES="$SOURCES $srcdir/src/video/*.c" |
175 | |
176 # Set up the build libraries needed | |
177 BUILD_LIBS="$BASE_LIBS" | |
178 | |
179 # Set up the compiler and linker flags for SDL applications | |
180 SDL_CFLAGS="$BASE_CFLAGS" | |
181 SDL_LIBS="$BASE_LIBS -lSDL" | |
182 | |
183 dnl Add the math library for the new gamma correction support | |
184 case "$target" in | |
185 *-*-cygwin* | *-*-mingw32*) | |
186 MATHLIB="" | |
187 ;; | |
188 *-*-beos*) | |
189 MATHLIB="" | |
190 ;; | |
191 *-*-darwin*) | |
192 MATHLIB="" | |
193 ;; | |
194 *) | |
195 MATHLIB="-lm" | |
196 ;; | |
197 esac | |
198 BUILD_LIBS="$BUILD_LIBS $MATHLIB" | |
199 | 182 |
200 dnl Enable/disable various subsystems of the SDL library | 183 dnl Enable/disable various subsystems of the SDL library |
201 | 184 |
202 AC_ARG_ENABLE(audio, | 185 AC_ARG_ENABLE(audio, |
203 AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [default=yes]]), | 186 AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [default=yes]]), |