This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Some Tru64 C compilers have C++ components that confuse
authorJarkko Hietaniemi <jhi@iki.fi>
Sun, 5 Aug 2001 13:56:46 +0000 (13:56 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Sun, 5 Aug 2001 13:56:46 +0000 (13:56 +0000)
the ccversion parsing.

p4raw-id: //depot/perl@11580

hints/dec_osf.sh

index 71bc05f..8bf043f 100644 (file)
@@ -100,7 +100,7 @@ EOF
        fi
         ;;
 *)     # compile something small: taint.c is fine for this.
        fi
         ;;
 *)     # compile something small: taint.c is fine for this.
-       ccversion=`cc -V | awk '/(Compaq|DEC) C/ {print $3}'`
+       ccversion=`cc -V | awk '/(Compaq|DEC) C/ {print $3}' | grep '^V'`
        # the main point is the '-v' flag of 'cc'.
                case "`cc -v -I. -c taint.c -o taint$$.o 2>&1`" in
        */gemc_cc*)     # we have the new DEC GEM CC
        # the main point is the '-v' flag of 'cc'.
                case "`cc -v -I. -c taint.c -o taint$$.o 2>&1`" in
        */gemc_cc*)     # we have the new DEC GEM CC