97be1d76cdf62a357b39487e9797532bf256209f
[p5sagit/p5-mst-13.2.git] / hints / linux.sh
1 # hints/linux.sh
2 # Original version by rsanders
3 # Additional support by Kenneth Albanowski <kjahds@kjahds.com>
4 #
5 # First pass at ELF support by Andy Dougherty <doughera@lafcol.lafayette.edu>
6 # Fri Feb  3 14:05:00 EST 1995
7 # Use   sh Configure -Dcc=gcc-elf     to try using gcc-elf.  It might work.
8 #
9 # Last updated Mon Mar  6 10:18:10 EST 1995
10 #
11
12 # Why is this needed?
13 bin='/usr/bin'
14
15 # Apparently some versions of gcc 2.6.2 are picking up _G_HAVE_BOOL
16 # from somewhere (_G_config.h maybe?) but not actually defining bool.
17 # Anyone really know what's going on?
18 ccflags='-Dbool=char -DHAS_BOOL'
19
20 d_dosuid='define'
21
22 malloctype='void *'
23 usemymalloc='n'
24
25 case "$optimize" in
26 '') optimize='-O2' ;;
27 esac
28
29 case "$cc" in
30 *cc-elf*)
31     so='so'
32     dlext='so'
33     # Configure might not understand nm output for ELF.
34     usenm=false
35     ;;
36 *)
37     lddlflags='-r'
38     so='sa'
39     dlext='o'
40     ## If you are using DLD 3.2.4 which does not support shared libs,
41     ## uncomment the next two lines:
42     #ldflags="-static"
43     #so='none'
44     ;;
45 esac
46
47 cat <<EOM
48
49 You should take a look at hints/linux.sh. There are a some lines you
50 may wish to change near the bottom.
51 EOM