# HG changeset patch # User cehoyos # Date 1270203188 0 # Node ID 2c04ca7b638ca978f7ba7da9272138d970a5cbeb # Parent fb3bde3ec3a82e0da53e6309e4f229d3c6c1c4f9 Do not try -march=native for icc. diff -r fb3bde3ec3a8 -r 2c04ca7b638c configure --- a/configure Fri Apr 02 07:14:21 2010 +0000 +++ b/configure Fri Apr 02 10:13:08 2010 +0000 @@ -1912,7 +1912,9 @@ int main(void) { return 0; } EOF if test "$_runtime_cpudetection" = no ; then + if test $cc_vendor != "intel" ; then cc_check -march=native && proc=native + fi if test "$proc" = "k8"; then cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp fi @@ -2060,7 +2062,9 @@ EOF # This is a stripped-down version of the i386 fallback. if test "$_runtime_cpudetection" = no ; then + if test $cc_vendor != "intel" ; then cc_check -march=native && proc=native + fi # --- AMD processors --- if test "$proc" = "k8"; then cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp