bbcc52210f7fdce91d7f176e4b254ffb05519dec
[p5sagit/p5-mst-13.2.git] / hints / aix.sh
1 # hints/aix.sh
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>
8
9
10 # Configure finds setrgid and setruid, but they're useless.  The man
11 # pages state:
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.
15 d_setrgid='undef'
16 d_setruid='undef'
17
18 alignbytes=8
19
20 usemymalloc='n'
21
22 # Intuiting the existence of system calls under AIX is difficult,
23 # at best; the safest technique is to find them empirically.
24 usenm='undef'
25
26 so="a"
27 dlext="so"
28
29 # Make setsockopt work correctly.  See man page.
30 # ccflags='-D_BSD=44'
31
32 # uname -m output is too specific and not appropriate here
33 case "$archname" in
34 '') archname="$osname" ;;
35 esac
36
37 case "$osvers" in
38 3*) d_fchmod=undef
39     ccflags="$ccflags -D_ALL_SOURCE"
40     ;;
41 *)  # These hints at least work for 4.x, possibly other systems too.
42     ccflags="$ccflags -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE"
43     case "$cc" in
44      *gcc*) ;;
45      *) ccflags="$ccflags -qmaxmem=8192" ;;
46     esac
47     nm_opt='-B'
48     ;;
49 esac
50
51 # These functions don't work like Perl expects them to.
52 d_setregid='undef'
53 d_setreuid='undef'
54
55 # Changes for dynamic linking by Wayne Scott <wscott@ichips.intel.com>
56 #
57 # Tell perl which symbols to export for dynamic linking.
58 case "$cc" in
59 *gcc*) ccdlflags='-Xlinker -bE:perl.exp' ;;
60 *) ccdlflags='-bE:perl.exp' ;;
61 esac
62
63 # The first 3 options would not be needed if dynamic libs. could be linked
64 # with the compiler instead of ld.
65 # -bI:$(PERL_INC)/perl.exp  Read the exported symbols from the perl binary
66 # -bE:$(BASEEXT).exp        Export these symbols.  This file contains only one
67 #                           symbol: boot_$(EXP)  can it be auto-generated?
68 case "$osvers" in
69 3*) 
70     lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc'
71     ;;
72 *) 
73     lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc'
74     ;;
75 esac
76