Patch from Andreas.
[p5sagit/p5-mst-13.2.git] / hints / bsdos.sh
1 # hints/bsdi_bsdos.sh
2 #
3 # hints file for BSD/OS 2.x (adapted from bsd386.sh)
4 # Original by Neil Bowers <neilb@khoros.unm.edu>
5 #     Tue Oct  4 12:01:34 EDT 1994
6 # Updated by Tony Sanders <sanders@bsdi.com>
7 #     Mon Mar 13 12:17:24 CST 1995
8 #
9 # You can override the compiler and loader on the Configure command line:
10 #     ./Configure -Dcc=gcc -Dld=ld
11
12 # filename extension for shared library objects
13 so='o'
14
15 d_voidsig='define'
16 signal_t='void'
17
18 # If Configure's signal detection fails, uncomment this line.
19 # sig_name='ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2 '
20
21 d_dosuid='define'
22
23 # we don't want to use -lnm, since exp() is busted in there (in 1.1 anyway)
24 set `echo X "$libswanted "| sed -e 's/ nm / /'`
25 shift
26 libswanted="$*"
27
28 # Avoid telldir prototype conflict in pp_sys.c  (BSD/386 uses const DIR *)
29 pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
30
31 case "$osvers" in
32 1.0*)
33         # Avoid problems with HUGE_VAL in POSIX in 1.0's cc.
34         POSIX_cflags='ccflags="$ccflags -UHUGE_VAL"' 
35         ;;
36 1.1*)
37         # Use gcc2 (2.5.8) if available in 1.1.
38         case "$cc" in
39         '')     cc=gcc2 ;;
40         esac
41         ;;
42 2.*)
43         # Use 2.X's gcc2
44         case "$cc" in
45         '')     cc=gcc2 ;;
46         esac
47
48         # Link with shared libraries in 2.X
49         case "$ld" in
50         '')     ld='shlicc' ;;
51         esac
52
53         # setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS stuff
54         # in 4.4BSD-based systems (including BSD/OS 2.0 and later).
55         # See http://www.bsdi.com/bsdi-man?setuid(2)
56         d_setregid='undef'
57         d_setreuid='undef'
58         d_setrgid='undef'
59         d_setruid='undef'
60         ;;
61 esac