perl 5.002gamma: utils/h2xs.PL
[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*)
cdc1f821 28 # Apparently, SCO's cc gives rather verbose warnings
29 # Set -w0 to turn them off.
30 ccflags="$ccflags -w0 -U M_XENIX"
a0d0e21e 31 ;;
32esac
988174c1 33i_varargs=undef
5d94fbed 34
35# I have received one report that nm extraction doesn't work if you're
36# using the scocc compiler. This system had the following 'myconfig'
37# uname='xxx xxx 3.2 2 i386 '
38# cc='scocc', optimize='-O'
39usenm='false'
40
41# If you want to use nm, you'll probably have to use nm -p. The
42# following does that for you:
a0d0e21e 43nm_opt='-p'
c2960299 44
45# I have received one report that you can't include utime.h in
46# pp_sys.c. Uncomment the following line if that happens to you:
47# i_utime=undef
cdc1f821 48
49# Apparently, some versions of SCO include both .so and .a libraries,
50# but they don't mix as they do on other ELF systems. The upshot is
51# that Configure finds -ldl (libdl.so) but 'ld' complains it can't
52# find libdl.a.
53# I don't know which systems have this feature, so I'll just remove
54# -dl from libswanted for all SCO systems until someone can figure
55# out how to get dynamic loading working on SCO.
56#
57# The output of uname -X on one such system was
58# System = SCO_SV
59# Node = xxxxx
60# Release = 3.2v5.0.0
61# KernelID = 95/08/08
62# Machine = Pentium
63# BusType = ISA
64# Serial = xxxxx
65# Users = 5-user
66# OEM# = 0
67# Origin# = 1
68# NumCPU = 1
69#
70# The 5.0.0 on the Release= line is probably the thing to watch.
71# Andy Dougherty <doughera@lafcol.lafayette.edu>
72# Thu Feb 1 15:06:56 EST 1996
73libswanted=`echo " $libswanted " | sed -e 's/ dl / /'`
74set X $libswanted
75shift
76libswanted="$*"