diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-07-04 23:26:01 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-07-04 23:26:01 +0000 |
commit | 86959918b69bd7566746d776574341f410f68755 (patch) | |
tree | 6780588fce4cf2ffb2d134d8468905a555bb63f9 /hints/aix.sh | |
parent | f6b3007c38a92f48d086a19ea8682dd935b6d4ee (diff) | |
download | perl-86959918b69bd7566746d776574341f410f68755.tar.gz |
Miscellaneus AIX fixes + SOCKS support.
p4raw-id: //depot/cfgperl@3578
Diffstat (limited to 'hints/aix.sh')
-rw-r--r-- | hints/aix.sh | 37 |
1 files changed, 9 insertions, 28 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index 0614ce7ee9..581141d129 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -43,7 +43,9 @@ d_setruid='undef' alignbytes=8 -usemymalloc='n' +case "$usemymalloc" in +'') usemymalloc='n' ;; +esac # Intuiting the existence of system calls under AIX is difficult, # at best; the safest technique is to find them empirically. @@ -79,7 +81,7 @@ case "$osvers" in ccflags="$ccflags -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE" case "$cc" in *gcc*) ;; - *) ccflags="$ccflags -qmaxmem=8192" ;; + *) ccflags="$ccflags -qmaxmem=16384" ;; esac nm_opt='-B' ;; @@ -111,16 +113,14 @@ case "$osvers" in ;; esac +# Save this for backward compatibility for now. +# Configure already (5.005_58) knows how to probe for +# <socks.h> and libsocks. What sucks is that the name +# of the socks library seems to be version dependent +# (e.g. libsocks5), bleagh. # # if $ccflags contains -DSOCKS, then add socks library support. # -# SOCKS support also requires each source module with socket support -# add the following lines directly after the #include <socket.h>: -# -# #ifdef SOCKS -# #include <socks.h> -# #endif -# # It is expected that libsocks.a resides in /usr/local/lib and that # socks.h resides in /usr/local/include. If these files live some # different place then modify @@ -134,25 +134,6 @@ for arg in $ccflags ; do incpath=/usr/local/include libpath=/usr/local/lib - echo >&4 "SOCKS using $incpath/socks.h and $libpath/lib${sockslib}.a" - echo >&4 "SOCKS requires source modifications. #include <socket.h> must change to:" - echo >&4 - echo >&4 " #include <socket.h>" - echo >&4 " #ifdef SOCKS" - echo >&4 " #include <socks.h>" - echo >&4 " #endif" - echo >&4 - echo >&4 "in some or all of the following files:" - echo >&4 - - for arg in `find . \( -name '*.c' -o -name '*.xs' -o -name '*.h' \) \ - -exec egrep -l '#.*include.*socket\.h' {} \; | \ - egrep -v "win32|vms|t/lib|Socket.c` ; do - echo >&4 " $arg" - done - - echo >&4 - lddlflags="$lddlflags -l$sockslib" # setting $libs here breaks the optional libraries search |