perl 5.002gamma: hints/sco.sh
[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         # Apparently, SCO's cc gives rather verbose warnings
29         # Set -w0 to turn them off.
30         ccflags="$ccflags -w0 -U M_XENIX"
31         ;;
32 esac
33 i_varargs=undef
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'
39 usenm='false'
40
41 # If you want to use nm, you'll probably have to use nm -p.  The
42 # following does that for you:
43 nm_opt='-p'
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
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
73 libswanted=`echo " $libswanted " | sed -e 's/ dl / /'`
74 set X $libswanted
75 shift
76 libswanted="$*"