This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
NetBSD for Sparc (at least 1.5.3 and 1.6.1) seem to have
[perl5.git] / hints / vos.sh
index 9860a6f..1ba8731 100644 (file)
@@ -108,9 +108,12 @@ echo "Testing whether bug gnu_g++-220 is fixed in your compiler..."
 # Try compiling the test case.
 if $cc -o t001 -O $ccflags $ldflags ../hints/t001.c; then
        gccbug=`$run ./t001`
+       if [ "X$gccversion" = "X" ]; then
+               # Done too late in Configure if hinted
+               gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+       fi
        case "$gccbug" in
-       *fails*)        gccversion=`$cc --version`
-                       cat >&4 <<EOF
+       *fails*)        cat >&4 <<EOF
 This C compiler ($gccversion) is known to have optimizer
 problems when compiling pp_pack.c.  The Stratus bug number
 for this problem is gnu_g++-220.
@@ -140,3 +143,5 @@ fi
 
 $rm -f t001$_o t001$_exe t001.kp
 EOCBU
+
+