2 # AIX 3.x.x hints thanks to Wayne Scott <wscott@ichips.intel.com>
3 # AIX 4.1 hints thanks to Christopher Chan-Nui <channui@austin.ibm.com>.
4 # AIX 4.1 pthreading by Christopher Chan-Nui <channui@austin.ibm.com> and
5 # Jarkko Hietaniemi <jhi@iki.fi>.
6 # Merged on Mon Feb 6 10:22:35 EST 1995 by
7 # Andy Dougherty <doughera@lafcol.lafayette.edu>
10 # Configure finds setrgid and setruid, but they're useless. The man
12 # setrgid: The EPERM error code is always returned.
13 # setruid: The EPERM error code is always returned. Processes cannot
14 # reset only their real user IDs.
25 # Make setsockopt work correctly. See man page.
28 # uname -m output is too specific and not appropriate here
30 '') archname="$osname" ;;
35 ccflags='-D_ALL_SOURCE'
37 *) # These hints at least work for 4.x, possibly other systems too.
38 ccflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE'
41 *) ccflags="-qmaxmem=8192 $ccflags" ;;
47 # These functions don't work like Perl expects them to.
51 # Changes for dynamic linking by Wayne Scott <wscott@ichips.intel.com>
53 # Tell perl which symbols to export for dynamic linking.
55 *gcc*) ccdlflags='-Xlinker -bE:perl.exp' ;;
56 *) ccdlflags='-bE:perl.exp' ;;
59 # The first 3 options would not be needed if dynamic libs. could be linked
60 # with the compiler instead of ld.
61 # -bI:$(PERL_INC)/perl.exp Read the exported symbols from the perl binary
62 # -bE:$(BASEEXT).exp Export these symbols. This file contains only one
63 # symbol: boot_$(EXP) can it be auto-generated?
66 lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc'
69 lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc'
74 if [ "X$usethreads" = "X$define" ]; then
75 ccflags="-DNEED_PTHREAD_INIT $ccflags"
80 cc=xlc_r # Let us be stricter.
84 Unknown C compiler '$cc'.
85 For pthreads you should use the AIX C compilers xlc_r or cc_r.
86 Cannot continue, aborting.
92 # Add the POSIX threads library and the re-entrant libc.
94 lddlflags=`echo $lddlflags | sed 's/ -lc$/ -lpthreads -lc_r -lc/'`