From: Jarkko Hietaniemi Date: Wed, 17 Sep 2003 09:33:39 +0000 (+0000) Subject: The AIX C product potentially consists of several packages, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=35727b84c71fa1997973466e1085cc7718896a75;p=p5sagit%2Fp5-mst-13.2.git The AIX C product potentially consists of several packages, the main package being (hopefully) the first one. p4raw-id: //depot/perl@21261 --- diff --git a/hints/aix.sh b/hints/aix.sh index bf1667b..dd800ae 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -145,7 +145,7 @@ case "$cc" in gccversion=`$cc --version | sed 's/.*(GCC) *//'` fi ;; -*) ccversion=`lslpp -L | grep 'C for AIX Compiler$' | grep -v '\.msg\.[A-Za-z_]*\.' | awk '{print $1,$2}'` +*) ccversion=`lslpp -L | grep 'C for AIX Compiler$' | grep -v '\.msg\.[A-Za-z_]*\.' | head -1 | awk '{print $1,$2}'` case "$ccversion" in '') ccversion=`lslpp -L | grep 'IBM C and C++ Compilers LUM$'` ;;