* config.guess (*:AIX:*:[4567]): Use /usr/biun/lslpp and not

oslevel to determine the OS version number. This gives more a
	precise version number.	From Michael Felt.
This commit is contained in:
Ben Elliston
2014-11-04 21:57:16 +11:00
parent 3d697cab85
commit 31898b96a4
2 changed files with 10 additions and 3 deletions

7
config.guess vendored
View File

@ -2,7 +2,7 @@
# Attempt to guess a canonical system name.
# Copyright 1992-2014 Free Software Foundation, Inc.
timestamp='2014-03-23'
timestamp='2014-11-04'
# 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
@ -579,8 +579,9 @@ EOF
else
IBM_ARCH=powerpc
fi
if [ -x /usr/bin/oslevel ] ; then
IBM_REV=`/usr/bin/oslevel`
if [ -x /usr/bin/lslpp ] ; then
IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
else
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
fi