Fix the ccversion detection for 5.1 and beyond.
Spider Boardman [Thu, 7 Sep 2000 17:54:27 +0000 (13:54 -0400)]
Subject: [ID 20000907.007] Not OK: perl v5.7.0 +devel-7030 on alpha-dec_osf 4.0f
Message-Id: <200009072154.RAA14747@leggy.zk3.dec.com>

p4raw-id: //depot/perl@7031

hints/dec_osf.sh

index 86e8f94..ff8c374 100644 (file)
@@ -99,7 +99,7 @@ EOF
        fi
         ;;
 *)     # compile something small: taint.c is fine for this.
-       ccversion=`cc -V | grep 'DEC C' | awk '{print $3}'`
+       ccversion=`cc -V | grep -E '(Compaq|DEC) C' | awk '{print $3}'`
        # 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