summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-09-30 16:19:48 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-09-30 16:19:48 (GMT)
commit21ee4091e10c6f05360bbb60e49aa3639408a612 (patch)
treec00517000f57a88877b852bb6e6b1d4a1c37e1f2 /configure.in
parent174aa49a88336713cd2231e9fe9110b8fb089d6c (diff)
downloadcpython-21ee4091e10c6f05360bbb60e49aa3639408a612.zip
cpython-21ee4091e10c6f05360bbb60e49aa3639408a612.tar.gz
cpython-21ee4091e10c6f05360bbb60e49aa3639408a612.tar.bz2
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in19
1 files changed, 15 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 5e68e75..27462a6 100644
--- a/configure.in
+++ b/configure.in
@@ -80,7 +80,8 @@ AC_MSG_CHECKING(MACHDEP)
if test -z "$MACHDEP"
then
ac_sys_system=`uname -s`
- if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then
+ if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
+ -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
ac_sys_release=`uname -v`
else
ac_sys_release=`uname -r`
@@ -473,11 +474,17 @@ then
*)
OPT="-O3 -Wall -Wstrict-prototypes";;
esac
+ case $ac_sys_system in
+ SCO_SV*) OPT="$OPT -m486 -DSCO5";;
+ esac
;;
*)
case $ac_sys_system in
OpenUNIX*|UnixWare*)
OPT="-O -K pentium,host,inline,loop_unroll,alloca ";;
+ SCO_SV*)
+ CFLAGS="$CFLAGS -belf"
+ OPT="-belf -O -Ki486 -DSCO5";;
*)
OPT="-O";;
esac
@@ -940,7 +947,7 @@ then
then LDSHARED="$(CC) -shared"
else LDSHARED="$(CC) -G"
fi;;
- SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
+ SCO_SV*) LDSHARED="$(CC) -Wl,-G,-Bexport";;
Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
atheos*) LDSHARED="gcc -shared";;
@@ -970,7 +977,11 @@ then
then CCSHARED="-fPIC"
else CCSHARED="-KPIC"
fi;;
- SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
+ SCO_SV*)
+ if test "$GCC" = "yes"
+ then CCSHARED="-fPIC"
+ else CCSHARED="-Kpic -belf"
+ fi;;
Monterey*) CCSHARED="-G";;
IRIX*/6*) case $CC in
*gcc*) CCSHARED="-shared";;
@@ -1008,7 +1019,7 @@ then
fi
LINKFORSHARED="$LINKFORSHARED $extra_frameworks";;
OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
- SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
+ SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
FreeBSD*|NetBSD*|OpenBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]