# HG changeset patch # User reimar # Date 1275144242 0 # Node ID cf8a807cf4af51a93d99933e81304948ec8edd60 # Parent b0618e2021e92caae04a4ddddf6113cedc7520d8 Fix compilation if the compiler does not support -march=amdfam10 diff -r b0618e2021e9 -r cf8a807cf4af configure --- a/configure Sat May 29 10:43:51 2010 +0000 +++ b/configure Sat May 29 14:44:02 2010 +0000 @@ -1916,6 +1916,9 @@ if test $cc_vendor != "intel" ; then cc_check -march=native && proc=native fi + if test "$proc" = "amdfam10"; then + cc_check -march=$proc $cpuopt=$proc || proc=k8 + fi if test "$proc" = "k8"; then cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp fi