diff configure @ 17443:7ec749924f80

AIX compiler CPU-option improvements patch by Derek E. Lewis < dlewis &&@&& solnetworks &&.&& net >
author diego
date Fri, 20 Jan 2006 21:15:28 +0000
parents ac71efc665f0
children f70d4718090e
line wrap: on
line diff
--- a/configure	Fri Jan 20 21:04:27 2006 +0000
+++ b/configure	Fri Jan 20 21:15:28 2006 +0000
@@ -1237,8 +1237,14 @@
 	# gcc 3.3 and up supports POWER4
 	if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then
 	    case "$proc" in
-		POWER4) _march='-mcpu=power4' _mcpu='-mtune=power4'
-			_def_dcbzl='#undef NO_DCBZL' ;;
+		POWER4) _march='-mcpu=power4' _mcpu='-mtune=power4' ;;
+		*) ;;
+	    esac
+	fi
+	# gcc 4.0 and up supports POWER5
+	if test "$_cc_major" -ge "4"; then
+	    case "$proc" in
+		POWER5) _march='-mcpu=power5' _mcpu='-mtune=power5' ;;
 		*) ;;
 	    esac
 	fi