You should check for the C compiler before you set CFLAGS. :) SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Fri, 02 Oct 2009 13:50:50 +0000
branchSDL-1.2
changeset 42736eb492bd89fe
parent 4272 3af45468df66
child 4274 915406c331dc
You should check for the C compiler before you set CFLAGS. :)
configure.in
     1.1 --- a/configure.in	Fri Oct 02 11:26:59 2009 +0000
     1.2 +++ b/configure.in	Fri Oct 02 13:50:50 2009 +0000
     1.3 @@ -49,6 +49,20 @@
     1.4      AC_DEFINE(SDL_BYTEORDER, 1234)
     1.5  fi
     1.6  
     1.7 +dnl Check for tools
     1.8 +AC_LIBTOOL_WIN32_DLL
     1.9 +AC_PROG_LIBTOOL
    1.10 +AC_PROG_CC
    1.11 +AC_PROG_CXX
    1.12 +AC_PROG_INSTALL
    1.13 +AC_PROG_MAKE_SET
    1.14 +if test -z "$host_alias"; then
    1.15 +    hostaliaswindres=
    1.16 +else
    1.17 +    hostaliaswindres="$host_alias-windres"
    1.18 +fi
    1.19 +AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
    1.20 +
    1.21  dnl Set up the compiler and linker flags
    1.22  INCLUDE="-I$srcdir/include"
    1.23  if test x$srcdir != x.; then
    1.24 @@ -89,20 +103,6 @@
    1.25  CFLAGS="$CFLAGS $EXTRA_CFLAGS"
    1.26  LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
    1.27  
    1.28 -dnl Check for tools
    1.29 -AC_LIBTOOL_WIN32_DLL
    1.30 -AC_PROG_LIBTOOL
    1.31 -AC_PROG_CC
    1.32 -AC_PROG_CXX
    1.33 -AC_PROG_INSTALL
    1.34 -AC_PROG_MAKE_SET
    1.35 -if test -z "$host_alias"; then
    1.36 -    hostaliaswindres=
    1.37 -else
    1.38 -    hostaliaswindres="$host_alias-windres"
    1.39 -fi
    1.40 -AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
    1.41 -
    1.42  dnl Check for compiler characteristics
    1.43  AC_C_CONST
    1.44  AC_C_INLINE