From 31898b96a47f60b2d10c6a59063836ae241abc94 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Tue, 4 Nov 2014 21:57:16 +1100 Subject: [PATCH] * 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. --- ChangeLog | 6 ++++++ config.guess | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0eb46cb..113008f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-11-04 Ben Elliston + + * 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. + 2014-09-26 Olivier Hainque * config.sub (leon, leon[3-9]): New CPUs. diff --git a/config.guess b/config.guess index 4c185ba..6c32c86 100755 --- a/config.guess +++ b/config.guess @@ -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