diff options
Diffstat (limited to 'hints')
-rw-r--r-- | hints/bsd386.sh | 3 | ||||
-rw-r--r-- | hints/convexos.sh | 20 | ||||
-rw-r--r-- | hints/dec_osf.sh | 4 | ||||
-rw-r--r-- | hints/esix4.sh | 18 | ||||
-rw-r--r-- | hints/freebsd.sh | 2 | ||||
-rw-r--r-- | hints/irix_5.sh | 3 | ||||
-rw-r--r-- | hints/irix_6.sh | 38 | ||||
-rw-r--r-- | hints/sunos_4_1.sh | 1 | ||||
-rw-r--r-- | hints/svr4.sh | 26 | ||||
-rw-r--r-- | hints/ultrix_4.sh | 24 |
10 files changed, 99 insertions, 40 deletions
diff --git a/hints/bsd386.sh b/hints/bsd386.sh index 8303a18990..6a1b8bcd3c 100644 --- a/hints/bsd386.sh +++ b/hints/bsd386.sh @@ -29,6 +29,3 @@ case "$osvers" in esac ;; esac - -# BSD/386 has an older <db.h> header file. -DB_File_cflags='ccflags="$ccflags -DDBXS_HASH_TYPE=int -DDBXS_PREFIX_TYPE=int"' diff --git a/hints/convexos.sh b/hints/convexos.sh new file mode 100644 index 0000000000..f0ce409756 --- /dev/null +++ b/hints/convexos.sh @@ -0,0 +1,20 @@ +# convexos.sh +# Thanks to David Starks-Browning <dstarks@rc.tudelft.nl> +# Date: Tue, 17 Jan 1995 10:45:03 -0500 (EST) +# Subject: Re: Hints for ConvexOS 10.2 +# +# uname -a output looks like +# ConvexOS xxxx C38xx 10.2 convex +# Configure may incorrectly assign $3 to $osvers. +# +set X $myuname +shift +osvers=$4 +# ConvexOS 10.2 uses POSIX process group semantics for getpgrp but +# BSD semantics for setpgrp. Perl assumes you don't have such +# a mixed system, so we undef d_getpgrp. +# Andy Dougherty doughera@lafcol.lafayette.edu +# +case "$osvers" in +10.2) d_getpgrp='undef' ;; +esac diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index 1f9d71f5c9..311a786ace 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -1,5 +1,7 @@ # hints/dec_osf.sh -optimize="-g" +case "$optimize" in +'') optimize="-g" ;; +esac ccflags="$ccflags -DSTANDARD_C -DDEBUGGING" # Version 1 has problems with -no_archive if only an archive # lib is available. diff --git a/hints/esix4.sh b/hints/esix4.sh index 6d8f266fd7..c8dec8a8b8 100644 --- a/hints/esix4.sh +++ b/hints/esix4.sh @@ -6,7 +6,6 @@ case "$cc" in '') cc='/bin/cc' test -f $cc || cc='/usr/ccs/bin/cc' - cccdlflags='-Kpic' ;; esac ldflags='-L/usr/ccs/lib -L/usr/ucblib' @@ -15,7 +14,6 @@ ccflags='-I/usr/include -I/usr/ucbinclude' libswanted=`echo " $libswanted " | sed -e 's/ malloc / /' ` d_index='undef' d_suidsafe=define -lddlflags="-G $ldflags" usevfork='false' if test "$osvers" = "3.0"; then d_gconvert='undef' @@ -31,9 +29,13 @@ EOM fi rm -f /tmp/esix$$ fi -# dlopen routines exist but they don't work with perl. -# The case statement allows experimenters to override hint with -# Configure -D usedl -case "$usedl" in -'') usedl="$undef" ;; -esac + +cat <<'EOM' + +If you wish to use dynamic linking, you must use + LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH +or + setenv LD_LIBRARY_PATH `pwd` +before running make. + +EOM diff --git a/hints/freebsd.sh b/hints/freebsd.sh index 8a46326c6d..4efca6a043 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -24,5 +24,3 @@ case "$osvers" in esac # Avoid telldir prototype conflict in pp_sys.c (FreeBSD uses const DIR *) pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"' -# FreeBSD has an older <db.h> header file. -DB_File_cflags='ccflags="$ccflags -DDBXS_HASH_TYPE=int -DDBXS_PREFIX_TYPE=int"' diff --git a/hints/irix_5.sh b/hints/irix_5.sh index dcbcfba5d9..113312b43d 100644 --- a/hints/irix_5.sh +++ b/hints/irix_5.sh @@ -2,9 +2,6 @@ i_time='define' ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000" lddlflags="-shared" -case "$usedl" in -'') usedl='y' ;; -esac set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'` shift libswanted="$*" diff --git a/hints/irix_6.sh b/hints/irix_6.sh new file mode 100644 index 0000000000..79363bbc9f --- /dev/null +++ b/hints/irix_6.sh @@ -0,0 +1,38 @@ +# irix_6.sh +# from Krishna Sethuraman, krishna@mit.edu +# Date: Wed Jan 18 11:40:08 EST 1995 +# added `-32' to force compilation in 32-bit mode. +# otherwise, copied from irix_5.sh. + +# Perl built with this hints file under IRIX 6.0.1 passes +# all tests (`make test'). + +i_time='define' +cc="cc -32" +ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000" +lddlflags="-32 -shared" +set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / +/'` +shift +libswanted="$*" + +# The following might be of interest if you wish to try 64-bit mode: +# irix_6.sh +# Krishna Sethuraman, krishna@mit.edu +# This will build a 64-bit perl 5 executable under IRIX 6.x. +# I had to remove socket, sun, crypt, nsl, and dl from the +# link line because there are no 64-bit libraries with these +# names (as of IRIX 6.0.1). + +# I don't know if this will actually build a fully working perl because I +# can't tell if the symbols normally provided by these libraries +# are provided by other libraries which remain on the link line. +# In any case, perl does build with this file without unresolved +# symbol complaints. + +# i_time='define' +# ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000" +# lddlflags="-shared" +# set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ sun / /' -e 's/ crypt / /' -e 's/ nsl / /' -e 's/ dl / /'` +# shift +# libswanted="$*" diff --git a/hints/sunos_4_1.sh b/hints/sunos_4_1.sh index 070a8e0544..ba469b3e71 100644 --- a/hints/sunos_4_1.sh +++ b/hints/sunos_4_1.sh @@ -12,4 +12,3 @@ else # sys5 fi # we don't set gidtype because unistd.h says gid_t getgid() but man # page says int getgid() for bsd. utils.c includes unistd.h :-( - diff --git a/hints/svr4.sh b/hints/svr4.sh index c707eb8ccd..f8536a15cb 100644 --- a/hints/svr4.sh +++ b/hints/svr4.sh @@ -1,9 +1,9 @@ # svr4 hints, System V Release 4.x +# Last modified 1994/12/03 by Tye McQueen, tye@metronet.com # Use Configure -Dcc=gcc to use gcc. case "$cc" in '') cc='/bin/cc' test -f $cc || cc='/usr/ccs/bin/cc' - cccdlflags='-Kpic' # Probably needed for dynamic loading ;; esac test -d /usr/local/man || mansrc='none' @@ -17,17 +17,15 @@ libswanted=`echo $libswanted | tr ' ' '\012' | egrep -v '^(malloc|ucb)$'` # -lucb: Defines setreuid() and other routines Perl wants but they don't # add any/much functionality and often won't ld properly. # -lmalloc: Anyone know what problems this caused? -if [ "" = "$i_ndbm" -a ! -f /usr/ucblib/libndbm.a ]; then -# UnixWare 1.1 may install /usr/ucbinclude/ndbm.h w/o /usr/ucblib/libndbm.a - i_ndbm="$undef" # so Configure tries to build ext/NDBM_File and ld -fi # can't find dbm_open()! "./Configure -D i_ndbm=define" overrides. -d_index='undef' -d_suidsafe=define # "./Configure -d" can't figure this out -lddlflags="-G $ldflags" # Probably needed for dynamic loading +d_index='undef' # Even if libucb.a used, use strchr() not index(). +d_suidsafe=define # "./Configure -d" can't figure this out easilly usevfork='false' -# dlopen routines exist but they don't work with perl. -# The case statement allows experimenters to override hint with -# Configure -D usedl -case "$usedl" in -'') usedl="$undef" ;; -esac +cat <<'EOM' + +If you wish to use dynamic linking, you must use + LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH +or + setenv LD_LIBRARY_PATH `pwd` +before running make. + +EOM diff --git a/hints/ultrix_4.sh b/hints/ultrix_4.sh index c7a8c2cfa0..654a6a1e05 100644 --- a/hints/ultrix_4.sh +++ b/hints/ultrix_4.sh @@ -1,23 +1,31 @@ -optimize=-g -tmp=`(uname -a) 2>/dev/null` -case "$tmp" in -*RISC*) cat <<EOF +# hints/ultrix_4.sh +# Last updated by Andy Dougherty <doughera@lafcol.lafayette.edu> +# Wed Nov 2 13:41:14 EST 1994 +# +# I don't know if -g is really needed. (AD) +case "$optimize" in +'') optimize=-g ;; +esac +case "$myuname" 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 - case "$tmp" in + case "$osvers" in *4.2*) d_volatile=undef;; esac -;; + ;; esac -case "$tmp" in +case "$osvers" in *4.1*) ccflags="$ccflags -DLANGUAGE_C -Olimit 2900" ;; *4.2*) ccflags="$ccflags -DLANGUAGE_C -Olimit 2900" libswanted=`echo $libswanted | sed 's/ malloc / /'` ;; -*4.4*) ccflags="$ccflags -std -Olimit 2900" +*4.3*) ccflags="$ccflags -std1 -DLANGUAGE_C -Olimit 2900" + ;; +*4*) ccflags="$ccflags -std -Olimit 2900" ranlib='ranlib' ;; esac |