summaryrefslogtreecommitdiff
path: root/lang/perl5/patches/patch-ca
diff options
context:
space:
mode:
Diffstat (limited to 'lang/perl5/patches/patch-ca')
-rw-r--r--lang/perl5/patches/patch-ca21
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/perl5/patches/patch-ca b/lang/perl5/patches/patch-ca
new file mode 100644
index 00000000000..493d7cb08c6
--- /dev/null
+++ b/lang/perl5/patches/patch-ca
@@ -0,0 +1,21 @@
+$NetBSD: patch-ca,v 1.1 2004/04/12 02:51:22 jschauma Exp $
+
+--- Configure.orig Fri Mar 26 10:34:43 2004
++++ Configure Fri Mar 26 10:43:17 2004
+@@ -12495,7 +12495,15 @@
+ ACAT(Cir,cus)
+ EOCP
+ $cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1
+-if $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then
++# yuck, what a hack.
++# MIPSPro compiler/preprocessor behaves differently if invoked on
++# stdin vs file. Here we test for stdin, but lateron we use files.
++# So force it to work the way we know it does:
++if [ x"${OPSYS}" = x"IRIX" ]; then
++ echo "Hacking MIPSPro on file vs. stdin..." >&4
++ echo "We know we can catify or stringify, separately or together!"
++ cpp_stuff=42
++elif $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then
+ echo "Oh! Smells like ANSI's been here." >&4
+ echo "We can catify or stringify, separately or together!"
+ cpp_stuff=42