perl 5.003: hints/bsdos.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 # Additional SCO version info from
4 # Peter Wolfe   <wolfe@teloseng.com>
5 # Last revised 
6 # Tue Feb 13 09:09:10 EST 1996
7
8 # To use gcc, use     sh Configure -Dcc=gcc
9
10 # figure out what SCO version we are:
11 case `uname -X | egrep '^Release'` in
12 *3.2v4.2) scorls=3 ;;
13 *3.2v5.*) scorls=5 ;;
14 *) scorls=3 ;; # this probabaly shouldn't happen
15 esac
16
17 # Try to use libintl.a since it has strcoll and strxfrm
18 libswanted="intl $libswanted"
19 # Try to use libdbm.nfs.a since it has dbmclose.
20
21 if test -f /usr/lib/libdbm.nfs.a ; then
22     libswanted=`echo "dbm.nfs $libswanted " | sed -e 's/ dbm / /'`
23 fi
24 set X $libswanted
25 shift
26 libswanted="$*"
27
28 # We don't want Xenix cross-development libraries
29 glibpth=`echo $glibpth | sed -e 's! /usr/lib/386 ! !' -e 's! /lib/386 ! !'`
30 xlibpth=''
31
32 case "$cc" in
33 gcc)
34         ccflags="$ccflags -U M_XENIX"
35         optimize="$optimize -O2"
36         ;;
37 scocc)  ;;
38
39 *)      # Apparently, SCO's cc gives rather verbose warnings
40         # Set -w0 to turn them off.
41         case $scorls in
42         3) ccflags="$ccflags -W0 -quiet -U M_XENIX" ;;
43         5) ccflags="$ccflags -w0 -U M_XENIX" ;;
44         esac
45         ;;
46 esac
47 i_varargs=undef
48
49 # I have received one report that nm extraction doesn't work if you're
50 # using the scocc compiler.  This system had the following 'myconfig'
51 # uname='xxx xxx 3.2 2 i386 '
52 # cc='scocc', optimize='-O'
53 usenm='false'
54
55 # If you want to use nm, you'll probably have to use nm -p.  The
56 # following does that for you:
57 nm_opt='-p'
58
59 # I have received one report that you can't include utime.h in
60 # pp_sys.c.  Uncomment the following line if that happens to you:
61 # i_utime=undef
62
63 # Apparently, some versions of SCO include both .so and .a libraries,
64 # but they don't mix as they do on other ELF systems.  The upshot is
65 # that Configure finds -ldl (libdl.so) but 'ld' complains it can't
66 # find libdl.a. 
67 # I don't know which systems have this feature, so I'll just remove
68 # -dl from libswanted for all SCO systems until someone can figure
69 # out how to get dynamic loading working on SCO.
70 #
71 # The output of uname -X on one such system was
72 #       System = SCO_SV
73 #       Node = xxxxx
74 #       Release = 3.2v5.0.0
75 #       KernelID = 95/08/08
76 #       Machine = Pentium  
77 #       BusType = ISA
78 #       Serial = xxxxx
79 #       Users = 5-user
80 #       OEM# = 0
81 #       Origin# = 1
82 #       NumCPU = 1 
83 #
84 # The 5.0.0 on the Release= line is probably the thing to watch.
85 #       Andy Dougherty <doughera@lafcol.lafayette.edu>
86 #       Thu Feb  1 15:06:56 EST 1996
87 libswanted=`echo " $libswanted " | sed -e 's/ dl / /'`
88 set X $libswanted
89 shift
90 libswanted="$*"