From 2e96cdbf74e4c31d3107c0cbde1a3d3471050be4 Mon Sep 17 00:00:00 2001 From: Per Hedbor <ph@opera.com> Date: Sat, 12 Aug 2000 01:49:31 +0200 Subject: [PATCH] Disabled the missing paranthesis warning due to the if else warning. Added -mcpu=.. flags for gcc when running solaris by using isalist Rev: src/configure.in:1.393 --- src/configure.in | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/configure.in b/src/configure.in index 64698fdb3c..487c00ff29 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1,4 +1,4 @@ -AC_REVISION("$Id: configure.in,v 1.392 2000/08/07 11:35:52 grubba Exp $") +AC_REVISION("$Id: configure.in,v 1.393 2000/08/11 23:49:31 per Exp $") AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h) @@ -669,7 +669,10 @@ if test $cflags_is_set = no; then if test "x${GCC-}" = xyes ; then - WARN="-W -Wall -Wpointer-arith -Wno-unused" + # Do not use -Wall, since that produces a lot of warnings that are not + # really interresting (such as the warning for if( ... ) ... else if( + # ... ) .... else + WARN="-Wcomment -Wformat -Wimplicit-function-declaration -Wmultichar -Wswitch -Wuninitialized -Wpointer-arith -Wchar-subscripts -Wno-long-long" if test "x${with_static_linking-}" = "xyes" ; then AC_SYS_COMPILER_FLAG(-static,link_static,CFLAGS) @@ -713,6 +716,20 @@ if test $cflags_is_set = no; then AC_SYS_COMPILER_FLAG(-mpentium,pentium,OPTIMIZE) ]) ;; + i86pc) + case "`isalist 2>/dev/null`" in + *pentium_pro*) + AC_SYS_COMPILER_FLAG(-mcpu=pentiumpro,pentiumpro,OPTIMIZE,[ + AC_SYS_COMPILER_FLAG(-mcpu=pentium,pentium,OPTIMIZE) + ]) + ;; + *pentium*) + AC_SYS_COMPILER_FLAG(-mcpu=pentium,pentium,OPTIMIZE,[ + AC_SYS_COMPILER_FLAG(-m486,486,OPTIMIZE) + ]) + ;; + esac + ;; esac # AIX -- GitLab