comparison configure @ 9497:38857e700388

Adding gcc major, minor, mini vars, adding unused var suppression for gcc 3 series
author atmos4
date Sun, 23 Feb 2003 23:44:16 +0000
parents acab62e4e026
children 7e282f362dbe
comparison
equal deleted inserted replaced
9496:78e86ff778b7 9497:38857e700388
461 '') 461 '')
462 cc_version="v. ?.??, bad" 462 cc_version="v. ?.??, bad"
463 cc_verc_fail=yes 463 cc_verc_fail=yes
464 ;; 464 ;;
465 2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9]) 465 2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9])
466 _cc_major=`echo $cc_version | cut -d '.' -f 1`
467 _cc_minor=`echo $cc_version | cut -d '.' -f 2`
468 _cc_mini=`echo $cc_version | cut -d '.' -f 3`
466 cc_version="$cc_version, ok" 469 cc_version="$cc_version, ok"
467 cc_verc_fail=no 470 cc_verc_fail=no
468 ;; 471 ;;
469 'not found') 472 'not found')
470 cc_verc_fail=yes 473 cc_verc_fail=yes
4741 4744
4742 # Checking for CFLAGS 4745 # Checking for CFLAGS
4743 _stripbinaries=yes 4746 _stripbinaries=yes
4744 if test "$_profile" != "" || test "$_debug" != "" ; then 4747 if test "$_profile" != "" || test "$_debug" != "" ; then
4745 CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" 4748 CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile"
4749 if test "$_cc_major" -ge "3" ; then
4750 CFLAGS=`echo "$CFLAGS" | sed -e 's/\(-Wall\)/\1 -Wno-unused-parameter/'`
4751 fi
4746 _stripbinaries=no 4752 _stripbinaries=no
4747 elif test -z "$CFLAGS" ; then 4753 elif test -z "$CFLAGS" ; then
4748 if test "$host_arch" != "mips" ; then 4754 if test "$host_arch" != "mips" ; then
4749 CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer" 4755 CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer"
4750 else 4756 else