Kaydet (Commit) 009f7875 authored tarafından Guido van Rossum's avatar Guido van Rossum

When --with-thread(s) is specified, the thread module is now automatically

enabled.  This is done through a substitution in Modules/Setup.thread(.in).
Bill Janssen will be happy.  The original idea was by Lele Gaifax (though
I changed the implementation to use a separate file).
üst a0cbb3db
This diff is collapsed.
...@@ -348,6 +348,9 @@ AC_ARG_WITH(readline, ...@@ -348,6 +348,9 @@ AC_ARG_WITH(readline,
AC_ERROR(--with(out)-readline is obsolete, edit Modules/Setup instead)], AC_ERROR(--with(out)-readline is obsolete, edit Modules/Setup instead)],
[AC_MSG_RESULT(not specified.)]) [AC_MSG_RESULT(not specified.)])
AC_SUBST(USE_THREAD_MODULE)
USE_THREAD_MODULE="#"
AC_MSG_CHECKING(for --with-dec-threads) AC_MSG_CHECKING(for --with-dec-threads)
AC_SUBST(LDLAST) AC_SUBST(LDLAST)
AC_ARG_WITH(dec-threads, AC_ARG_WITH(dec-threads,
...@@ -369,6 +372,7 @@ AC_MSG_RESULT(no)) ...@@ -369,6 +372,7 @@ AC_MSG_RESULT(no))
AC_MSG_CHECKING(for --with-thread) AC_MSG_CHECKING(for --with-thread)
AC_ARG_WITH(thread, [--with-thread[=DIRECTORY] make interpreter thread-safe], [ AC_ARG_WITH(thread, [--with-thread[=DIRECTORY] make interpreter thread-safe], [
USE_THREAD_MODULE=
AC_MSG_RESULT($withval) AC_MSG_RESULT($withval)
if test -d "$withval" if test -d "$withval"
then LDFLAGS="$LDFLAGS -L$withval" then LDFLAGS="$LDFLAGS -L$withval"
...@@ -642,4 +646,5 @@ AC_OUTPUT(Makefile \ ...@@ -642,4 +646,5 @@ AC_OUTPUT(Makefile \
Objects/Makefile \ Objects/Makefile \
Parser/Makefile \ Parser/Makefile \
Python/Makefile \ Python/Makefile \
Modules/Makefile.pre) Modules/Makefile.pre \
Modules/Setup.thread)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment