comparison configure.in @ 3332:da1cb54d74ef

You should check for the C compiler before you set CFLAGS. :)
author Sam Lantinga <slouken@libsdl.org>
date Fri, 02 Oct 2009 13:50:36 +0000
parents 6fb7f38d20b6
children 61ea9005fddf
comparison
equal deleted inserted replaced
3331:d44a0a913aa2 3332:da1cb54d74ef
48 if test x$ac_cv_c_bigendian = xyes; then 48 if test x$ac_cv_c_bigendian = xyes; then
49 AC_DEFINE(SDL_BYTEORDER, 4321) 49 AC_DEFINE(SDL_BYTEORDER, 4321)
50 else 50 else
51 AC_DEFINE(SDL_BYTEORDER, 1234) 51 AC_DEFINE(SDL_BYTEORDER, 1234)
52 fi 52 fi
53
54 dnl Check for tools
55 AC_PROG_LIBTOOL
56 AC_PROG_CC
57 AC_PROG_CXX
58 AC_PROG_INSTALL
59 AC_PROG_MAKE_SET
60 if test -z "$host_alias"; then
61 hostaliaswindres=
62 else
63 hostaliaswindres="$host_alias-windres"
64 fi
65 AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
53 66
54 dnl Set up the compiler and linker flags 67 dnl Set up the compiler and linker flags
55 INCLUDE="-I$srcdir/include" 68 INCLUDE="-I$srcdir/include"
56 if test x$srcdir != x.; then 69 if test x$srcdir != x.; then
57 # Remove SDL_config.h from the source directory, since it's the 70 # Remove SDL_config.h from the source directory, since it's the
88 SDL_CFLAGS="$BASE_CFLAGS" 101 SDL_CFLAGS="$BASE_CFLAGS"
89 SDL_LIBS="-lSDL $BASE_LDFLAGS" 102 SDL_LIBS="-lSDL $BASE_LDFLAGS"
90 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS" 103 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
91 CFLAGS="$CFLAGS $EXTRA_CFLAGS" 104 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
92 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" 105 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
93
94 dnl Check for tools
95 AC_PROG_LIBTOOL
96 AC_PROG_CC
97 AC_PROG_CXX
98 AC_PROG_INSTALL
99 AC_PROG_MAKE_SET
100 if test -z "$host_alias"; then
101 hostaliaswindres=
102 else
103 hostaliaswindres="$host_alias-windres"
104 fi
105 AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
106 106
107 dnl Check for compiler characteristics 107 dnl Check for compiler characteristics
108 AC_C_CONST 108 AC_C_CONST
109 AC_C_INLINE 109 AC_C_INLINE
110 AC_C_VOLATILE 110 AC_C_VOLATILE