diff options
Diffstat (limited to 'hints')
-rw-r--r-- | hints/aix.sh | 42 | ||||
-rw-r--r-- | hints/hpux_9.sh | 9 | ||||
-rw-r--r-- | hints/irix_4.sh | 12 | ||||
-rw-r--r-- | hints/linux.sh | 56 | ||||
-rw-r--r-- | hints/mpeix.sh | 68 | ||||
-rw-r--r-- | hints/solaris_2.sh | 1 | ||||
-rw-r--r-- | hints/svr4.sh | 24 |
7 files changed, 181 insertions, 31 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index b8c05e0d65..1e8b3124c4 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -1,9 +1,42 @@ -d_fchmod=undef +# hints/aix.sh +# AIX 3.x.x hints thanks to Wayne Scott <wscott@ichips.intel.com> +# AIX 4.1 hints thanks to Christopher Chan-Nui <channui@austin.ibm.com>. +# Merged on Mon Feb 6 10:22:35 EST 1995 by +# Andy Dougherty <doughera@lafcol.lafayette.edu> + + +# Configure finds setrgid and setruid, but they're useless. The man +# pages state: +# setrgid: The EPERM error code is always returned. +# setruid: The EPERM error code is always returned. Processes cannot +# reset only their real user IDs. d_setrgid='undef' d_setruid='undef' + alignbytes=8 -# Changes for dynamic linking by Wayne Scott (wscott@ichips.intel.com) +# Make setsockopt work correctly. See man page. +# ccflags='-D_BSD=44' + +# uname -m output is too specific and not appropriate here +case "$archname" in +'') archname="$osname" ;; +esac + +case "$osvers" in +3*) d_fchmod=undef + ccflags='-D_ALL_SOURCE' + ;; +*) # These hints at least work for 4.x, possibly other systems too. + d_setregid='undef' + d_setreuid='undef' + ccflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE' + nm_opt='-B' + scope_cflags='optimize=" "' + ;; +esac + +# Changes for dynamic linking by Wayne Scott <wscott@ichips.intel.com> # # Tell perl which symbols to export for dynamic linking. ccdlflags='-bE:perl.exp' @@ -15,6 +48,5 @@ ccdlflags='-bE:perl.exp' # symbol: boot_$(EXP) can it be auto-generated? lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc' -ccflags='-D_ALL_SOURCE' -# Make setsockopt work correctly. See man page. -# ccflags='-D_BSD=44' +# The '-e _nostart' might not be needed on AIX 4.1, but appears to be +# harmless. diff --git a/hints/hpux_9.sh b/hints/hpux_9.sh index 98ff92f228..8e326e28a1 100644 --- a/hints/hpux_9.sh +++ b/hints/hpux_9.sh @@ -13,10 +13,17 @@ case "$cc" in optimize='+O1' ;; esac -libswanted='ndbm m dld' +libswanted='m dld' # ldflags="-Wl,-E -Wl,-a,shared" # Force all shared? ldflags="-Wl,-E" usemymalloc='y' alignbytes=8 selecttype='int *' POSIX_cflags='ccflags="$ccflags -DFLT_MIN=1.17549435E-38"' + +case "$prefix" in +'') prefix='/opt/perl5' ;; +esac +case "$archname" in +'') archname='hpux' ;; +esac diff --git a/hints/irix_4.sh b/hints/irix_4.sh index 57a9031e5c..9dc1fee44e 100644 --- a/hints/irix_4.sh +++ b/hints/irix_4.sh @@ -4,3 +4,15 @@ d_voidsig=define usevfork=false d_charsprf=undef ccflags="-ansiposix -signed" +# +# This hint due thanks Hershel Walters <walters@smd4d.wes.army.mil> +# Date: Tue, 31 Jan 1995 16:32:53 -0600 (CST) +# Subject: IRIX4.0.4(.5? 5.0?) problems +# I don't know if they affect versions of perl other than 5.000 or +# versions of IRIX other than 4.0.4. +# +cat <<'EOM' +If you have problems, you might have try including + -DSTANDARD_C -cckr +in ccflags. +EOM diff --git a/hints/linux.sh b/hints/linux.sh index 7617a886b9..bd2fd6742d 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -1,32 +1,58 @@ -# Configuration time: Mon May 16 03:41:24 EDT 1994 +# hints/linux.sh # 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 +# +# First pass at ELF support by Andy Dougherty <doughera@lafcol.lafayette.edu> +# Fri Feb 3 14:05:00 EST 1995 +# Use sh Configure -Dcc=gcc-elf to try using gcc-elf. It might work. +# +# I don't understand several things in here. Clarifications are welcome. + +# Why is this needed? bin='/usr/bin' + ccflags='-I/usr/include/bsd' cppflags=' -I/usr/include/bsd' d_dosuid='define' -d_voidsig='define' + +# Why are these needed? gidtype='gid_t' groupstype='gid_t' +uidtype='uid_t' + malloctype='void *' +usemymalloc='n' + +case "$optimize" in +'') optimize='-O2' ;; +esac + +# Why is this needed? 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' + +case "$cc" in +*cc-elf*) + so='so' + dlext='so' + # Configure might not understand nm output for ELF. + usenm=false + ;; +*) + 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' + ;; +esac cat <<EOM -You should take a look at hints/linux.sh. There are a couple of lines you +You should take a look at hints/linux.sh. There are a some lines you may wish to change near the bottom. EOM diff --git a/hints/mpeix.sh b/hints/mpeix.sh new file mode 100644 index 0000000000..6c548284af --- /dev/null +++ b/hints/mpeix.sh @@ -0,0 +1,68 @@ +osname='mpeix' +osvers='5.0' +alignbytes='8' +ccflags='-D_POSIX_SOURCE -D_SOCKET_SOURCE -D_POSIX_JOB_CONTROL' +cc='c89' +optimize='-g' +d_safebcpy='undef' +d_safemcpy='undef' +intsize='8' +usemymalloc='y' +d_casti32='undef' +d_castneg='undef' +prefix='/PERL' +privlib='/PERL/PERL/lib' +archlib='/PERL/PERL/lib/mpeix' +clocktype='clock_t' +gidtype='gid_t' +groupstype='gid_t' +lseektype='off_t' +modetype='mode_t' +randbits='15' +ssizetype='ssize_t' +uidtype='uid_t' +d_stdstdio='undef' +i_pwd='undef' +i_grp='undef' +#d_fd_set='undef' +#d_fds_bits='undef' +d_chroot='undef' +d_fchmod='undef' +d_fchown='undef' +d_flock='undef' +d_Gconvert='sprintf((b),"%.*g",(n),(x))' +d_getpgrp2='undef' +d_getprior='undef' +d_killpg='undef' +d_lstat='undef' +d_seekdir='undef' +d_telldir='undef' +d_setpgrp2='undef' +d_setprior='undef' +d_setresgid='undef' +d_setresuid='undef' +d_setrgid='undef' +d_setruid='undef' +d_syscall='undef' +d_truncate='undef' +d_setregid='undef' +d_setreuid='undef' +d_setpgrp='undef' +d_chsize='undef' +d_group='undef' +d_bcmp='undef' +d_bcopy='undef' +d_bzero='undef' +d_attrib='undef' +d_dirnamlen='define' +d_link='undef' +d_passwd='undef' +d_pwcomment='undef' +d_statblks='undef' +libs='-lsvipc -lsocket -lm -lc' +ranlib='/bin/true' +d_nice='undef' +d_cuserid='undef' +i_termios='undef' +d_tcgetpgrp='undef' +d_tcsetpgrp='undef' diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 081213aa96..4ae9063c3b 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -1,6 +1,5 @@ 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 @ @'` diff --git a/hints/svr4.sh b/hints/svr4.sh index f8536a15cb..f4664d9366 100644 --- a/hints/svr4.sh +++ b/hints/svr4.sh @@ -1,26 +1,32 @@ # svr4 hints, System V Release 4.x -# Last modified 1994/12/03 by Tye McQueen, tye@metronet.com +# Last modified 1995/01/28 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' ;; 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 | 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? -d_index='undef' # Even if libucb.a used, use strchr() not index(). -d_suidsafe=define # "./Configure -d" can't figure this out easilly +# Don't use problematic libraries: +libswanted=`echo " $libswanted " | sed -e 's/ malloc / /'` # -e 's/ ucb / /'` +# libmalloc.a - Probably using Perl's malloc() anyway. +# libucb.a - Remove it if you have problems ld'ing. We include it because +# it is needed for ODBM_File and NDBM_File extensions. +if [ -r /usr/ucblib/libucb.a ]; then # If using BSD-compat. library: + d_gconvert='undef' # Unusuable under UnixWare 1.1 [use gcvt() instead] + # Use the "native" counterparts, not the BSD emulation stuff: + d_bcmp='undef' d_bcopy='undef' d_bzero='undef' d_safebcpy='undef' + d_index='undef' d_killpg='undef' d_getprior='undef' d_setprior='undef' + d_setlinebuf='undef' d_setregid='undef' d_setreuid='undef' +fi +d_suidsafe='define' # "./Configure -d" can't figure this out easilly usevfork='false' -cat <<'EOM' +cat <<'EOM' >&4 If you wish to use dynamic linking, you must use LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH |