Add Python/ prefix to files in LIBOBJS. This closes SF bug "[ #404827 ] Python

Makefile: LIBOBJS incorrect".
This commit is contained in:
Neil Schemenauer 2001-03-04 06:39:33 +00:00
parent 243bff4708
commit f25cf6ccea
2 changed files with 40 additions and 26 deletions

35
configure vendored
View File

@ -1,6 +1,6 @@
#! /bin/sh
# From configure.in Revision: 1.206
# From configure.in Revision: 1.207
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13
@ -3419,7 +3419,7 @@ EOF
#define C_THREADS 1
EOF
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
else
echo "$ac_t""no" 1>&6
@ -3439,7 +3439,7 @@ EOF
EOF
LIBS="-lpth $LIBS"
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
else
echo "$ac_t""no" 1>&6
@ -3487,7 +3487,7 @@ EOF
EOF
LIBS="-lpthread $LIBS"
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
else
echo "$ac_t""no" 1>&6
@ -3545,7 +3545,7 @@ EOF
EOF
;;
esac
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
else
echo "$ac_t""no" 1>&6
@ -3585,7 +3585,7 @@ EOF
#define BEOS_THREADS 1
EOF
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
else
echo "$ac_t""no" 1>&6
@ -3633,7 +3633,7 @@ EOF
EOF
LIBS="$LIBS -lpthreads"
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
else
echo "$ac_t""no" 1>&6
@ -3681,7 +3681,7 @@ EOF
EOF
LIBS="$LIBS -lc_r"
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
else
echo "$ac_t""no" 1>&6
@ -3729,7 +3729,7 @@ EOF
EOF
LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
else
echo "$ac_t""no" 1>&6
@ -3777,7 +3777,7 @@ EOF
EOF
LIBS="$LIBS -lpthread"
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
else
echo "$ac_t""no" 1>&6
@ -3825,7 +3825,7 @@ EOF
EOF
LIBS="$LIBS -lcma"
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
else
echo "$ac_t""no" 1>&6
@ -3892,7 +3892,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
EOF
LIBS="$LIBS -lmpc"
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
USE_THREAD_MODULE=""
else
echo "$ac_t""no" 1>&6
@ -3938,7 +3938,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
EOF
LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
USE_THREAD_MODULE=""
else
echo "$ac_t""no" 1>&6
@ -6156,6 +6156,13 @@ EOF
fi
# Add Python/ prefix to LIBOBJS
libobjs=$LIBOBJS
LIBOBJS=
for obj in $libobjs; do
LIBOBJS="$LIBOBJS Python/$obj"
done
#AC_MSG_CHECKING(for Modules/Setup)
#if test ! -f Modules/Setup ; then
# if test ! -d Modules ; then
@ -6170,7 +6177,7 @@ fi
SRCDIRS="Parser Grammar Objects Python Modules"
echo $ac_n "checking for build directories""... $ac_c" 1>&6
echo "configure:6174: checking for build directories" >&5
echo "configure:6181: checking for build directories" >&5
for dir in $SRCDIRS; do
if test ! -d $dir; then
mkdir $dir

View File

@ -773,7 +773,7 @@ else
AC_DEFINE(_REENTRANT)
AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(C_THREADS)
LIBOBJS="$LIBOBJS Python/thread.o"],[
LIBOBJS="$LIBOBJS thread.o"],[
AC_MSG_CHECKING(for --with-pth)
AC_ARG_WITH(pth,
[ --with-pth use GNU pth threading libraries], [
@ -781,51 +781,51 @@ else
AC_DEFINE(WITH_THREAD)
AC_DEFINE(HAVE_PTH)
LIBS="-lpth $LIBS"
LIBOBJS="$LIBOBJS Python/thread.o"],[
LIBOBJS="$LIBOBJS thread.o"],[
AC_MSG_RESULT(no)
AC_CHECK_LIB(pthread, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="-lpthread $LIBS"
LIBOBJS="$LIBOBJS Python/thread.o"],[
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_FUNC(pthread_detach, [AC_DEFINE(WITH_THREAD)
case $ac_sys_system in
Darwin*) ;;
*) AC_DEFINE(_POSIX_THREADS);;
esac
LIBOBJS="$LIBOBJS Python/thread.o"],[
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_HEADER(kernel/OS.h, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(BEOS_THREADS)
LIBOBJS="$LIBOBJS Python/thread.o"],[
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_LIB(pthreads, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lpthreads"
LIBOBJS="$LIBOBJS Python/thread.o"], [
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(c_r, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lc_r"
LIBOBJS="$LIBOBJS Python/thread.o"], [
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(thread, __d6_pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS Python/thread.o"], [
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(pthread, __pthread_create_system, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lpthread"
LIBOBJS="$LIBOBJS Python/thread.o"], [
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(cma, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lcma"
LIBOBJS="$LIBOBJS Python/thread.o"],[
LIBOBJS="$LIBOBJS thread.o"],[
USE_THREAD_MODULE="#"])
])])])])])])])])])
AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lmpc"
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
USE_THREAD_MODULE=""])
AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS Python/thread.o"
LIBOBJS="$LIBOBJS thread.o"
USE_THREAD_MODULE=""])
if test "$USE_THREAD_MODULE" != "#"
@ -1293,6 +1293,13 @@ cat >> confdefs.h <<\EOF
EOF
AC_CHECK_TYPE(socklen_t, int)
# Add Python/ prefix to LIBOBJS
libobjs=$LIBOBJS
LIBOBJS=
for obj in $libobjs; do
LIBOBJS="$LIBOBJS Python/$obj"
done
#AC_MSG_CHECKING(for Modules/Setup)
#if test ! -f Modules/Setup ; then
# if test ! -d Modules ; then