comparison configure @ 15751:97402fff252e

100l, -march=k8 was used with cpu detection even when compiler did not support it.
author reimar
date Sat, 18 Jun 2005 21:49:02 +0000
parents 8c7268bfe792
children a8854519f3ff
comparison
equal deleted inserted replaced
15750:f0aa0931feb3 15751:97402fff252e
987 # versions don't really support 64-bit on amd64. 987 # versions don't really support 64-bit on amd64.
988 # Is this a valid assumption? -Corey 988 # Is this a valid assumption? -Corey
989 if test "$proc" = "athlon-xp" || test "$proc" = "athlon-4" ; then 989 if test "$proc" = "athlon-xp" || test "$proc" = "athlon-4" ; then
990 cc_check -march=$proc $cpuopt=$proc || proc=error 990 cc_check -march=$proc $cpuopt=$proc || proc=error
991 fi 991 fi
992 _march="-march=$proc"
993 _mcpu="$cpuopt=$proc"
992 if test "$proc" = "error" ; then 994 if test "$proc" = "error" ; then
993 echores "Your $_cc does not even support \"athlon-xp\" for '-march' and '$cpuopt'." 995 echores "Your $_cc does not even support \"athlon-xp\" for '-march' and '$cpuopt'."
994 _mcpu="" 996 _mcpu=""
995 _march="" 997 _march=""
996 fi 998 fi
997 else 999 else
998 _march="" 1000 _march=""
999 _mcpu="" 1001 _mcpu=""
1000 fi 1002 fi
1001 1003
1002 _march="-march=$proc"
1003 _mcpu="$cpuopt=$proc"
1004 _optimizing="" 1004 _optimizing=""
1005 1005
1006 echores "$proc" 1006 echores "$proc"
1007 1007
1008 x86_exts_check 1008 x86_exts_check