This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
tweak hpux hints in vain attempt to get cppstdin set properly
authorAndy Dougherty <doughera@lafayette.edu>
Wed, 15 Jul 1998 16:11:43 +0000 (12:11 -0400)
committerGurusamy Sarathy <gsar@cpan.org>
Sun, 19 Jul 1998 06:33:29 +0000 (06:33 +0000)
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: <Pine.SUN.3.96.980715161018.1560D-100000@newton.phys>
--
From: Andy Dougherty <doughera@lafcol.lafayette.edu>
Date: Thu, 16 Jul 1998 11:37:58 -0400 (EDT)
Subject: Re: Configure misses preprocessor on HP-UX
Message-Id: <Pine.SUN.3.96.980716113128.2651N-100000@newton.phys>

p4raw-id: //depot/perl@1553

hints/hpux.sh

index 9b8b3b4..8466924 100644 (file)
@@ -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