2 # Courtesy of Joel Rosi-Schwartz <j.schwartz@agonet.it>
4 # Additional SCO version info from
5 # Peter Wolfe <wolfe@teloseng.com>
7 # Fri Jul 19 14:54:25 EDT 1996
8 # by Andy Dougherty <doughera@lafcol.lafayette.edu>
10 # To use gcc, use sh Configure -Dcc=gcc
11 # But gcc will *not* do dynamic laoding on 3.2.5,
12 # for that use sh Configure -Dcc=icc
13 # See below for more details.
15 # figure out what SCO version we are. The output of uname -X is
29 # Use /bin/uname (because Gnu may be first on the path and
30 # it does not support -X) to figure out what SCO version we are:
31 case `/bin/uname -X | egrep '^Release'` in
32 *3.2v4.*) scorls=3 ;; # I don't know why this is 3 instead of 4 :-)
34 *) scorls=3 ;; # this probabaly shouldn't happen
37 # Try to use libintl.a since it has strcoll and strxfrm
38 libswanted="intl $libswanted"
39 # Try to use libdbm.nfs.a since it has dbmclose.
41 if test -f /usr/lib/libdbm.nfs.a ; then
42 libswanted=`echo "dbm.nfs $libswanted " | sed -e 's/ dbm / /'`
48 # We don't want Xenix cross-development libraries
49 glibpth=`echo $glibpth | sed -e 's! /usr/lib/386 ! !' -e 's! /lib/386 ! !'`
53 *gcc*) ccflags="$ccflags -U M_XENIX"
54 optimize="$optimize -O2"
58 # On SCO 3.2v5 both cc and icc can build dynamic load, but cc core
59 # dumps if optimised, so I am only setting this up for icc.
60 # It is possible that some 3.2v4.2 system have icc, I seem to
61 # recall it was available as a seperate product but I have no
62 # knowledge if it can do dynamic loading and if so how.
64 icc)# Apparently, SCO's cc gives rather verbose warnings
65 # Set -w0 to turn them off.
67 3) ccflags="$ccflags -W0 -quiet -U M_XENIX" ;;
68 5) ccflags="$ccflags -belf -w0 -U M_XENIX"
69 optimize="-O1" # -g -O1 will not work
70 # optimize="-O0" may be needed for pack test to pass.
71 lddlflags='-G -L/usr/local/lib'
72 ldflags=' -W l,-Bexport -L/usr/local/lib'
80 *) # Apparently, miniperl core dumps if -O is used.
84 # Apparently, SCO's cc gives rather verbose warnings
85 # Set -w0 to turn them off.
87 3) ccflags="$ccflags -W0 -quiet -U M_XENIX" ;;
88 5) ccflags="$ccflags -w0 -U M_XENIX -DPERL_SCO5" ;;
94 # I have received one report that nm extraction doesn't work if you're
95 # using the scocc compiler. This system had the following 'myconfig'
96 # uname='xxx xxx 3.2 2 i386 '
97 # cc='scocc', optimize='-O'
100 # If you want to use nm, you'll probably have to use nm -p. The
101 # following does that for you:
104 # I have received one report that you can't include utime.h in
105 # pp_sys.c. Uncomment the following line if that happens to you:
108 # Apparently, some versions of SCO include both .so and .a libraries,
109 # but they don't mix as they do on other ELF systems. The upshot is
110 # that Configure finds -ldl (libdl.so) but 'ld' complains it can't
112 # I don't know which systems have this feature, so I'll just remove
113 # -dl from libswanted for all SCO systems until someone can figure
114 # out how to get dynamic loading working on SCO.
116 # The output of uname -X on one such system was
119 # Release = 3.2v5.0.0
120 # KernelID = 95/08/08
129 # The 5.0.0 on the Release= line is probably the thing to watch.
130 # Andy Dougherty <doughera@lafcol.lafayette.edu>
131 # Thu Feb 1 15:06:56 EST 1996
132 libswanted=`echo " $libswanted " | sed -e 's/ dl / /'`
137 # Perl 5.003_05 and later try to include both <time.h> and <sys/select.h>
138 # in pp_sys.c, but that fails due to a redefinition of struct timeval.
139 # This will generate a WHOA THERE. Accept the default.