more problems pointed out by raorn

This commit is contained in:
Bill Currie 2002-02-23 17:43:58 +00:00
parent 9d0d8c49e7
commit 7db3eaeefe

View file

@ -116,15 +116,6 @@ fi
AC_CHECK_LIB(l, main, LEXLIB="-ll", AC_CHECK_LIB(fl, main, LEXLIB="-lfl"))
AC_SUBST(LEXLIB)
set $CC
if test "$1" = gcc; then
shift
args="$*"
AC_MSG_CHECKING(for gcc version)
CCVER="gcc `gcc --version`"
AC_MSG_RESULT($CCVER)
fi
dnl ==================================================================
dnl Checks for system services
dnl ==================================================================
@ -1189,6 +1180,13 @@ if test "x$optimize" = xyes; then
AC_MSG_RESULT(yes)
BUILD_TYPE="$BUILD_TYPE Optimize"
if test "x$GCC" = xyes; then
set $CC
shift
args="$*"
AC_MSG_CHECKING(for gcc version)
CCVER="gcc `gcc --version`"
AC_MSG_RESULT($CCVER)
echo $CCVER
CFLAGS="$CFLAGS -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
AC_ARG_ENABLE(strict-aliasing,
[ --enable-strict-aliasing enable the -fstrict-aliasing ooption of gcc])
@ -1202,7 +1200,7 @@ if test "x$optimize" = xyes; then
if test $1 -ge 3; then
CFLAGS="$CFLAGS -fstrict-aliasing"
else
if test $1 = 2 -a $ $2 = 96; then
if test $1 = 2 -a $2 = 96; then
CFLAGS="$CFLAGS -fno-strict-aliasing"
fi
fi