mirror of
https://github.com/yawut/SDL.git
synced 2026-07-10 13:44:44 -05:00
You should check for the C compiler before you set CFLAGS. :)
This commit is contained in:
parent
cc0c10c56d
commit
8fa2d005ca
26
configure.in
26
configure.in
|
|
@ -51,6 +51,19 @@ else
|
|||
AC_DEFINE(SDL_BYTEORDER, 1234)
|
||||
fi
|
||||
|
||||
dnl Check for tools
|
||||
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
|
||||
|
|
@ -91,19 +104,6 @@ CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
|
|||
CFLAGS="$CFLAGS $EXTRA_CFLAGS"
|
||||
LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
|
||||
|
||||
dnl Check for tools
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user