From 750172a2811bdfdaf06a415f9c1c58c4ba0f97ac Mon Sep 17 00:00:00 2001 From: Steve Roseman Date: Wed, 25 Aug 2004 08:17:32 +0000 Subject: [PATCH] STABLE14-aix-config-guess-20040819 FIXES 6352 detect aix 5 (cherry picked from commit 59cc46ef7e41d21288034df0a850b1c2ca7b4e5c) --- config.guess | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config.guess b/config.guess index 18d6514da..a8f68a046 100755 --- a/config.guess +++ b/config.guess @@ -3,7 +3,7 @@ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 # Free Software Foundation, Inc. -version='2000-09-05' +version='2004-08-19' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -459,13 +459,13 @@ EOF echo rs6000-ibm-aix3.2 fi exit 0 ;; - *:AIX:*:4) + *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` - if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else + if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep -i PowerPC >/dev/null 2>&1; then IBM_ARCH=powerpc - fi + else + IBM_ARCH=rs6000 + fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else -- 2.39.5