If ccflags was empty the _previous_ $* containing all the
Jarkko Hietaniemi [Thu, 26 Apr 2001 02:34:44 +0000 (02:34 +0000)]
environment variables and Configure variables was used,
which lead, among other bad things, into $ccflags being your
uname -a output, which lead into test compile with cc failing,
which lead into gcc being selected, which didn't work that well
since gcc (ancient 2.8.1 in that particular box) wasn't too happy
with large files, et cetera.

p4raw-id: //depot/perl@9850

hints/hpux.sh

index 7eb996c..8623715 100644 (file)
@@ -37,8 +37,12 @@ echo "Archname is $archname"
 
 ### HP-UX OS specific behaviour
 
-set `echo " $ccflags " | sed -e 's/ -A[ea] / /' -e 's/ -D_HPUX_SOURCE / /'`
-cc_cppflags="$* -D_HPUX_SOURCE"
+case "$ccflags" in
+'') cc_cppflags='' ;;
+*)  set `echo " $ccflags " | sed -e 's/ -A[ea] / /g' -e 's/ -D_HPUX_SOURCE / /'`
+    cc_cppflags="$* -D_HPUX_SOURCE"
+    ;;
+esac
 ccflags="-Ae $cc_cppflags"
 cppflags="-Aa -D__STDC_EXT__ $cc_cppflags"