From a54f33780183b36bd4e619e4005aebd1b3def4e4 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 2 Oct 2009 13:50:50 +0000 Subject: [PATCH] You should check for the C compiler before you set CFLAGS. :) --- configure.in | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/configure.in b/configure.in index 0a1b98cd5..590cb49d2 100644 --- a/configure.in +++ b/configure.in @@ -49,6 +49,20 @@ else AC_DEFINE(SDL_BYTEORDER, 1234) fi +dnl Check for tools +AC_LIBTOOL_WIN32_DLL +AC_PROG_LIBTOOL +AC_PROG_CC +AC_PROG_CXX +AC_PROG_INSTALL +AC_PROG_MAKE_SET +if test -z "$host_alias"; then + hostaliaswindres= +else + hostaliaswindres="$host_alias-windres" +fi +AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres]) + dnl Set up the compiler and linker flags INCLUDE="-I$srcdir/include" if test x$srcdir != x.; then @@ -89,20 +103,6 @@ CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS" CFLAGS="$CFLAGS $EXTRA_CFLAGS" LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" -dnl Check for tools -AC_LIBTOOL_WIN32_DLL -AC_PROG_LIBTOOL -AC_PROG_CC -AC_PROG_CXX -AC_PROG_INSTALL -AC_PROG_MAKE_SET -if test -z "$host_alias"; then - hostaliaswindres= -else - hostaliaswindres="$host_alias-windres" -fi -AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres]) - dnl Check for compiler characteristics AC_C_CONST AC_C_INLINE