From 86959918b69bd7566746d776574341f410f68755 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Sun, 4 Jul 1999 23:26:01 +0000 Subject: Miscellaneus AIX fixes + SOCKS support. p4raw-id: //depot/cfgperl@3578 --- hints/aix.sh | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) (limited to 'hints') 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 +# 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 : -# -# #ifdef SOCKS -# #include -# #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 must change to:" - echo >&4 - echo >&4 " #include " - echo >&4 " #ifdef SOCKS" - echo >&4 " #include " - 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 -- cgit v1.2.1