diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-16 00:10:25 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-16 00:10:25 +0000 |
commit | 95844e6ca149c986bbccd3b8c20759baaf024a41 (patch) | |
tree | 5cafd2a5be84ecfc2b535566c926672b833e8bc2 | |
parent | bf6c18a67788ecf9349406ba580392adaec98958 (diff) | |
parent | d4935d7f25ace6b599fe75f422b41624ca6bf4a6 (diff) | |
download | perl-95844e6ca149c986bbccd3b8c20759baaf024a41.tar.gz |
integrate cfgperl changes into mainline
p4raw-id: //depot/perl@5116
-rwxr-xr-x | Configure | 104 | ||||
-rw-r--r-- | Makefile.SH | 11 | ||||
-rw-r--r-- | Porting/Glossary | 4 | ||||
-rw-r--r-- | Porting/config.sh | 45 | ||||
-rw-r--r-- | Porting/config_H | 30 | ||||
-rw-r--r-- | config_h.SH | 6 | ||||
-rw-r--r-- | ext/Sys/Hostname/Hostname.xs | 3 | ||||
-rw-r--r-- | ext/Sys/Syslog/Syslog.xs | 6 | ||||
-rw-r--r-- | hints/aix.sh | 7 | ||||
-rw-r--r-- | hints/hpux.sh | 38 | ||||
-rw-r--r-- | lib/ExtUtils/MM_Unix.pm | 18 | ||||
-rw-r--r-- | lib/ExtUtils/MakeMaker.pm | 3 | ||||
-rw-r--r-- | myconfig.SH | 1 |
13 files changed, 191 insertions, 85 deletions
@@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Mon Feb 14 06:52:21 EET 2000 [metaconfig 3.0 PL70] +# Generated on Wed Feb 16 01:07:15 EET 2000 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ <<EOF @@ -666,6 +666,7 @@ i_systimes='' i_systypes='' i_sysuio='' i_sysun='' +i_sysutsname='' i_sysvfs='' i_syswait='' i_sgtty='' @@ -949,10 +950,11 @@ loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib" loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib" : general looking path for locating libraries -glibpth="/shlib /usr/shlib /lib/pa20_64 /lib/pa1.1 /usr/lib/large" -glibpth="$glibpth /lib /usr/lib $xlibpth" +glibpth="/usr/lib/large /lib/pa1.1 /lib /usr/lib $xlibpth" glibpth="$glibpth /lib/large /usr/lib/small /lib/small" glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib" +test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth" +test -f /shlib/libc.so && glibpth="/shlib $glibpth" : Private path used by Configure to find libraries. Its value : is prepended to libpth. This variable takes care of special @@ -3697,32 +3699,47 @@ $define) ;; esac for thislib in $libswanted; do - - libname="$thislib" - if xxx=`./loc lib$thislib.$so.[0-9]'*' X $libpth` - $test -f "$xxx" -a "X$ignore_versioned_solibs" = "X" ; then - libstyle=shared - elif xxx=`./loc lib$thislib.$so X $libpth` ; $test -f "$xxx"; then - libstyle=shared - elif xxx=`./loc lib$thislib$_a X $libpth`; $test -f "$xxx"; then - libstyle=static - elif xxx=`./loc $thislib$_a X $libpth`; $test -f "$xxx"; then - libstyle=static - elif xxx=`./loc lib${thislib}_s$_a X $libpth`; $test -f "$xxx"; then - libstyle=static - libname=${thislib}_s - elif xxx=`./loc Slib$thislib$_a X $xlibpth`; $test -f "$xxx"; then - libstyle="static" - fi - if $test -f "$xxx"; then + for thisdir in $libpth; do + xxx='' + if $test ! -f "$xxx" -a "X$ignore_versioned_solibs" = "X"; then + xxx=`ls $thisdir/lib$thislib.$so.[0-9] 2>/dev/null|tail -1` + $test -f "$xxx" && eval $libscheck + $test -f "$xxx" && libstyle=shared + fi + if test ! -f "$xxx"; then + xxx=$thisdir/lib$thislib.$so + $test -f "$xxx" && eval $libscheck + $test -f "$xxx" && libstyle=shared + fi + if test ! -f "$xxx"; then + xxx=$thisdir/lib$thislib$_a + $test -f "$xxx" && eval $libscheck + $test -f "$xxx" && libstyle=static + fi + if test ! -f "$xxx"; then + xxx=$thisdir/$thislib$_a + $test -f "$xxx" && eval $libscheck + $test -f "$xxx" && libstyle=static + fi + if test ! -f "$xxx"; then + xxx=$thisdir/lib${thislib}_s$_a + $test -f "$xxx" && eval $libscheck + $test -f "$xxx" && libstyle=static + fi + if test ! -f "$xxx"; then + xxx=$thisdir/Slib$thislib$_a + $test -f "$xxx" && eval $libscheck + $test -f "$xxx" && libstyle=static + fi + if $test -f "$xxx"; then case "$libstyle" in - shared) echo "Found -l$libname (shared)." ;; - static) echo "Found -l$libname." ;; - *) echo "Found -l$libname ($libstyle)." ;; + shared) echo "Found -l$thislib (shared)." ;; + static) echo "Found -l$thislib." ;; + *) echo "Found -l$thislib ($libstyle)." ;; esac case " $dflt " in *"-l$thislib "*);; - *) dflt="$dflt -l$libname" + *) dflt="$dflt -l$thislib" libsfound="$libsfound $xxx" yyy=`basename $xxx` libsfiles="$libsfiles $yyy" @@ -3733,8 +3750,11 @@ for thislib in $libswanted; do esac ;; esac - else - echo "No -l$thislib." + break + fi + done + if $test ! -f "$xxx"; then + echo "No -l$thislib." fi done set X $dflt @@ -6026,7 +6046,7 @@ EOM case "$lddlflags" in '') case "$osname" in beos) dflt='-nostart' ;; - hpux) dflt='-b' ;; + hpux) dflt='-b +vnocompatwarnings' ;; linux|irix*) dflt='-shared' ;; next) dflt='none' ;; solaris) dflt='-G' ;; @@ -14106,6 +14126,11 @@ eval $inhdr set sys/un.h i_sysun eval $inhdr + +: see if this is a sys/utsname.h system +set sys/utsname.h i_sysutsname +eval $inhdr + : see if this is a syswait system set sys/wait.h i_syswait eval $inhdr @@ -14216,12 +14241,30 @@ for xxx in $known_extensions ; do ;; NDBM_File|ndbm_fil) case "$i_ndbm" in - $define) avail_ext="$avail_ext $xxx" ;; + $define) + case "$osname-$use64bits" in + hpux-define) + case "$libs" in + *-lndbm*) avail_ext="$avail_ext $xxx" ;; + esac + ;; + *) avail_ext="$avail_ext $xxx" ;; + esac + ;; esac ;; ODBM_File|odbm_fil) case "${i_dbm}${i_rpcsvcdbm}" in - *"${define}"*) avail_ext="$avail_ext $xxx" ;; + *"${define}"*) + case "$osname-$use64bits" in + hpux-define) + case "$libs" in + *-ldbm*) avail_ext="$avail_ext $xxx" ;; + esac + ;; + *) avail_ext="$avail_ext $xxx" ;; + esac + ;; esac ;; POSIX|posix) @@ -14922,6 +14965,7 @@ i_systimes='$i_systimes' i_systypes='$i_systypes' i_sysuio='$i_sysuio' i_sysun='$i_sysun' +i_sysutsname='$i_sysutsname' i_sysvfs='$i_sysvfs' i_syswait='$i_syswait' i_termio='$i_termio' diff --git a/Makefile.SH b/Makefile.SH index 832893826c..1646478bc0 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -436,7 +436,7 @@ $(LIBPERL): $& perl$(OBJ_EXT) $(obj) $(LIBPERLEXPORT) !NO!SUBS! case "${osname}${osvers}" in - next4*|aix*) + next4*) $spitshell >>Makefile <<'!NO!SUBS!' miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT) $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \ @@ -444,6 +444,15 @@ miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT) $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest !NO!SUBS! ;; + aix*) + $spitshell >>Makefile <<'!NO!SUBS!' +miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT) + $(CC) -o miniperl $(CLDFLAGS) \ + `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \ + miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs) + $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest +!NO!SUBS! + ;; *) $spitshell >>Makefile <<'!NO!SUBS!' miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT) diff --git a/Porting/Glossary b/Porting/Glossary index 44012c4bf1..73b0f1e48e 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -2116,6 +2116,10 @@ i_sysun (i_sysun.U): to the C program that it should include <sys/un.h> to get UNIX domain socket definitions. +i_sysutsname (i_sysutsname.U): + This variable conditionally defines the I_SYSUTSNAME symbol, + and indicates whether a C program should include <sys/utsname.h>. + i_sysvfs (i_sysvfs.U): This variable conditionally defines the I_SYSVFS symbol, and indicates whether a C program should include <sys/vfs.h>. diff --git a/Porting/config.sh b/Porting/config.sh index f21eb39f7a..9d3d8c1bd6 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -8,7 +8,7 @@ # Package name : perl5 # Source directory : . -# Configuration time: Sat Feb 12 01:09:19 EET 2000 +# Configuration time: Wed Feb 16 01:08:43 EET 2000 # Configured by : jhi # Target system : osf1 alpha.hut.fi v4.0 878 alpha @@ -35,8 +35,8 @@ api_subversion='0' api_version='5' api_versionstring='5.005' ar='ar' -archlib='/opt/perl/lib/5.5.650/alpha-dec_osf-thread-multi' -archlibexp='/opt/perl/lib/5.5.650/alpha-dec_osf-thread-multi' +archlib='/opt/perl/lib/5.5.660/alpha-dec_osf-thread-multi' +archlibexp='/opt/perl/lib/5.5.660/alpha-dec_osf-thread-multi' archname64='' archname='alpha-dec_osf-thread-multi' archobjs='' @@ -54,12 +54,12 @@ castflags='0' cat='cat' cc='cc' cccdlflags=' ' -ccdlflags=' -Wl,-rpath,/opt/perl/lib/5.5.650/alpha-dec_osf-thread-multi/CORE' +ccdlflags=' -Wl,-rpath,/opt/perl/lib/5.5.660/alpha-dec_osf-thread-multi/CORE' ccflags='-pthread -std -DLANGUAGE_C' ccsymbols='__alpha=1 __LANGUAGE_C__=1 __osf__=1 __unix__=1 _LONGLONG=1 _SYSTYPE_BSD=1 SYSTYPE_BSD=1 unix=1' cf_by='jhi' cf_email='yourname@yourhost.yourplace.com' -cf_time='Sat Feb 12 01:09:19 EET 2000' +cf_time='Wed Feb 16 01:08:43 EET 2000' charsize='1' chgrp='' chmod='' @@ -377,7 +377,7 @@ dlext='so' dlsrc='dl_dlopen.xs' doublesize='8' drand01='drand48()' -dynamic_ext='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Fcntl File/Glob IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Sys/Syslog Thread attrs re' +dynamic_ext='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Fcntl File/Glob IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Sys/Hostname Sys/Syslog Thread attrs re' eagain='EAGAIN' ebcdic='undef' echo='echo' @@ -386,7 +386,7 @@ emacs='' eunicefix=':' exe_ext='' expr='expr' -extensions='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Fcntl File/Glob IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Sys/Syslog Thread attrs re Errno' +extensions='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Fcntl File/Glob IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Sys/Hostname Sys/Syslog Thread attrs re Errno' fflushNULL='define' fflushall='undef' find='' @@ -482,6 +482,7 @@ i_systimes='define' i_systypes='define' i_sysuio='define' i_sysun='define' +i_sysutsname='define' i_sysvfs='undef' i_syswait='define' i_termio='undef' @@ -499,17 +500,17 @@ inc_version_list=' ' inc_version_list_init='0' incpath='' inews='' -installarchlib='/opt/perl/lib/5.5.650/alpha-dec_osf-thread-multi' +installarchlib='/opt/perl/lib/5.5.660/alpha-dec_osf-thread-multi' installbin='/opt/perl/bin' installman1dir='/opt/perl/man/man1' installman3dir='/opt/perl/man/man3' installprefix='/opt/perl' installprefixexp='/opt/perl' -installprivlib='/opt/perl/lib/5.5.650' +installprivlib='/opt/perl/lib/5.5.660' installscript='/opt/perl/bin' -installsitearch='/opt/perl/lib/site_perl/5.5.650/alpha-dec_osf-thread-multi' +installsitearch='/opt/perl/lib/site_perl/5.5.660/alpha-dec_osf-thread-multi' installsitebin='/opt/perl/bin' -installsitelib='/opt/perl/lib/site_perl/5.5.650' +installsitelib='/opt/perl/lib/site_perl/5.5.660' installstyle='lib' installusrbinperl='define' installvendorbin='' @@ -518,7 +519,7 @@ intsize='4' ivdformat='"ld"' ivsize='8' ivtype='long' -known_extensions='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Fcntl File/Glob GDBM_File IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Sys/Syslog Thread attrs re' +known_extensions='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Fcntl File/Glob GDBM_File IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Sys/Hostname Sys/Syslog Thread attrs re' ksh='' large='' ld='ld' @@ -612,8 +613,8 @@ pmake='' pr='' prefix='/opt/perl' prefixexp='/opt/perl' -privlib='/opt/perl/lib/5.5.650' -privlibexp='/opt/perl/lib/5.5.650' +privlib='/opt/perl/lib/5.5.660' +privlibexp='/opt/perl/lib/5.5.660' prototype='define' ptrsize='8' quadkind='2' @@ -659,12 +660,12 @@ sig_name_init='"ZERO", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "EMT", "FPE" sig_num='0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 6 6 16 20 23 23 23 29 48 ' sig_num_init='0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 6, 6, 16, 20, 23, 23, 23, 29, 48, 0' signal_t='void' -sitearch='/opt/perl/lib/site_perl/5.5.650/alpha-dec_osf-thread-multi' -sitearchexp='/opt/perl/lib/site_perl/5.5.650/alpha-dec_osf-thread-multi' +sitearch='/opt/perl/lib/site_perl/5.5.660/alpha-dec_osf-thread-multi' +sitearchexp='/opt/perl/lib/site_perl/5.5.660/alpha-dec_osf-thread-multi' sitebin='/opt/perl/bin' sitebinexp='/opt/perl/bin' -sitelib='/opt/perl/lib/site_perl/5.5.650' -sitelibexp='/opt/perl/lib/site_perl/5.5.650' +sitelib='/opt/perl/lib/site_perl/5.5.660' +sitelibexp='/opt/perl/lib/site_perl/5.5.660' siteprefix='/opt/perl' siteprefixexp='/opt/perl' sizetype='size_t' @@ -692,7 +693,7 @@ stdio_ptr='((fp)->_ptr)' stdio_stream_array='_iob' strings='/usr/include/string.h' submit='' -subversion='650' +subversion='660' sysman='/usr/man/man1' tail='' tar='' @@ -752,11 +753,11 @@ vendorlib='' vendorlibexp='' vendorprefix='' vendorprefixexp='' -version='5.5.650' +version='5.5.660' vi='' voidflags='15' xlibpth='/usr/lib/386 /lib/386' -xs_apiversion='5.5.650' +xs_apiversion='5.5.660' zcat='' zip='zip' # Configure command line arguments. @@ -776,7 +777,7 @@ config_arg10='-Dmyhostname=yourhost' config_arg11='-dE' PERL_REVISION=5 PERL_VERSION=5 -PERL_SUBVERSION=650 +PERL_SUBVERSION=660 PERL_API_REVISION=5 PERL_API_VERSION=5 PERL_API_SUBVERSION=0 diff --git a/Porting/config_H b/Porting/config_H index 4c41d24ed7..39ca93c488 100644 --- a/Porting/config_H +++ b/Porting/config_H @@ -17,7 +17,7 @@ /* * Package name : perl5 * Source directory : . - * Configuration time: Sat Feb 12 01:09:19 EET 2000 + * Configuration time: Wed Feb 16 01:08:43 EET 2000 * Configured by : jhi * Target system : osf1 alpha.hut.fi v4.0 878 alpha */ @@ -1098,8 +1098,8 @@ * This symbol contains the ~name expanded version of ARCHLIB, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define ARCHLIB "/opt/perl/lib/5.5.650/alpha-dec_osf-thread-multi" /**/ -#define ARCHLIB_EXP "/opt/perl/lib/5.5.650/alpha-dec_osf-thread-multi" /**/ +#define ARCHLIB "/opt/perl/lib/5.5.660/alpha-dec_osf-thread-multi" /**/ +#define ARCHLIB_EXP "/opt/perl/lib/5.5.660/alpha-dec_osf-thread-multi" /**/ /* ARCHNAME: * This symbol holds a string representing the architecture name. @@ -2644,8 +2644,8 @@ * This symbol contains the ~name expanded version of PRIVLIB, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define PRIVLIB "/opt/perl/lib/5.5.650" /**/ -#define PRIVLIB_EXP "/opt/perl/lib/5.5.650" /**/ +#define PRIVLIB "/opt/perl/lib/5.5.660" /**/ +#define PRIVLIB_EXP "/opt/perl/lib/5.5.660" /**/ /* PTRSIZE: * This symbol contains the size of a pointer, so that the C preprocessor @@ -2743,8 +2743,8 @@ * This symbol contains the ~name expanded version of SITEARCH, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define SITEARCH "/opt/perl/lib/site_perl/5.5.650/alpha-dec_osf-thread-multi" /**/ -#define SITEARCH_EXP "/opt/perl/lib/site_perl/5.5.650/alpha-dec_osf-thread-multi" /**/ +#define SITEARCH "/opt/perl/lib/site_perl/5.5.660/alpha-dec_osf-thread-multi" /**/ +#define SITEARCH_EXP "/opt/perl/lib/site_perl/5.5.660/alpha-dec_osf-thread-multi" /**/ /* SITELIB: * This symbol contains the name of the private library for this package. @@ -2761,8 +2761,8 @@ * This symbol contains the ~name expanded version of SITELIB, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define SITELIB "/opt/perl/lib/site_perl/5.5.650" /**/ -#define SITELIB_EXP "/opt/perl/lib/site_perl/5.5.650" /**/ +#define SITELIB "/opt/perl/lib/site_perl/5.5.660" /**/ +#define SITELIB_EXP "/opt/perl/lib/site_perl/5.5.660" /**/ /* Size_t: * This symbol holds the type used to declare length parameters @@ -2929,7 +2929,7 @@ /* PERL_XS_APIVERSION: * This variable contains the version of the oldest perl binary * compatible with the present perl. perl.c:incpush() and - * lib/lib.pm will automatically search in /opt/perl/lib/site_perl/5.5.650/alpha-dec_osf-thread-multi for older + * lib/lib.pm will automatically search in /opt/perl/lib/site_perl/5.5.660/alpha-dec_osf-thread-multi for older * directories across major versions back to xs_apiversion. * This is only useful if you have a perl library directory tree * structured like the default one. @@ -2948,7 +2948,7 @@ * compatible with the present perl. (That is, pure perl modules * written for pm_apiversion will still work for the current * version). perl.c:incpush() and lib/lib.pm will automatically - * search in /opt/perl/lib/site_perl/5.5.650 for older directories across major versions + * search in /opt/perl/lib/site_perl/5.5.660 for older directories across major versions * back to pm_apiversion. This is only useful if you have a perl * library directory tree structured like the default one. The * versioned site_perl library was introduced in 5.005, so that's @@ -2958,7 +2958,13 @@ * (presumably) be similar. * See the INSTALL file for how this works. */ -#define PERL_XS_APIVERSION "5.5.650" +#define PERL_XS_APIVERSION "5.5.660" #define PERL_PM_APIVERSION "5.005" +/* I_SYS_UTSNAME: + * This symbol, if defined, indicates that <sys/utsname.h> exists and + * should be included. + */ +#define I_SYS_UTSNAME /**/ + #endif diff --git a/config_h.SH b/config_h.SH index b7c39f06e7..17e4aa2837 100644 --- a/config_h.SH +++ b/config_h.SH @@ -2975,5 +2975,11 @@ sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- #define PERL_XS_APIVERSION "$xs_apiversion" #define PERL_PM_APIVERSION "$pm_apiversion" +/* I_SYS_UTSNAME: + * This symbol, if defined, indicates that <sys/utsname.h> exists and + * should be included. + */ +#$i_sysutsname I_SYS_UTSNAME /**/ + #endif !GROK!THIS! diff --git a/ext/Sys/Hostname/Hostname.xs b/ext/Sys/Hostname/Hostname.xs index 98c07cf58a..c2ab9bdd14 100644 --- a/ext/Sys/Hostname/Hostname.xs +++ b/ext/Sys/Hostname/Hostname.xs @@ -18,8 +18,7 @@ # endif #endif -#if defined(HAS_UNAME) && !defined(WIN32) -/* XXX need i_sys_utsname in config.sh */ +#ifdef I_SYS_UTSNAME # include <sys/utsname.h> #endif diff --git a/ext/Sys/Syslog/Syslog.xs b/ext/Sys/Syslog/Syslog.xs index d227343a1a..511df9f85f 100644 --- a/ext/Sys/Syslog/Syslog.xs +++ b/ext/Sys/Syslog/Syslog.xs @@ -551,6 +551,7 @@ _PATH_LOG() RETVAL = _PATH_LOG; #else croak("Your vendor has not defined the Sys::Syslog macro _PATH_LOG"); + RETVAL = NULL; #endif OUTPUT: RETVAL @@ -564,6 +565,7 @@ LOG_FAC(p) RETVAL = LOG_FAC(p); #else croak("Your vendor has not defined the Sys::Syslog macro LOG_FAC"); + RETVAL = -1; #endif OUTPUT: RETVAL @@ -577,6 +579,7 @@ LOG_PRI(p) RETVAL = LOG_PRI(p); #else croak("Your vendor has not defined the Sys::Syslog macro LOG_PRI"); + RETVAL = -1; #endif OUTPUT: RETVAL @@ -591,6 +594,7 @@ LOG_MAKEPRI(fac,pri) RETVAL = LOG_MAKEPRI(fac,pri); #else croak("Your vendor has not defined the Sys::Syslog macro LOG_MAKEPRI"); + RETVAL = -1; #endif OUTPUT: RETVAL @@ -604,6 +608,7 @@ LOG_MASK(pri) RETVAL = LOG_MASK(pri); #else croak("Your vendor has not defined the Sys::Syslog macro LOG_MASK"); + RETVAL = -1; #endif OUTPUT: RETVAL @@ -617,6 +622,7 @@ LOG_UPTO(pri) RETVAL = LOG_UPTO(pri); #else croak("Your vendor has not defined the Sys::Syslog macro LOG_UPTO"); + RETVAL = -1; #endif OUTPUT: RETVAL diff --git a/hints/aix.sh b/hints/aix.sh index c7020c8d66..d78494b2ee 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -139,13 +139,6 @@ $define|true|[yY]*) # (e.g. pragma/overload core dumps) Let's suspect xlC_r, too. # --jhi@iki.fi cc=cc_r - if test ! -e /bin/cc_r; then - cat >&4 <<EOM -For pthreads you should use the AIX C compiler cc_r. -But I cannot find it as /bin/cc_r. -Cannot continue, aborting. -EOM - fi ;; '') cc=cc_r diff --git a/hints/hpux.sh b/hints/hpux.sh index 426ff59a62..467ceb9f89 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -61,7 +61,7 @@ # # Lastly, you may want to include the "-z" HP linker flag so that # reading from a NULL pointer causes a SEGV. -ccflags="$ccflags -D_HPUX_SOURCE" +ccflags="$ccflags -D_HPUX_SOURCE -Wl,-z" # Check if you're using the bundled C compiler. This compiler doesn't support # ANSI C (the -Aa flag) nor can it produce shared libraries. Thus we have @@ -316,14 +316,18 @@ Cannot continue, aborting. EOM exit 1 fi - ccflags="$ccflags +DD64" - ldflags="$ldflags +DD64" + ld=/usr/bin/ld ar=/usr/bin/ar - loclibpth="/lib/pa20_64 $loclibpth" + full_ar=$ar # The strict ANSI mode (-Aa) doesn't like the LL suffixes. - ccflags=`echo $ccflags|sed 's@ -Aa @ -Ae @'` + case "$ccflags" in + *-Aa*) + echo "(Changing from strict ANSI compilation to extended because of 64-bitness)" + ccflags=`echo $ccflags|sed 's@ -Aa @ -Ae @'` + ;; + esac set `echo " $libswanted " | sed -e 's@ dl @ @'` libswanted="$*" @@ -332,6 +336,22 @@ EOM esac EOCBU +case "$use64bits" in +$define|true|[yY]*) + glibpth="`echo $glibpth|sed 's: /lib/pa1.1 : /lib/pa20_64 :'`" + ccflags="$ccflags +DD64" + ldflags="$ldflags +DD64" + libscheck='case "`file $xxx`" in +*LP64*|*PA-RISC2.0*) ;; +*) xxx=/no/64-bit$xxx ;; +esac' + ;; +esac + +case "`getconf KERNEL_BITS 2>/dev/null`" in +*64*) ldflags="$ldflags -Wl,+vnocompatwarnings" ;; +esac + # This script UU/uselfs.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use 64 bits. cat > UU/uselfs.cbu <<'EOCBU' @@ -342,8 +362,14 @@ $define|true|[yY]*) ccflags="$ccflags -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" # The strict ANSI mode (-Aa) doesn't like large files. - ccflags=`echo $ccflags|sed 's@ -Aa @ -Ae @'` + case "$ccflags" in + *-Aa*) + echo "(Changing from strict ANSI compilation to extended because of large files)" + ccflags=`echo $ccflags|sed 's@ -Aa @ -Ae @'` + ;; + esac ;; esac EOCBU + diff --git a/lib/ExtUtils/MM_Unix.pm b/lib/ExtUtils/MM_Unix.pm index c5cf7066bf..9ce54728c4 100644 --- a/lib/ExtUtils/MM_Unix.pm +++ b/lib/ExtUtils/MM_Unix.pm @@ -455,7 +455,8 @@ EOT my(@otherfiles) = values %{$self->{XS}}; # .c files from *.xs files push(@otherfiles, $attribs{FILES}) if $attribs{FILES}; push(@otherfiles, qw[./blib $(MAKE_APERL_FILE) $(INST_ARCHAUTODIR)/extralibs.all - perlmain.c mon.out core so_locations pm_to_blib + perlmain.c mon.out core core.*perl.*.? + *perl.core so_locations pm_to_blib *~ */*~ */*/*~ *$(OBJ_EXT) *$(LIB_EXT) perl.exe $(BOOTSTRAP) $(BASEEXT).bso $(BASEEXT).def $(BASEEXT).exp @@ -555,7 +556,7 @@ sub constants { INSTALLSITEARCH INSTALLBIN INSTALLSCRIPT PERL_LIB PERL_ARCHLIB SITELIBEXP SITEARCHEXP LIBPERL_A MYEXTLIB FIRST_MAKEFILE MAKE_APERL_FILE PERLMAINCC PERL_SRC - PERL_INC PERL FULLPERL + PERL_INC PERL FULLPERL FULL_AR / ) { next unless defined $self->{$tmp}; @@ -3179,9 +3180,18 @@ END # then copy that to $(INST_STATIC) and add $(OBJECT) into it. push(@m, "\t$self->{CP} \$(MYEXTLIB) \$\@\n") if $self->{MYEXTLIB}; + my $ar; + if (exists $self->{FULL_AR} && -x $self->{FULL_AR}) { + # Prefer the absolute pathed ar if available so that PATH + # doesn't confuse us. Perl itself is built with the full_ar. + $ar = 'FULL_AR'; + } else { + $ar = 'AR'; + } push @m, -q{ $(AR) $(AR_STATIC_ARGS) $@ $(OBJECT) && $(RANLIB) $@ - $(CHMOD) $(PERM_RWX) $@ + "\t\$($ar) ".'$(AR_STATIC_ARGS) $@ $(OBJECT) && $(RANLIB) $@'."\n"; + push @m, +q{ $(CHMOD) $(PERM_RWX) $@ }.$self->{NOECHO}.q{echo "$(EXTRALIBS)" > $(INST_ARCHAUTODIR)/extralibs.ld }; # Old mechanism - still available: diff --git a/lib/ExtUtils/MakeMaker.pm b/lib/ExtUtils/MakeMaker.pm index c4b75539bf..cdd8e4b0ad 100644 --- a/lib/ExtUtils/MakeMaker.pm +++ b/lib/ExtUtils/MakeMaker.pm @@ -259,7 +259,8 @@ sub full_setup { @Get_from_Config = qw( ar cc cccdlflags ccdlflags dlext dlsrc ld lddlflags ldflags libc - lib_ext obj_ext osname osvers ranlib sitelibexp sitearchexp so exe_ext + lib_ext obj_ext osname osvers ranlib sitelibexp sitearchexp so + exe_ext full_ar ); my $item; diff --git a/myconfig.SH b/myconfig.SH index dc76e73175..857f566e45 100644 --- a/myconfig.SH +++ b/myconfig.SH @@ -43,6 +43,7 @@ Summary of my $package (revision $baserev version $PERL_VERSION subversion $PERL stdchar='$stdchar', d_stdstdio=$d_stdstdio, usevfork=$usevfork intsize=$intsize, longsize=$longsize, ptrsize=$ptrsize, doublesize=$doublesize d_longlong=$d_longlong, longlongsize=$longlongsize, d_longdbl=$d_longdbl, longdblsize=$longdblsize + ivtype='$ivtype', ivsize=$ivsize, nvtype='$nvtype', nvsize=$nvsize, Off_t='$lseektype', lseeksize=$lseeksize alignbytes=$alignbytes, usemymalloc=$usemymalloc, prototype=$prototype Linker and Libraries: ld='$ld', ldflags ='$ldflags' |