diff options
author | Larry Wall <lwall@netlabs.com> | 1994-10-17 23:00:00 +0000 |
---|---|---|
committer | Larry Wall <lwall@netlabs.com> | 1994-10-17 23:00:00 +0000 |
commit | a0d0e21ea6ea90a22318550944fe6cb09ae10cda (patch) | |
tree | faca1018149b736b1142f487e44d1ff2de5cc1fa /hints | |
parent | 85e6fe838fb25b257a1b363debf8691c0992ef71 (diff) | |
download | perl-a0d0e21ea6ea90a22318550944fe6cb09ae10cda.tar.gz |
perl 5.000perl-5.000
[editor's note: this commit combines approximate 4 months of furious
releases of Andy Dougherty and Larry Wall - see pod/perlhist.pod for
details. Andy notes that;
Alas neither my "Irwin AccuTrack" nor my DC 600A quarter-inch cartridge
backup tapes from that era seem to be readable anymore. I guess 13 years
exceeds the shelf life for that backup technology :-(.
]
Diffstat (limited to 'hints')
63 files changed, 491 insertions, 258 deletions
diff --git a/hints/3b2.sh b/hints/3b2.sh deleted file mode 100644 index 5b67dab8f2..0000000000 --- a/hints/3b2.sh +++ /dev/null @@ -1 +0,0 @@ -optimize='-g' diff --git a/hints/README.hints b/hints/README.hints new file mode 100644 index 0000000000..84503ce8ff --- /dev/null +++ b/hints/README.hints @@ -0,0 +1,57 @@ +These files are used by Configure to set things which Configure either +can't or doesn't guess properly. Most of these hints files are from +perl4. They may or may not work with perl5, but they are probably a +good starting point. + +The following hints files have been tested with at least some version +of perl5 and are probably reasonably close to being correct: + +aix.sh +bsd386.sh +dec_osf.sh +dgux.sh +esix4.sh +freebsd.sh +hpux_9.sh +irix_4.sh +irix_5.sh +isc.sh +linux.sh +netbsd.sh +next_3_2.sh +sco_3.sh +solaris_2.sh +sunos_4_1.sh +svr4.sh +titanos.sh +ultrix_4.sh +unicos.sh +utekv.sh + +The following hints files have not been tested with perl5: + +3b1.sh +altos486.sh +apollo.sh +aux.sh +dnix.sh +dynix.sh +fps.sh +genix.sh +greenhills.sh +i386.sh +isc_2.sh +mips.sh +mpc.sh +ncr_tower.sh +opus.sh +sco_2_3_0.sh +sco_2_3_1.sh +sco_2_3_2.sh +sco_2_3_3.sh +sco_2_3_4.sh +stellar.sh +sunos_4_0.sh +ti1500.sh +unisysdynix.sh +uts.sh diff --git a/hints/aix.sh b/hints/aix.sh new file mode 100644 index 0000000000..81d2a0c91f --- /dev/null +++ b/hints/aix.sh @@ -0,0 +1,20 @@ +d_fchmod=undef +d_setrgid='undef' +d_setruid='undef' +alignbytes=8 + +# Changes for dynamic linking by Wayne Scott (wscott@ichips.intel.com) +# +# Tell perl which symbols to export for dynamic linking. +ccdlflags='-bE:perl.exp' + +# The first 3 options would not be needed if dynamic libs. could be linked +# with the compiler instead of ld. +# -bI:$(TOP)/perl.exp Read the exported symbols from the perl binary +# -bE:$(EXT).exp Export these symbols. This file contains only one +# symbol: boot_$(EXP) can it be auto-generated? +lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(TOP)/perl.exp -bE:$(EXT).exp -e _nostart -lc' + +ccflags='-D_ALL_SOURCE' +# Make setsockopt work correctly. See man page. +# ccflags='-D_BSD=44' diff --git a/hints/aix_rs.sh b/hints/aix_rs.sh deleted file mode 100644 index b2bbb9be7e..0000000000 --- a/hints/aix_rs.sh +++ /dev/null @@ -1,10 +0,0 @@ -d_setregid='undef' -d_setreuid='undef' -d_setrgid='undef' -d_setruid='undef' -d_setegid='undef' -d_seteuid='undef' -memalignbytes=8 -ccflags="$ccflags -D_NO_PROTO" -cppstdin='/lib/cpp -D_AIX -D_IBMR2 -U__STR__' -cppminus='' diff --git a/hints/aix_rt.sh b/hints/aix_rt.sh deleted file mode 100644 index 83bb7a13c7..0000000000 --- a/hints/aix_rt.sh +++ /dev/null @@ -1 +0,0 @@ -ccflags="$ccflags -a -DCRIPPLED_CC" diff --git a/hints/apollo_C6_8.sh b/hints/apollo.sh index 06fe7d73eb..dd06084c3f 100644 --- a/hints/apollo_C6_8.sh +++ b/hints/apollo.sh @@ -1,5 +1,5 @@ optimize='' -ccflags='-DDEBUGGING -A cpu,mathchip -W0,-opt,2' +ccflags='-A cpu,mathchip -W0,-opt,2' cat <<'EOF' Some tests may fail unless you use 'chacl -B'. Also, op/stat diff --git a/hints/apollo_C6_7.sh b/hints/apollo_C6_7.sh deleted file mode 100644 index fd9f44e382..0000000000 --- a/hints/apollo_C6_7.sh +++ /dev/null @@ -1,4 +0,0 @@ -optimize='-opt 2' -cflags='-A nansi cpu,mathchip -O -U__STDC__' -echo "Some tests may fail unless you use 'chacl -B'. Also, op/stat" -echo "test 2 may fail because Apollo doesn't support mtime or ctime." diff --git a/hints/aux.sh b/hints/aux.sh index 0f46f3eb36..b64f3fdf28 100644 --- a/hints/aux.sh +++ b/hints/aux.sh @@ -1,2 +1,3 @@ optimize='-O' ccflags="$ccflags -B/usr/lib/big/ -DPARAM_NEEDS_TYPES" +POSIX_cflags='ccflags="$ccflags -ZP -Du_long=U32"' diff --git a/hints/bsd386.sh b/hints/bsd386.sh new file mode 100644 index 0000000000..8303a18990 --- /dev/null +++ b/hints/bsd386.sh @@ -0,0 +1,34 @@ +# hints file for BSD/386 1.x +# Original by Neil Bowers <neilb@khoros.unm.edu> +# Tue Oct 4 12:01:34 EDT 1994 +# +# filename extension for shared libraries +so='o' + +d_voidsig='define' +sig_name='ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2 ' +signal_t='void' + +# we don't want to use -lnm, since exp() is busted in there (in 1.1 anyway) +set `echo X "$libswanted "| sed -e 's/ nm / /'` +shift +libswanted="$*" + +# Avoid telldir prototype conflict in pp_sys.c (BSD/386 uses const DIR *) +pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"' + +# Avoid problems with HUGE_VAL in POSIX in 1.0's cc. +# Use gcc2 (2.5.8) if available in 1.1. +case "$osvers" in +1.0*) + POSIX_cflags='ccflags="$ccflags -UHUGE_VAL"' + ;; +1.1*) + case "$cc" in + '') cc=gcc2 ;; + 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/dec_osf.sh b/hints/dec_osf.sh new file mode 100644 index 0000000000..1f9d71f5c9 --- /dev/null +++ b/hints/dec_osf.sh @@ -0,0 +1,9 @@ +# hints/dec_osf.sh +optimize="-g" +ccflags="$ccflags -DSTANDARD_C -DDEBUGGING" +# Version 1 has problems with -no_archive if only an archive +# lib is available. +case "$osvers" in +1*) lddlflags='-shared -expect_unresolved "*" -s' ;; +*) lddlflags='-shared -no_archive -expect_unresolved "*" -s' ;; +esac diff --git a/hints/dec_osf1.sh b/hints/dec_osf1.sh deleted file mode 100644 index 07f594e3cf..0000000000 --- a/hints/dec_osf1.sh +++ /dev/null @@ -1,11 +0,0 @@ -d_crypt='undef' # The function is there, but it is empty -d_odbm='undef' # We don't need both odbm and ndbm -gidtype='gid_t' -groupstype='int' -libpth="$libpth /usr/shlib" # Use the shared libraries if possible -libc='/usr/shlib/libc.so' # The archive version is /lib/libc.a -case `uname -m` in - mips|alpha) optimize="$optimize -O2 -Olimit 2900" - ccflags="$ccflags -std1 -D_BSD" ;; - *) ccflags="$ccflags -D_BSD" ;; -esac diff --git a/hints/dec_osf_2_0.sh b/hints/dec_osf_2_0.sh deleted file mode 100644 index 207e56540a..0000000000 --- a/hints/dec_osf_2_0.sh +++ /dev/null @@ -1,13 +0,0 @@ -# hints/dec_osf_2_0.sh -d_odbm='undef' # We don't need both odbm and ndbm -gidtype='gid_t' -groupstype='gid_t' -d_voidshmat='define' -clocktype='time_t' -libpth="$libpth /usr/shlib" # Use the shared libraries if possible -libc='/usr/shlib/libc.so' # The archive version is /lib/libc.a -case `uname -m` in - mips|alpha) optimize="$optimize -g" - ccflags="$ccflags -D_BSD -DSTANDARD_C -DDEBUGGING" ;; - *) ccflags="$ccflags -D_BSD -DSTANDARD_C -DDEBUGGING" ;; -esac diff --git a/hints/dgux.sh b/hints/dgux.sh index d0d115417a..733570b02b 100644 --- a/hints/dgux.sh +++ b/hints/dgux.sh @@ -1,7 +1,26 @@ -cppstdin='/lib/cpp' +# +# hints file for Data General DG/UX +# these hints tweaked for perl5 on an AViiON mc88100, running DG/UX 5.4R2.01 +# + gidtype='gid_t' groupstype='gid_t' -libs='-ldgc' +libswanted="dgc $libswanted" uidtype='uid_t' d_index='define' +ccflags='-D_POSIX_SOURCE -D_DGUX_SOURCE' + +# this hasn't been tried with dynamic loading at all +usedl='false' + +# +# an ugly hack, since the Configure test for "gcc -P -" hangs. +# can't just use 'cppstdin', since our DG has a broken cppstdin :-( +# +cppstdin=`cd ..; pwd`/cppstdin +cpprun=`cd ..; pwd`/cppstdin + +# +# you don't want to use /usr/ucb/cc +# cc='gcc' diff --git a/hints/dynix.sh b/hints/dynix.sh index dca74b4381..51eae905a6 100644 --- a/hints/dynix.sh +++ b/hints/dynix.sh @@ -1,2 +1,2 @@ d_castneg=undef -libswanted=`echo $libswanted | sed -e 's/socket /socket seq inet /'` +libswanted=`echo $libswanted | sed -e 's/socket /socket seq /'` diff --git a/hints/esix4.sh b/hints/esix4.sh new file mode 100644 index 0000000000..6d8f266fd7 --- /dev/null +++ b/hints/esix4.sh @@ -0,0 +1,39 @@ +# hints/esix4.sh +# Original esix4 hint file courtesy of +# Kevin O'Gorman ( kevin@kosman.UUCP, kevin%kosman.uucp@nrc.com ) +# +# Use Configure -Dcc=gcc to use gcc. +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' +test -d /usr/local/man || mansrc='none' +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' + grep 'define[ ]*AF_OSI[ ]' /usr/include/sys/socket.h | grep '/\*[^*]*$' >/tmp/esix$$ + if test -s /tmp/esix$$; then + cat <<EOM + +WARNING: You are likely to have problems compiling the Socket extension +unless you fix the unterminated comment for AF_OSI in the file +/usr/include/sys/socket.h. + +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 diff --git a/hints/fps.sh b/hints/fps.sh index 1132e74b9d..7726790ac0 100644 --- a/hints/fps.sh +++ b/hints/fps.sh @@ -1 +1 @@ -ccflags="$ccflags -J -DBADSWITCH" +ccflags="$ccflags -J" diff --git a/hints/freebsd.sh b/hints/freebsd.sh new file mode 100644 index 0000000000..8a46326c6d --- /dev/null +++ b/hints/freebsd.sh @@ -0,0 +1,28 @@ +# Oringal based on info from +# Carl M. Fongheiser <cmf@ins.infonet.net> +# Date: Thu, 28 Jul 1994 19:17:05 -0500 (CDT) +# +# Additional 1.1.5 defines from +# Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net> +# Date: Wed, 28 Sep 1994 00:37:46 +0100 (MET) +# +case "$osvers" in +0.*|1.0*) + usedl="$undef" + ;; +*) d_dlopen="$define" + cccdlflags='-DPIC -fpic' + lddlflags='-Bshareable' + malloctype='void *' + groupstype='int' + d_setregid='undef' + d_setreuid='undef' + d_setrgid='undef' + d_setruid='undef' + i_unistd='undef' + ;; +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/hp9000_300.sh b/hints/hp9000_300.sh deleted file mode 100644 index 956bf08d07..0000000000 --- a/hints/hp9000_300.sh +++ /dev/null @@ -1,2 +0,0 @@ -optimize='+O1' -ccflags="$ccflags -Wc,-Nw500" diff --git a/hints/hp9000_400.sh b/hints/hp9000_400.sh deleted file mode 100644 index 956bf08d07..0000000000 --- a/hints/hp9000_400.sh +++ /dev/null @@ -1,2 +0,0 @@ -optimize='+O1' -ccflags="$ccflags -Wc,-Nw500" diff --git a/hints/hp9000_700.sh b/hints/hp9000_700.sh deleted file mode 100644 index eee8a4e1a6..0000000000 --- a/hints/hp9000_700.sh +++ /dev/null @@ -1,5 +0,0 @@ -libswanted='ndbm m' -ccflags="$ccflags -Aa -D_POSIX_SOURCE -D_HPUX_SOURCE -DJMPCLOBBER" -optimize='+O1' -d_mymalloc=define -memalignbytes=8 diff --git a/hints/hp9000_800.sh b/hints/hp9000_800.sh deleted file mode 100644 index e1ab9d77f8..0000000000 --- a/hints/hp9000_800.sh +++ /dev/null @@ -1,3 +0,0 @@ -libswanted=`echo $libswanted | sed -e 's/malloc //' -e 's/BSD //` -eval_cflags='optimize=+O1' -teval_cflags=$eval_cflags diff --git a/hints/hpux.sh b/hints/hpux.sh deleted file mode 100644 index 904f9dee60..0000000000 --- a/hints/hpux.sh +++ /dev/null @@ -1,8 +0,0 @@ -echo " " -echo "NOTE: regression test op.read may fail due to an NFS bug in HP/UX." -echo "If so, don't worry about it." -case `(uname -r) 2>/dev/null` in -*3.1*) d_syscall=$undef ;; -*2.1*) libswanted=`echo $libswanted | sed 's/ malloc / /'` ;; -esac -d_index=define diff --git a/hints/hpux_9.sh b/hints/hpux_9.sh new file mode 100644 index 0000000000..8d2556a2b2 --- /dev/null +++ b/hints/hpux_9.sh @@ -0,0 +1,9 @@ +libswanted='ndbm m dld' +ccflags="$ccflags -Aa -D_POSIX_SOURCE -D_HPUX_SOURCE" +# ldflags="-Wl,-E -Wl,-a,shared" # Force all shared? +ldflags="-Wl,-E" +optimize='+O1' +usemymalloc='y' +alignbytes=8 +selecttype='int *' +POSIX_cflags='ccflags="$ccflags -DFLT_MIN=1.17549435E-38"' diff --git a/hints/irix_4.sh b/hints/irix_4.sh new file mode 100644 index 0000000000..57a9031e5c --- /dev/null +++ b/hints/irix_4.sh @@ -0,0 +1,6 @@ +optimize='-O1' +usemymalloc='y' +d_voidsig=define +usevfork=false +d_charsprf=undef +ccflags="-ansiposix -signed" diff --git a/hints/irix_5.sh b/hints/irix_5.sh new file mode 100644 index 0000000000..dcbcfba5d9 --- /dev/null +++ b/hints/irix_5.sh @@ -0,0 +1,10 @@ +# irix_5.sh +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/isc.sh b/hints/isc.sh new file mode 100644 index 0000000000..7c18380f54 --- /dev/null +++ b/hints/isc.sh @@ -0,0 +1,21 @@ +# isc.sh +# Interactive Unix Versions 3 and 4. +# Compile perl entirely in posix mode. +# Andy Dougherty doughera@lafcol.lafayette.edu +# Wed Oct 5 15:57:37 EDT 1994 +# +# Use Configure -Dcc=gcc to use gcc +# +set `echo X "$libswanted "| sed -e 's/ c / /'` +shift +libswanted="$*" +case "$cc" in +*gcc*) ccflags="$ccflags -posix" + ldflags="$ldflags -posix" + ;; +*) ccflags="$ccflags -Xp -D_POSIX_SOURCE" + ldflags="$ldflags -Xp" + ;; +esac +# Pick up dbm.h in <rpcsvc/dbm.h> +ccflags="$ccflags -I/usr/include/rpcsvc" diff --git a/hints/isc_2.sh b/hints/isc_2.sh new file mode 100644 index 0000000000..95b61ba773 --- /dev/null +++ b/hints/isc_2.sh @@ -0,0 +1,24 @@ +# isc_2.sh +# Interactive Unix Version 2.2 +# Compile perl entirely in posix mode. +# Andy Dougherty doughera@lafcol.lafayette.edu +# Wed Oct 5 15:57:37 EDT 1994 +# +# Use Configure -Dcc=gcc to use gcc +# +set `echo X "$libswanted "| sed -e 's/ c / /'` +shift +libswanted="$*" +case "$cc" in +*gcc*) ccflags="$ccflags -posix" + ldflags="$ldflags -posix" + ;; +*) ccflags="$ccflags -Xp -D_POSIX_SOURCE" + ldflags="$ldflags -Xp" + ;; +esac +# Pick up dbm.h in <rpcsvc/dbm.h> +ccflags="$ccflags -I/usr/include/rpcsvc" +# Compensate for conflicts in <net/errno.h> +doio_cflags='ccflags="$ccflags -DENOTSOCK=103"' +pp_sys_cflags='ccflags="$ccflags -DENOTSOCK=103"' diff --git a/hints/isc_3_2_2.sh b/hints/isc_3_2_2.sh deleted file mode 100644 index 0736d3d303..0000000000 --- a/hints/isc_3_2_2.sh +++ /dev/null @@ -1,7 +0,0 @@ -set `echo $libswanted | sed -e 's/ x / /' -e 's/ PW / /'` -libswanted="$*" -doio_cflags='ccflags="$ccflags -DENOTSOCK=103"' -tdoio_cflags='ccflags="$ccflags -DENOTSOCK=103"' -echo "<net/errno.h> defines error numbers for network calls, but" -echo "the definitions for ENAMETOOLONG and ENOTEMPTY conflict with" -echo "those in <sys/errno.h>. Instead just define ENOTSOCK here." diff --git a/hints/isc_3_2_3.sh b/hints/isc_3_2_3.sh deleted file mode 100644 index 5b99353d1c..0000000000 --- a/hints/isc_3_2_3.sh +++ /dev/null @@ -1,3 +0,0 @@ -set `echo "$libswanted" | sed -e 's/ PW / /' -e 's/ x / /'` -libswanted="$*" -ccflags="$ccflags -DCRIPPLED_CC -DDEBUGGING" diff --git a/hints/linux.sh b/hints/linux.sh new file mode 100644 index 0000000000..7617a886b9 --- /dev/null +++ b/hints/linux.sh @@ -0,0 +1,32 @@ +# Configuration time: Mon May 16 03:41:24 EDT 1994 +# Original version by rsanders +# Additional dlext support by Kenneth Albanowski <kjahds@kjahds.com> +# Target system: linux hrothgar 1.1.12 #9 sat may 14 02:03:23 edt 1994 i486 +bin='/usr/bin' +ccflags='-I/usr/include/bsd' +cppflags=' -I/usr/include/bsd' +d_dosuid='define' +d_voidsig='define' +gidtype='gid_t' +groupstype='gid_t' +malloctype='void *' +nm_opt='' +optimize='-O2' +sig_name='ZERO HUP INT QUIT ILL TRAP IOT UNUSED FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH' +signal_t='void' +uidtype='uid_t' +usemymalloc='n' +yacc='bison -y' +lddlflags='-r' +so='sa' +dlext='o' +## If you are using DLD 3.2.4 which does not support shared libs, +## uncomment the next two lines: +#ldflags="-static" +#so='none' + +cat <<EOM + +You should take a look at hints/linux.sh. There are a couple of lines you +may wish to change near the bottom. +EOM diff --git a/hints/mc6000.sh b/hints/mc6000.sh deleted file mode 100644 index 78c87c8144..0000000000 --- a/hints/mc6000.sh +++ /dev/null @@ -1,5 +0,0 @@ -# defaults for the masscomp (concurrent) 6000 series running RTU 5.0 -cppstdin=/lib/cpp -cmd_cflags='optimize=""' -tcmd_cflags='optimize=""' -d_mymalloc=define diff --git a/hints/mips.sh b/hints/mips.sh index ddb2694658..39cadb4b66 100644 --- a/hints/mips.sh +++ b/hints/mips.sh @@ -1,13 +1,10 @@ -cmd_cflags='optimize="-g"' perl_cflags='optimize="-g"' -tcmd_cflags='optimize="-g"' -tperl_cflags='optimize="-g"' d_volatile=undef d_castneg=undef cc=cc libpth="/usr/lib/cmplrs/cc $libpth" groupstype=int -nm_opts='-B' +nm_opt='-B' case $PATH in *bsd*:/bin:*) cat <<END NOTE: Some people have reported having much better luck with Mips CC than diff --git a/hints/ncr_tower.sh b/hints/ncr_tower.sh index aa517d7964..799ee9375c 100644 --- a/hints/ncr_tower.sh +++ b/hints/ncr_tower.sh @@ -1,8 +1,4 @@ optimize='-O0' ccflags="$ccflags -W2,-Sl,2000" -eval_cflags='large="-W0,-XL"' -teval_cflags=$eval_cflags d_mkdir=$undef usemymalloc='y' -mallocsrc='malloc.c' -mallocobj='malloc.o' diff --git a/hints/netbsd.sh b/hints/netbsd.sh new file mode 100644 index 0000000000..f5f5a74f93 --- /dev/null +++ b/hints/netbsd.sh @@ -0,0 +1,10 @@ +# hints/netbsd.sh +case "$osvers" in +0.9|0.8) + usedl="$undef" + ;; +*) d_dlopen="$define" + cccdlflags='-DPIC -fpic' + lddlflags='-Bforcearchive -Bshareable' + ;; +esac diff --git a/hints/next.sh b/hints/next.sh deleted file mode 100644 index 8a1fe390bd..0000000000 --- a/hints/next.sh +++ /dev/null @@ -1,5 +0,0 @@ -: Just disable defaulting to -fpcc-struct-return, since gcc is native compiler. -nativegcc='define' -groupstype="int" -usemymalloc="n" -libswanted='dbm sys_s' diff --git a/hints/next_3_2.sh b/hints/next_3_2.sh index a77e2ae217..1f86526626 100644 --- a/hints/next_3_2.sh +++ b/hints/next_3_2.sh @@ -1,8 +1,16 @@ -hintfile='next_3_2' -ccflags='-posix -Disascii=NXIsAscii -DDEBUGGING -DHIDEMYMALLOC' +ccflags='-D_POSIX_SOURCE -DUSE_NEXT_CTYPE' ldflags='-u libsys_s' -i_dirent='undef' -groupstype='int' -libs='-ldbm' -optimize='-O' +libswanted='dbm gdbm db' lddlflags='-r' +i_utime='undef' +groupstype='int' +direntrytype='struct direct' +d_strcoll='undef' +# the simple program `for ($i=1;$i<38771;$i++){$t{$i}=123}' fails +# with Larry's malloc on NS 3.2 due to broken sbrk() +usemymalloc='n' +d_uname='define' +d_setpgid='define' +d_setsid='define' +d_tcgetpgrp='define' +d_tcsetpgrp='define' diff --git a/hints/osf1.sh b/hints/osf1.sh deleted file mode 100644 index e9be84917a..0000000000 --- a/hints/osf1.sh +++ /dev/null @@ -1,25 +0,0 @@ -ccflags="$ccflags -Olimit 2900" -libswanted=m -tmp=`(uname -a) 2>/dev/null` -case "$tmp" in -OSF1*) - case "$tmp" in - *mips) - d_volatile=define - ;; - *) - cat <<EOFM -You are not supposed to know about that machine... -EOFM - ;; - esac - ;; -esac -#eval_cflags='optimize="-g"' -#teval_cflags='optimize="-g"' -#toke_cflags='optimize="-g"' -#ttoke_cflags='optimize="-g"' -regcomp_cflags='optimize="-g -O0"' -tregcomp_cflags='optimize="-g -O0"' -regexec_cflags='optimize="-g -O0"' -tregexec_cflags='optimize="-g -O0"' diff --git a/hints/sco_2_3_2.sh b/hints/sco_2_3_2.sh index 54540e4aa0..e113a4ec65 100644 --- a/hints/sco_2_3_2.sh +++ b/hints/sco_2_3_2.sh @@ -1,2 +1,2 @@ yacc='/usr/bin/yacc -Sm25000' -libswanted=`echo $libswanted | sed 's/ x / /'` +libswanted=`echo " $libswanted "| sed 's/ x / /'` diff --git a/hints/sco_2_3_4.sh b/hints/sco_2_3_4.sh index 3a1b13c1b6..84f58172b3 100644 --- a/hints/sco_2_3_4.sh +++ b/hints/sco_2_3_4.sh @@ -1,5 +1,5 @@ yacc='/usr/bin/yacc -Sm25000' ccflags="$ccflags -UM_I86" -d_mymalloc=define +usemymalloc='y' echo "NOTE: you may have problems due to a spurious semicolon on the strerror()" echo "macro definition in /usr/include/string.h. If so, delete the semicolon." diff --git a/hints/sco_3.sh b/hints/sco_3.sh index 1bb8fb11a9..a89ffbec6a 100644 --- a/hints/sco_3.sh +++ b/hints/sco_3.sh @@ -1,7 +1,30 @@ -yacc='/usr/bin/yacc -Sm11000' -libswanted=`echo $libswanted | sed 's/ x / /'` -ccflags="$ccflags -U M_XENIX" -cppstdin='/lib/cpp -Di386 -DM_I386 -Dunix -DM_UNIX -DM_INTERNAT -DLAI_TCP' -cppminus='' +# sco_3.sh +# Courtesy of Joel Rosi-Schwartz <joel@ftechne.co.uk> +# To use gcc, do Configure -Dcc=gcc +# +# Try to use libintl.a since it has strcoll and strxfrm +libswanted="intl $libswanted" +# Try to use libdbm.nfs.a since it has dbmclose. +# +if test -f /usr/lib/libdbm.nfs.a ; then + libswanted=`echo "dbm.nfs $libswanted " | sed -e 's/ dbm / /'` +fi +set X $libswanted +shift +libswanted="$*" +# +# We don't want Xenix cross-development libraries +glibpth=`echo $glibpth | sed -e 's! /usr/lib/386 ! !' -e 's! /lib/386 ! !'` +xlibpth='' +# +case "$cc" in +gcc) + ccflags="$ccflags -U M_XENIX" + optimize="$optimize -O2" + ;; +*) + ccflags="$ccflags -W0 -U M_XENIX" + ;; +esac i_varargs=undef -d_rename='undef' +nm_opt='-p' diff --git a/hints/sgi.sh b/hints/sgi.sh deleted file mode 100644 index 4252aaf148..0000000000 --- a/hints/sgi.sh +++ /dev/null @@ -1,12 +0,0 @@ -optimize='-O1' -d_mymalloc=define -mallocsrc='malloc.c' -mallocobj='malloc.o' -d_voidsig=define -d_vfork=undef -d_charsprf=undef -case `(uname -r) 2>/dev/null` in -4*)libswanted=`echo $libswanted | sed 's/c_s \(.*\)/\1 c_s/'` - ccflags="$ccflags -DLANGUAGE_C -DBSD_SIGNALS -cckr -signed" - ;; -esac diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh new file mode 100644 index 0000000000..081213aa96 --- /dev/null +++ b/hints/solaris_2.sh @@ -0,0 +1,33 @@ +usevfork=false +d_suidsafe=define +ccflags="$ccflags" +set `echo $glibpth | sed -e 's@/usr/ucblib@@'` +glibpth="$*" +set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ ucb @ @'` +libswanted="$*" + +# Look for architecture name. We want to suggest a useful default +# for archlib and also warn about possible -x486 flags needed. +case "$archname" in +'') + if test -f /usr/bin/arch; then + archname=`/usr/bin/arch` + archname="${archname}-${osname}" + elif test -f /usr/ucb/arch; then + archname=`/usr/ucb/arch` + archname="${archname}-${osname}" + fi + ;; +esac +case "$archname" in +*86*) echo "For an Intel platform you might need to add -x486 to ccflags" >&4;; +*) ;; +esac + +case $PATH in +*/usr/ucb*:/usr/bin:*) cat <<END +NOTE: Some people have reported problems with /usr/ucb/cc. +Remove /usr/ucb from your PATH if you have difficulties. +END +;; +esac diff --git a/hints/solaris_2_0.sh b/hints/solaris_2_0.sh deleted file mode 100644 index 8eae5de276..0000000000 --- a/hints/solaris_2_0.sh +++ /dev/null @@ -1 +0,0 @@ -d_vfork='undef' diff --git a/hints/solaris_2_1.sh b/hints/solaris_2_1.sh deleted file mode 100644 index de405bc24d..0000000000 --- a/hints/solaris_2_1.sh +++ /dev/null @@ -1,4 +0,0 @@ -d_vfork='undef' -d_wait4='undef' -i_dirent='undef' -i_sys_dir='define' diff --git a/hints/solaris_2_2.sh b/hints/solaris_2_2.sh deleted file mode 100644 index 01b9d93342..0000000000 --- a/hints/solaris_2_2.sh +++ /dev/null @@ -1,10 +0,0 @@ -d_vfork='undef' -set `echo $libpth | sed -e 's@/usr/ucblib@@'` -libpth="$*" -case $PATH in -*/usr/ucb*:/usr/bin:*) cat <<END -NOTE: Some people have reported problems with /usr/ucb/cc. -Remove /usr/ucb from your PATH if you have difficulties. -END -;; -esac diff --git a/hints/solaris_2_3.sh b/hints/solaris_2_3.sh deleted file mode 100644 index 01b9d93342..0000000000 --- a/hints/solaris_2_3.sh +++ /dev/null @@ -1,10 +0,0 @@ -d_vfork='undef' -set `echo $libpth | sed -e 's@/usr/ucblib@@'` -libpth="$*" -case $PATH in -*/usr/ucb*:/usr/bin:*) cat <<END -NOTE: Some people have reported problems with /usr/ucb/cc. -Remove /usr/ucb from your PATH if you have difficulties. -END -;; -esac diff --git a/hints/sunos_3_4.sh b/hints/sunos_3_4.sh deleted file mode 100644 index 49b14af1bc..0000000000 --- a/hints/sunos_3_4.sh +++ /dev/null @@ -1,3 +0,0 @@ -usemymalloc=n -mallocsrc='' -mallocobj='' diff --git a/hints/sunos_3_5.sh b/hints/sunos_3_5.sh deleted file mode 100644 index 49b14af1bc..0000000000 --- a/hints/sunos_3_5.sh +++ /dev/null @@ -1,3 +0,0 @@ -usemymalloc=n -mallocsrc='' -mallocobj='' diff --git a/hints/sunos_4_0_1.sh b/hints/sunos_4_0.sh index 99fce3f44b..99fce3f44b 100644 --- a/hints/sunos_4_0_1.sh +++ b/hints/sunos_4_0.sh diff --git a/hints/sunos_4_0_2.sh b/hints/sunos_4_0_2.sh deleted file mode 100644 index 99fce3f44b..0000000000 --- a/hints/sunos_4_0_2.sh +++ /dev/null @@ -1 +0,0 @@ -ccflags="$ccflags -DFPUTS_BOTCH" diff --git a/hints/sunos_4_1.sh b/hints/sunos_4_1.sh new file mode 100644 index 0000000000..070a8e0544 --- /dev/null +++ b/hints/sunos_4_1.sh @@ -0,0 +1,15 @@ +case "$cc" in +*gcc*) usevfork=false ;; +*) usevfork=true ;; +esac +d_tzname='undef' +# check if user is in a bsd or system 5 type environment +if cat -b /dev/null 2>/dev/null +then # bsd + groupstype='int' +else # sys5 + groupstype='gid_t' +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/sunos_4_1_2.sh b/hints/sunos_4_1_2.sh deleted file mode 100644 index 9439388774..0000000000 --- a/hints/sunos_4_1_2.sh +++ /dev/null @@ -1 +0,0 @@ -groupstype='int' diff --git a/hints/sunos_4_1_3.sh b/hints/sunos_4_1_3.sh deleted file mode 100644 index 9439388774..0000000000 --- a/hints/sunos_4_1_3.sh +++ /dev/null @@ -1 +0,0 @@ -groupstype='int' diff --git a/hints/svr4.sh b/hints/svr4.sh index eae477e807..c707eb8ccd 100644 --- a/hints/svr4.sh +++ b/hints/svr4.sh @@ -1,6 +1,33 @@ -cc='/bin/cc' -test -f $cc || cc='/usr/ccs/bin/cc' -ldflags='-L/usr/ucblib' -mansrc='/usr/share/man/man1' +# svr4 hints, System V Release 4.x +# 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' +# We include support for using libraries in /usr/ucblib, but the setting +# of libswanted excludes some libraries found there. You may want to +# prevent "ucb" from being removed from libswanted and see if perl will +# build on your system. +ldflags='-L/usr/ccs/lib -L/usr/ucblib' ccflags='-I/usr/include -I/usr/ucbinclude' -libswanted=`echo $libswanted | sed 's/ ucb/ c ucb/'` +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 +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 diff --git a/hints/ti1500.sh b/hints/ti1500.sh index 3d89250b25..69482d8680 100644 --- a/hints/ti1500.sh +++ b/hints/ti1500.sh @@ -1 +1 @@ -d_mymalloc='undef' +usemymalloc='n' diff --git a/hints/titan.sh b/hints/titan.sh deleted file mode 100644 index 1801e82518..0000000000 --- a/hints/titan.sh +++ /dev/null @@ -1,40 +0,0 @@ -# Hints file (perl 4.019) for Kubota Pacific's Titan 3000 Series Machines. -# Created by: JT McDuffie (jt@kpc.com) 26 DEC 1991 -bin='/usr/local/bin' -installbin='/usr/local/bin' -memalignbytes="8" -byteorder="4321" -cppstdin='/lib/cpp' -cppminus='' -castflags='0' -gid_type='ushort' -groupstype='unsigned short' -intsize='4' -libc='/lib/libc.a' -nm_opts='-eh' -mallocptrtype='void' -mansrc='/usr/man/man1' -installmansrc='/usr/man/man1' -manext='1' -models='none' -optimize='-O' -ccflags="$ccflags -I/usr/include/net -DDEBUGGING" -cppflags="$cppflags -I/usr/include/net -DDEBUGGING" -cc='cc' -libs='-lnsl -ldbm -lPW -lmalloc -lm' -libswanted='net socket nsl nm ndir ndbm dbm PW malloc m x posix ' -scriptdir='/usr/local/bin' -installscr='/usr/local/bin' -stdchar='unsigned char' -uidtype='ushort' -usrinclude='/usr/include' -voidhave='7' -w_localtim='1' -w_s_timevl='1' -w_s_tm='1' -privlib='/usr/local/lib/perl' -installprivlib='/usr/local/lib/perl' -inclwanted='/usr/include /usr/include/net ' -libpth=' /usr/lib /usr/local/lib /lib' -eoPATH='/bin /usr/bin /usr/ucb /usr/local /usr/local/bin /usr/lbin /etc /usr/lib /lib /usr/local/lib ' -pth=' . /bin /usr/bin /usr/ucb /usr/local/bin /usr/X11/bin /usr/lbin /etc /usr/lib /lib /usr/local/lib ' diff --git a/hints/titanos.sh b/hints/titanos.sh new file mode 100644 index 0000000000..b327037c8e --- /dev/null +++ b/hints/titanos.sh @@ -0,0 +1,24 @@ +# Hints file (perl 4.019) for Kubota Pacific's Titan 3000 Series Machines. +# Created by: JT McDuffie (jt@kpc.com) 26 DEC 1991 +# p5ed by: Jarkko Hietaniemi <jhi@hut.fi> Aug 27 1994 +# NOTE: You should run Configure with tcsh (yes, tcsh). +alignbytes="8" +byteorder="4321" +castflags='0' +gidtype='ushort' +groupstype='unsigned short' +intsize='4' +usenm='true' +nm_opt='-eh' +malloctype='void *' +models='none' +ccflags="$ccflags -I/usr/include/net -DDEBUGGING -DSTANDARD_C" +cppflags="$cppflags -I/usr/include/net -DDEBUGGING -DSTANDARD_C" +libs='-lnsl -ldbm -lPW -lmalloc -lm' +stdchar='unsigned char' +static_ext='DynaLoader NDBM_File Socket' +uidtype='ushort' +voidflags='7' +inclwanted='/usr/include /usr/include/net' +libpth='/usr/lib /usr/local/lib /lib' +pth='. /bin /usr/bin /usr/ucb /usr/local/bin /usr/X11/bin /usr/lbin /etc /usr/lib' diff --git a/hints/ultrix_1.sh b/hints/ultrix_1.sh deleted file mode 100644 index 7569e48d57..0000000000 --- a/hints/ultrix_1.sh +++ /dev/null @@ -1 +0,0 @@ -ccflags="$ccflags -DULTRIX_STDIO_BOTCH" diff --git a/hints/ultrix_3.sh b/hints/ultrix_3.sh deleted file mode 100644 index 0df47231f6..0000000000 --- a/hints/ultrix_3.sh +++ /dev/null @@ -1,14 +0,0 @@ -ccflags="$ccflags -DLANGUAGE_C" -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 633e904b72..c7a8c2cfa0 100644 --- a/hints/ultrix_4.sh +++ b/hints/ultrix_4.sh @@ -1,4 +1,4 @@ -ccflags="$ccflags -DLANGUAGE_C -Olimit 2900" +optimize=-g tmp=`(uname -a) 2>/dev/null` case "$tmp" in *RISC*) cat <<EOF @@ -12,12 +12,13 @@ EOF ;; esac case "$tmp" in -*4.1*) - eval_cflags='optimize="-g"' - teval_cflags='optimize="-g"' - toke_cflags='optimize="-g"' - ttoke_cflags='optimize="-g"' - ;; -*4.2*) libswanted=`echo $libswanted | sed 's/ malloc / /'` ;; +*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" + ranlib='ranlib' + ;; esac - +groupstype='int' diff --git a/hints/cray.sh b/hints/unicos.sh index 2ce956695e..d23cbe3f5e 100644 --- a/hints/cray.sh +++ b/hints/unicos.sh @@ -1,8 +1,8 @@ case `uname -r` in 6.1*) shellflags="-m+65536" ;; esac -ccflags="$ccflags -DUNICOS -h nomessage=118:151:172" -usemymalloc='n' -libswanted='malloc m' +ccflags="$ccflags -DHZ=__hertz" +optimize="-O1" +libswanted=m d_setregid='undef' d_setreuid='undef' diff --git a/hints/utekv.sh b/hints/utekv.sh index 6b2382c0ef..0d30fd66ab 100644 --- a/hints/utekv.sh +++ b/hints/utekv.sh @@ -1,17 +1,14 @@ # XD88/10 UTekV hints by Kaveh Ghazi (ghazi@caip.rutgers.edu) 2/11/92 +# Modified by Andy Dougherty <doughera@lafcol.lafayette.edu> 4 Oct. 1994 -# The -DUTekV is needed because the greenhills compiler does not have any -# UTekV specific definitions and we need one in perl.h -ccflags="$ccflags -X18 -DJMPCLOBBER -DUTekV" +# The -X18 is only if you are using the Greenhills compiler. +ccflags="$ccflags -X18" usemymalloc='y' # /usr/include/rpcsvc is for finding dbm.h inclwanted="$inclwanted /usr/include/rpcsvc" -# dont use the wrapper, use the real thing. -cppstdin=/lib/cpp - echo " " echo "NOTE: You may have to take out makefile dependencies on the files in" echo "/usr/include (i.e. /usr/include/ctype.h) or the make will fail. A" diff --git a/hints/vax.sh b/hints/vax.sh deleted file mode 100644 index ea8f224396..0000000000 --- a/hints/vax.sh +++ /dev/null @@ -1 +0,0 @@ -teval_cflags='case $cc in *gcc);; *) optimize="-O";; esac' |