diff options
author | Thomas Wouters <thomas@python.org> | 2000-08-26 11:33:43 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-08-26 11:33:43 (GMT) |
commit | 0db2b2b4fe5e5fd5b0ad5ce458facd599e553227 (patch) | |
tree | a0aeb4812e360786e54ca228385d5832887eb488 /configure.in | |
parent | 617c43cafe4252c6c5d181e0b22f0d09dda0a6a5 (diff) | |
download | cpython-0db2b2b4fe5e5fd5b0ad5ce458facd599e553227.zip cpython-0db2b2b4fe5e5fd5b0ad5ce458facd599e553227.tar.gz cpython-0db2b2b4fe5e5fd5b0ad5ce458facd599e553227.tar.bz2 |
Don't enable the 'thread' module if threads are not possible.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.in b/configure.in index bb341c6..801019c 100644 --- a/configure.in +++ b/configure.in @@ -765,15 +765,18 @@ else AC_CHECK_LIB(cma, pthread_create, [AC_DEFINE(WITH_THREAD) AC_DEFINE(_POSIX_THREADS) LIBS="$LIBS -lcma" - LIBOBJS="$LIBOBJS thread.o"]) + LIBOBJS="$LIBOBJS thread.o"],[ + USE_THREAD_MODULE="#"]) ])])])])])])])]) AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD) LIBS="$LIBS -lmpc" - LIBOBJS="$LIBOBJS thread.o"]) + LIBOBJS="$LIBOBJS thread.o" + USE_THREAD_MODULE=""]) AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD) LIBS="$LIBS -lthread" - LIBOBJS="$LIBOBJS thread.o"]) + LIBOBJS="$LIBOBJS thread.o" + USE_THREAD_MODULE=""]) fi # Check for GC support |