# HG changeset patch # User zuxy # Date 1189274687 0 # Node ID 5a92d4b9f1fbb995c55cf2c35d23a663e286d23a # Parent eb7b1f3327aa7ca3e15b0bcc7ad92a54c0fab922 Use -march=native (avail. since gcc 4.2) when possible diff -r eb7b1f3327aa -r 5a92d4b9f1fb configure --- a/configure Sat Sep 08 14:43:10 2007 +0000 +++ b/configure Sat Sep 08 18:04:47 2007 +0000 @@ -1770,6 +1770,7 @@ int main(void) { return 0; } EOF if test "$_runtime_cpudetection" = no ; then + cc_check -march=native && proc=native if test "$proc" = "k8"; then cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp fi @@ -1915,6 +1916,7 @@ EOF # This is a stripped-down version of the i386 fallback. if test "$_runtime_cpudetection" = no ; then + cc_check -march=native && proc=native # --- AMD processors --- if test "$proc" = "k8"; then cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp