2 # Courtesy of Joel Rosi-Schwartz <joel@ftechne.co.uk>
3 # Additional SCO version info from
4 # Peter Wolfe <wolfe@teloseng.com>
6 # Tue Feb 13 09:09:10 EST 1996
8 # To use gcc, use sh Configure -Dcc=gcc
10 # figure out what SCO version we are:
11 case `uname -X | egrep '^Release'` in
14 *) scorls=3 ;; # this probabaly shouldn't happen
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.
21 if test -f /usr/lib/libdbm.nfs.a ; then
22 libswanted=`echo "dbm.nfs $libswanted " | sed -e 's/ dbm / /'`
28 # We don't want Xenix cross-development libraries
29 glibpth=`echo $glibpth | sed -e 's! /usr/lib/386 ! !' -e 's! /lib/386 ! !'`
34 ccflags="$ccflags -U M_XENIX"
35 optimize="$optimize -O2"
39 *) # Apparently, SCO's cc gives rather verbose warnings
40 # Set -w0 to turn them off.
42 3) ccflags="$ccflags -W0 -quiet -U M_XENIX" ;;
43 5) ccflags="$ccflags -w0 -U M_XENIX" ;;
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'
55 # If you want to use nm, you'll probably have to use nm -p. The
56 # following does that for you:
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:
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
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.
71 # The output of uname -X on one such system was
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 / /'`