From: Andy Dougherty Date: Wed, 15 Jul 1998 16:11:43 +0000 (-0400) Subject: tweak hpux hints in vain attempt to get cppstdin set properly X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=961f3f0014060f56fd0841f7247d821d995bd7ec;p=p5sagit%2Fp5-mst-13.2.git tweak hpux hints in vain attempt to get cppstdin set properly Date: Wed, 15 Jul 1998 16:11:43 -0400 (EDT) Subject: Re: HP-UX 11, perl 5.004_04, Oracle 7.3.3.4, DBI 0.93 Message-Id: -- From: Andy Dougherty Date: Thu, 16 Jul 1998 11:37:58 -0400 (EDT) Subject: Re: Configure misses preprocessor on HP-UX Message-Id: p4raw-id: //depot/perl@1553 --- diff --git a/hints/hpux.sh b/hints/hpux.sh index 9b8b3b4..8466924 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -185,10 +185,21 @@ esac # These warnings are harmless and can be safely ignored. # -# You should enable these if you use the unbundled ANSI C compiler -# (*not* when using the bundled K&R compiler or gcc) -# [XXX this should be enabled automatically] +# cppstdin and cpprun need the -Aa option if you use the unbundled +# ANSI C compiler (*not* the bundled K&R compiler or gcc) +# [XXX this should be enabled automatically by Configure, but isn't yet.] +# [XXX This is reported not to work. You may have to edit config.sh. +# After running Configure, set cpprun and cppstdin in config.sh, +# run "Configure -S" and then "make".] # -#cpprun='/opt/ansic/bin/cc -E -Aa' -#cppstdin="$cpprun" - +case "$cppstdin" in +'') + case "$ccflags" in + *-Aa*) + cpprun="${cc:-cc} -E -Aa" + cppstdin="$cpprun" + cppminus='-' + ;; + esac + ;; +esac