This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The AIX C product potentially consists of several packages,
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 17 Sep 2003 09:33:39 +0000 (09:33 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 17 Sep 2003 09:33:39 +0000 (09:33 +0000)
the main package being (hopefully) the first one.

p4raw-id: //depot/perl@21261

hints/aix.sh

index bf1667b..dd800ae 100644 (file)
@@ -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$'`
         ;;