changeset 19832:f9d1c83798a9

Fix Irix build with gcc < 3.x, closes Bugzilla #572.
author diego
date Thu, 14 Sep 2006 18:29:24 +0000
parents a9d072fde78f
children 10f36060390a
files configure
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Sep 14 09:41:06 2006 +0000
+++ b/configure	Thu Sep 14 18:29:24 2006 +0000
@@ -1367,6 +1367,10 @@
 	    R5000) _march='-mips4' _mcpu='-mtune=r5000' ;;
 	    R8000|R10000|R12000|R14000|R16000) _march='-mips4' _mcpu='-mtune=r8000' ;;
 	esac
+	# gcc < 3.x does not support -mtune.
+	if test "$cc_vendor" = "gnu" && test "$_cc_major" -lt 3 ; then
+	    _mcpu=''
+	fi
         echores "$proc"
     fi