mirror of
https://github.com/python/cpython.git
synced 2024-11-27 20:04:41 +08:00
Changes for NeXT by Lele
This commit is contained in:
parent
6f2260ea7f
commit
4b6b57980f
71
configure.in
71
configure.in
@ -5,41 +5,46 @@ AC_INIT(Include/object.h)
|
|||||||
AC_CONFIG_HEADER(config.h)
|
AC_CONFIG_HEADER(config.h)
|
||||||
|
|
||||||
# NEXTSTEP stuff
|
# NEXTSTEP stuff
|
||||||
AC_MSG_CHECKING(for --with-next-archs)
|
if test -f /usr/lib/NextStep/software_version; then
|
||||||
AC_ARG_WITH(next-archs,
|
|
||||||
[--with-next-archs='arch1 arch2 ..' build MAB binary], [
|
AC_MSG_CHECKING(for --with-next-archs)
|
||||||
if test -n "$withval"; then
|
AC_ARG_WITH(next-archs,
|
||||||
ac_sys_cpu=_`/usr/lib/arch_tool -choose_obj_dir $withval`
|
[--with-next-archs='arch1 arch2 ..' build MAB binary], [
|
||||||
ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval`
|
if test -n "$withval"; then
|
||||||
else
|
ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval`
|
||||||
ac_sys_cpu=_`arch`
|
# GCC does not currently support multi archs on the NeXT
|
||||||
|
with_gcc=no
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($with_next_archs)
|
||||||
|
], [AC_MSG_RESULT(none: using `arch`)])
|
||||||
|
|
||||||
|
if test -z "$MACHDEP"
|
||||||
|
then
|
||||||
|
set X `hostinfo | grep 'NeXT Mach.*:' | \
|
||||||
|
sed -e 's/://' -e 's/\./_/'` && \
|
||||||
|
ac_sys_system=next && ac_sys_release=$4
|
||||||
|
|
||||||
|
MACHDEP="$ac_sys_system$ac_sys_release"
|
||||||
fi
|
fi
|
||||||
], [])
|
fi
|
||||||
AC_MSG_RESULT($with_next_archs)
|
|
||||||
|
|
||||||
# Set name for machine-dependent library files
|
# Set name for machine-dependent library files
|
||||||
AC_SUBST(MACHDEP)
|
AC_SUBST(MACHDEP)
|
||||||
AC_MSG_CHECKING(MACHDEP)
|
AC_MSG_CHECKING(MACHDEP)
|
||||||
if test -z "$MACHDEP"
|
if test -z "$MACHDEP"
|
||||||
then
|
then
|
||||||
if test -f /usr/lib/NextStep/software_version; then
|
ac_sys_system=`uname -s`
|
||||||
set X `hostinfo | grep 'NeXT Mach.*:' | \
|
if test "$ac_sys_system" = "AIX" ; then
|
||||||
sed -e 's/://' -e 's/\./_/'` && \
|
ac_sys_release=`uname -v`
|
||||||
ac_sys_system=next && ac_sys_release=$4
|
|
||||||
MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu"
|
|
||||||
else
|
else
|
||||||
ac_sys_system=`uname -s`
|
ac_sys_release=`uname -r`
|
||||||
if test "$ac_sys_system" = "AIX" ; then
|
|
||||||
ac_sys_release=`uname -v`
|
|
||||||
else
|
|
||||||
ac_sys_release=`uname -r`
|
|
||||||
fi
|
|
||||||
ac_md_system=`echo $ac_sys_system |
|
|
||||||
tr -d '[/ ]' | tr '[[A-Z]]' '[[a-z]]'`
|
|
||||||
ac_md_release=`echo $ac_sys_release |
|
|
||||||
tr -d '[/ ]' | sed 's/\..*//'`
|
|
||||||
MACHDEP="$ac_md_system$ac_md_release"
|
|
||||||
fi
|
fi
|
||||||
|
ac_md_system=`echo $ac_sys_system |
|
||||||
|
tr -d '[/ ]' | tr '[[A-Z]]' '[[a-z]]'`
|
||||||
|
ac_md_release=`echo $ac_sys_release |
|
||||||
|
tr -d '[/ ]' | sed 's/\..*//'`
|
||||||
|
MACHDEP="$ac_md_system$ac_md_release"
|
||||||
|
|
||||||
case MACHDEP in
|
case MACHDEP in
|
||||||
'') MACHDEP=unknown;;
|
'') MACHDEP=unknown;;
|
||||||
esac
|
esac
|
||||||
@ -94,7 +99,6 @@ AC_SUBST(OPT)
|
|||||||
if test -z "$OPT"
|
if test -z "$OPT"
|
||||||
then
|
then
|
||||||
case $ac_sys_system in
|
case $ac_sys_system in
|
||||||
NeXT|next) OPT="-g -Wall -O3 -fomit-frame-pointer";;
|
|
||||||
*) OPT="-O";;
|
*) OPT="-O";;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
@ -156,9 +160,8 @@ AC_MSG_CHECKING(SO)
|
|||||||
if test -z "$SO"
|
if test -z "$SO"
|
||||||
then
|
then
|
||||||
case $ac_sys_system in
|
case $ac_sys_system in
|
||||||
hp*|HP*) SO=.sl;;
|
hp*|HP*) SO=.sl;;
|
||||||
NeXT|next) SO=.a;; # no shared libs on NeXT 3.3 and less
|
*) SO=.so;;
|
||||||
*) SO=.so;;
|
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($SO)
|
AC_MSG_RESULT($SO)
|
||||||
@ -175,9 +178,9 @@ then
|
|||||||
hp*|HP*) LDSHARED="ld -b";;
|
hp*|HP*) LDSHARED="ld -b";;
|
||||||
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
|
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
|
||||||
DYNIX/ptx*) LDSHARED="ld -G";;
|
DYNIX/ptx*) LDSHARED="ld -G";;
|
||||||
|
next/*) LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';;
|
||||||
Linux*) LDSHARED="gcc -shared";;
|
Linux*) LDSHARED="gcc -shared";;
|
||||||
FreeBSD*) LDSHARED="ld -Bshareable";;
|
FreeBSD*) LDSHARED="ld -Bshareable";;
|
||||||
NeXT|next/3*) LDSHARED="ld -u libsys_s";;
|
|
||||||
SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
|
SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
|
||||||
*) LDSHARED="ld";;
|
*) LDSHARED="ld";;
|
||||||
esac
|
esac
|
||||||
@ -208,6 +211,7 @@ then
|
|||||||
AIX*) LINKFORSHARED="-Wl,-bE:python.exp";;
|
AIX*) LINKFORSHARED="-Wl,-bE:python.exp";;
|
||||||
hp*|HP*) LINKFORSHARED="-Wl,-E";;
|
hp*|HP*) LINKFORSHARED="-Wl,-E";;
|
||||||
Linux*) LINKFORSHARED="-rdynamic";;
|
Linux*) LINKFORSHARED="-rdynamic";;
|
||||||
|
next) LINKFORSHARED="-u libsys_s";;
|
||||||
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
|
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
@ -443,7 +447,10 @@ AC_CHECK_LIB(ieee, __fpu_control)
|
|||||||
|
|
||||||
# check for --with-libm=...
|
# check for --with-libm=...
|
||||||
AC_SUBST(LIBM)
|
AC_SUBST(LIBM)
|
||||||
LIBM=-lm
|
case $ac_sys_system in
|
||||||
|
next) ;;
|
||||||
|
*) LIBM=-lm
|
||||||
|
esac
|
||||||
AC_ARG_WITH(libm, [--with-libm=STRING math library], [
|
AC_ARG_WITH(libm, [--with-libm=STRING math library], [
|
||||||
if test "$withval" != yes
|
if test "$withval" != yes
|
||||||
then LIBM=$withval
|
then LIBM=$withval
|
||||||
|
Loading…
Reference in New Issue
Block a user