daf3aec0088454543b48a779255bc5c162af8b0c
[p5sagit/p5-mst-13.2.git] / hints / sco.sh
1 # sco_3.sh 
2 # Courtesy of Joel Rosi-Schwartz <joel@ftechne.co.uk>
3 # To use gcc, do     Configure -Dcc=gcc
4 #
5 # Try to use libintl.a since it has strcoll and strxfrm
6 libswanted="intl $libswanted"
7 # Try to use libdbm.nfs.a since it has dbmclose.
8
9 if test -f /usr/lib/libdbm.nfs.a ; then
10     libswanted=`echo "dbm.nfs $libswanted " | sed -e 's/ dbm / /'`
11 fi
12 set X $libswanted
13 shift
14 libswanted="$*"
15
16 # We don't want Xenix cross-development libraries
17 glibpth=`echo $glibpth | sed -e 's! /usr/lib/386 ! !' -e 's! /lib/386 ! !'`
18 xlibpth=''
19
20 case "$cc" in
21 gcc)
22         ccflags="$ccflags -U M_XENIX"
23         optimize="$optimize -O2"
24         ;;
25 scocc)  ;;
26
27 *)
28         ccflags="$ccflags -W0 -U M_XENIX"
29         ;;
30 esac
31 i_varargs=undef
32
33 # I have received one report that nm extraction doesn't work if you're
34 # using the scocc compiler.  This system had the following 'myconfig'
35 # uname='xxx xxx 3.2 2 i386 '
36 # cc='scocc', optimize='-O'
37 usenm='false'
38
39 # If you want to use nm, you'll probably have to use nm -p.  The
40 # following does that for you:
41 nm_opt='-p'
42
43 # I have received one report that you can't include utime.h in
44 # pp_sys.c.  Uncomment the following line if that happens to you:
45 # i_utime=undef