ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/configure.ac
(Generate patch)

Comparing BasiliskII/src/Unix/configure.ac (file contents):
Revision 1.13 by gbeauche, 2002-11-05T11:58:40Z vs.
Revision 1.14 by gbeauche, 2002-11-24T20:07:25Z

# Line 360 | Line 360 | irix*)
360    LIBS="$LIBS -laudio"
361    WANT_ESD=no
362  
363 <  dnl Check if our compiler supports -Ofast (MIPSPro)
364 <  HAVE_OFAST=no
363 >  dnl Check if our compiler supports -IPA (MIPSPro)
364 >  HAVE_IPA=no
365    ocflags="$CFLAGS"
366 <  CFLAGS=`echo $CFLAGS | sed -e 's/ -g / -Ofast /;s/^-g /-Ofast /;s/-g$/ -Ofast/;s/^-g$/-Ofast/'`
367 <  AC_MSG_CHECKING(if "-Ofast" works)
366 >  CFLAGS=`echo "$CFLAGS -IPA" | sed -e "s/-g//g"`
367 >  AC_MSG_CHECKING(if "-IPA" works)
368    dnl Do a test compile of an empty function
369 <  AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_OFAST=yes], AC_MSG_RESULT(no))
369 >  AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no))
370    CFLAGS="$ocflags"
371  
372    ;;
# Line 1092 | Line 1092 | if [[ "x$HAVE_GCC27" = "xyes" ]]; then
1092    CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g//g'`
1093   fi
1094  
1095 < dnl Or if we have -Ofast
1096 < if [[ "x$HAVE_OFAST" = "xyes" ]]; then
1097 <  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -Ofast"
1098 <  CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -Ofast"
1095 > dnl Or if we have -IPA (MIPSPro compilers)
1096 > if [[ "x$HAVE_IPA" = "xyes" ]]; then
1097 >  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA"
1098 >  CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA"
1099    CXXFLAGS="-LANG:std $CXXFLAGS"
1100 <  LDFLAGS="$LDFLAGS -ipa"
1100 >  LDFLAGS="$LDFLAGS -O3 -OPT:Olimit=0 -IPA"
1101   fi
1102  
1103   dnl Generate Makefile.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines