comparison configure.in @ 1354:22f39393668a

Fixed build problem with SDL_string.c Officially deprecated SDL_byteorder.h, SDL_getenv.h and SDL_types.h Moved endian-related SDL_rwops code into SDL_rwops.c
author Sam Lantinga <slouken@libsdl.org>
date Thu, 09 Feb 2006 09:38:05 +0000
parents 7ba544e2888d
children 19418e4422cb
comparison
equal deleted inserted replaced
1353:7ba544e2888d 1354:22f39393668a
39 AC_SUBST(LT_REVISION) 39 AC_SUBST(LT_REVISION)
40 AC_SUBST(LT_AGE) 40 AC_SUBST(LT_AGE)
41 41
42 dnl Detect the canonical host and target build environment 42 dnl Detect the canonical host and target build environment
43 AC_CANONICAL_SYSTEM 43 AC_CANONICAL_SYSTEM
44 AC_C_BIGENDIAN
45 if test x$ac_cv_c_bigendian = xyes; then
46 AC_DEFINE(SDL_BYTEORDER, 4321)
47 else
48 AC_DEFINE(SDL_BYTEORDER, 1234)
49 fi
44 50
45 dnl Setup for automake 51 dnl Setup for automake
46 AM_INIT_AUTOMAKE(SDL, $SDL_VERSION) 52 AM_INIT_AUTOMAKE(SDL, $SDL_VERSION)
47 53
48 dnl Disable autoheader 54 dnl Disable autoheader
116 fi 122 fi
117 123
118 dnl See whether we are allowed to use the system C library 124 dnl See whether we are allowed to use the system C library
119 AC_ARG_ENABLE(libc, 125 AC_ARG_ENABLE(libc,
120 [ --enable-libc Use the system C library [default=yes]], 126 [ --enable-libc Use the system C library [default=yes]],
121 , AC_DEFINE([HAVE_LIBC])) 127 , AC_DEFINE(HAVE_LIBC))
122 128
123 dnl Check for compiler characteristics 129 dnl Check for compiler characteristics
124 AC_C_CONST 130 AC_C_CONST
125 AC_C_INLINE 131 AC_C_INLINE
126 AC_C_VOLATILE 132 AC_C_VOLATILE
284 SDL_EXTRADIRS="$SDL_EXTRADIRS timer" 290 SDL_EXTRADIRS="$SDL_EXTRADIRS timer"
285 SDL_EXTRALIBS="$SDL_EXTRALIBS timer/libtimer.la" 291 SDL_EXTRALIBS="$SDL_EXTRALIBS timer/libtimer.la"
286 else 292 else
287 CFLAGS="$CFLAGS -DDISABLE_TIMERS" 293 CFLAGS="$CFLAGS -DDISABLE_TIMERS"
288 fi 294 fi
289 AC_ARG_ENABLE(endian,
290 [ --enable-endian Enable the endian subsystem [default=yes]],
291 , enable_endian=yes)
292 if test x$enable_endian = xyes; then
293 SDL_EXTRADIRS="$SDL_EXTRADIRS endian"
294 SDL_EXTRALIBS="$SDL_EXTRALIBS endian/libendian.la"
295 else
296 CFLAGS="$CFLAGS -DDISABLE_ENDIAN"
297 fi
298 AC_ARG_ENABLE(file, 295 AC_ARG_ENABLE(file,
299 [ --enable-file Enable the file subsystem [default=yes]], 296 [ --enable-file Enable the file subsystem [default=yes]],
300 , enable_file=yes) 297 , enable_file=yes)
301 if test x$enable_file = xyes; then 298 if test x$enable_file = xyes; then
302 SDL_EXTRADIRS="$SDL_EXTRADIRS file" 299 SDL_EXTRADIRS="$SDL_EXTRADIRS file"
3049 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/events" 3046 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/events"
3050 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/joystick" 3047 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/joystick"
3051 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/cdrom" 3048 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/cdrom"
3052 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/thread" 3049 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/thread"
3053 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/timer" 3050 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/timer"
3054 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/endian"
3055 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/file" 3051 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/file"
3056 CFLAGS="$CFLAGS -I\$(top_builddir)/src/thread" 3052 CFLAGS="$CFLAGS -I\$(top_builddir)/src/thread"
3057 CXXFLAGS="$CFLAGS" 3053 CXXFLAGS="$CFLAGS"
3058 3054
3059 3055
3178 src/cdrom/osf/Makefile 3174 src/cdrom/osf/Makefile
3179 src/cdrom/qnx/Makefile 3175 src/cdrom/qnx/Makefile
3180 src/cdrom/win32/Makefile 3176 src/cdrom/win32/Makefile
3181 src/thread/Makefile 3177 src/thread/Makefile
3182 src/timer/Makefile 3178 src/timer/Makefile
3183 src/endian/Makefile
3184 src/file/Makefile 3179 src/file/Makefile
3185 src/cpuinfo/Makefile 3180 src/cpuinfo/Makefile
3186 src/hermes/Makefile 3181 src/hermes/Makefile
3187 sdl-config 3182 sdl-config
3188 SDL.spec 3183 SDL.spec