z/OS: changes for building threaded from "Brian De Pradine"
[p5sagit/p5-mst-13.2.git] / hints / vos.sh
index 9860a6f..7cd1c72 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,7 @@ fi
 
 $rm -f t001$_o t001$_exe t001.kp
 EOCBU
+
+# VOS has a nanosleep() function but it is a dummy.
+d_nanosleep="undef"
+