Patch from Andreas.
[p5sagit/p5-mst-13.2.git] / hints / sco.sh
CommitLineData
a0d0e21e 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
6libswanted="intl $libswanted"
7# Try to use libdbm.nfs.a since it has dbmclose.
8#
9if test -f /usr/lib/libdbm.nfs.a ; then
10 libswanted=`echo "dbm.nfs $libswanted " | sed -e 's/ dbm / /'`
11fi
12set X $libswanted
13shift
14libswanted="$*"
15#
16# We don't want Xenix cross-development libraries
17glibpth=`echo $glibpth | sed -e 's! /usr/lib/386 ! !' -e 's! /lib/386 ! !'`
18xlibpth=''
19#
20case "$cc" in
21gcc)
22 ccflags="$ccflags -U M_XENIX"
23 optimize="$optimize -O2"
24 ;;
5d94fbed 25scocc) ;;
26
a0d0e21e 27*)
28 ccflags="$ccflags -W0 -U M_XENIX"
29 ;;
30esac
988174c1 31i_varargs=undef
5d94fbed 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'
37usenm='false'
38
39# If you want to use nm, you'll probably have to use nm -p. The
40# following does that for you:
a0d0e21e 41nm_opt='-p'
c2960299 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