perl/hints/vos.sh
[p5sagit/p5-mst-13.2.git] / hints / hpux.sh
index c99a25c..9e4a01f 100644 (file)
@@ -31,6 +31,12 @@ else
        sed -e 's/HP-//' -e 1q`;
     selecttype='int *'
     fi
+    # For some strange reason, the u32align test from Configure hangs in
+    # HP-UX 10.20 since the December 2001 patches.  So hint it to avoid
+    # the test.
+    if [ "$xxOsRevMajor" -le 10 ]; then
+       d_u32align=$define
+    fi
 
 echo "Archname is $archname"
 
@@ -270,6 +276,7 @@ int main ()
 EOF
 $cc -o try $ccflags $ldflags try.c
        maxdsiz=`try`
+rm -f try try.c core
 if [ $maxdsiz -le 64 ]; then
     # 64 Mb is probably not enough to optimize toke.c
     # and regexp.c with -O2