# HG changeset patch # User nplourde # Date 1115686488 0 # Node ID 1f7fc4c588e3722e563025570af77fdb32d0fe99 # Parent d701716bfbbcbc67c7e70338beb5ed8f2f85240b mcpu & mtune work on gcc4 diff -r d701716bfbbc -r 1f7fc4c588e3 configure --- a/configure Tue May 10 00:46:30 2005 +0000 +++ b/configure Tue May 10 00:54:48 2005 +0000 @@ -1059,7 +1059,7 @@ *) ;; esac # gcc 3.1(.1) and up supports 7400 and 7450 - if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "1"; then + if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "1" || test "$_cc_major" -ge "4"; then case "$proc" in 7400*|7410*) _march='-mcpu=7400' _mcpu='-mtune=7400' ;; 7450*|7455*) _march='-mcpu=7450' _mcpu='-mtune=7450' ;; @@ -1067,7 +1067,7 @@ esac fi # gcc 3.2 and up supports 970 - if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3"; then + if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then case "$proc" in 970*) _march='-mcpu=970' _mcpu='-mtune=970' _def_dcbzl='#undef NO_DCBZL' ;;