comparison configure.in @ 4273:6eb492bd89fe SDL-1.2

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