summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorLarry Wall <lwall@netlabs.com>1991-06-06 23:28:30 +0000
committerLarry Wall <lwall@netlabs.com>1991-06-06 23:28:30 +0000
commitd48672a2009b4897fb5bf74d6723c050cdd015e0 (patch)
tree8b55c5c62bca864358bc6bcb107144d864062543 /hints
parent9ef589d8078fdf16316dec772c00e81b3c38fd22 (diff)
downloadperl-d48672a2009b4897fb5bf74d6723c050cdd015e0.tar.gz
perl 4.0 patch 9: patch #4, continued
See patch #4.
Diffstat (limited to 'hints')
-rw-r--r--hints/sunos_4_0_1.sh5
-rw-r--r--hints/sunos_4_0_2.sh5
-rw-r--r--hints/svr4.sh6
-rw-r--r--hints/ultrix_3.sh14
-rw-r--r--hints/ultrix_4.sh18
-rw-r--r--hints/vax.sh1
6 files changed, 40 insertions, 9 deletions
diff --git a/hints/sunos_4_0_1.sh b/hints/sunos_4_0_1.sh
index 0cdff54578..7fd8c889cb 100644
--- a/hints/sunos_4_0_1.sh
+++ b/hints/sunos_4_0_1.sh
@@ -1,4 +1 @@
-echo ': work around botch in SunOS 4.0.1 and 4.0.2' >>../perl.h
-echo '#ifndef fputs' >>../perl.h
-echo '#define fputs(str,fp) fprintf(fp,"%s",str)' >>../perl.h
-echo '#endif' >>../perl.h
+$ccflags="$ccflags -DFPUTS_BOTCH"
diff --git a/hints/sunos_4_0_2.sh b/hints/sunos_4_0_2.sh
index 0cdff54578..7fd8c889cb 100644
--- a/hints/sunos_4_0_2.sh
+++ b/hints/sunos_4_0_2.sh
@@ -1,4 +1 @@
-echo ': work around botch in SunOS 4.0.1 and 4.0.2' >>../perl.h
-echo '#ifndef fputs' >>../perl.h
-echo '#define fputs(str,fp) fprintf(fp,"%s",str)' >>../perl.h
-echo '#endif' >>../perl.h
+$ccflags="$ccflags -DFPUTS_BOTCH"
diff --git a/hints/svr4.sh b/hints/svr4.sh
new file mode 100644
index 0000000000..eae477e807
--- /dev/null
+++ b/hints/svr4.sh
@@ -0,0 +1,6 @@
+cc='/bin/cc'
+test -f $cc || cc='/usr/ccs/bin/cc'
+ldflags='-L/usr/ucblib'
+mansrc='/usr/share/man/man1'
+ccflags='-I/usr/include -I/usr/ucbinclude'
+libswanted=`echo $libswanted | sed 's/ ucb/ c ucb/'`
diff --git a/hints/ultrix_3.sh b/hints/ultrix_3.sh
index 2057bc683c..0df47231f6 100644
--- a/hints/ultrix_3.sh
+++ b/hints/ultrix_3.sh
@@ -1,2 +1,14 @@
ccflags="$ccflags -DLANGUAGE_C"
-d_waitpid=$undef
+tmp="`(uname -a) 2>/dev/null`"
+case "$tmp" in
+*3.[01]*RISC) d_waitpid=$undef;;
+'') d_waitpid=$undef;;
+esac
+case "$tmp" in
+*RISC)
+ cmd_cflags='optimize="-g"'
+ perl_cflags='optimize="-g"'
+ tcmd_cflags='optimize="-g"'
+ tperl_cflags='optimize="-g"'
+ ;;
+esac
diff --git a/hints/ultrix_4.sh b/hints/ultrix_4.sh
index 008e1ef82a..ffaf376272 100644
--- a/hints/ultrix_4.sh
+++ b/hints/ultrix_4.sh
@@ -1 +1,19 @@
ccflags="$ccflags -DLANGUAGE_C -Olimit 2900"
+tmp=`(uname -a) 2>/dev/null`
+case "$tmp" in
+*RISC*) cat <<EOF
+Note that there is a bug in some versions of NFS on the DECStation that
+may cause utime() to work incorrectly. If so, regression test io/fs
+may fail if run under NFS. Ignore the failure.
+EOF
+;;
+esac
+case "$tmp" in
+*4.1*)
+ eval_cflags='optimize="-g"'
+ teval_cflags='optimize="-g"'
+ toke_cflags='optimize="-g"'
+ ttoke_cflags='optimize="-g"'
+ ;;
+esac
+
diff --git a/hints/vax.sh b/hints/vax.sh
new file mode 100644
index 0000000000..ea8f224396
--- /dev/null
+++ b/hints/vax.sh
@@ -0,0 +1 @@
+teval_cflags='case $cc in *gcc);; *) optimize="-O";; esac'