summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-05-08 13:41:38 (GMT)
committerGuido van Rossum <guido@python.org>2000-05-08 13:41:38 (GMT)
commit07bd90e92d9cb8982ad541dda59bc0f8867e9414 (patch)
treed294154d48f2c77978e9c4006769c5cd063444c4 /configure.in
parent8b41d5363a3b5b8554b4fb6e31ff71d9b0a702b9 (diff)
downloadcpython-07bd90e92d9cb8982ad541dda59bc0f8867e9414.zip
cpython-07bd90e92d9cb8982ad541dda59bc0f8867e9414.tar.gz
cpython-07bd90e92d9cb8982ad541dda59bc0f8867e9414.tar.bz2
Andy Dustman: add GNU pth user-space thread support.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index ff43618..6a846a2 100644
--- a/configure.in
+++ b/configure.in
@@ -654,6 +654,10 @@ AC_DEFINE(_REENTRANT)
AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(C_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[
+AC_CHECK_LIB(pth, pth_init, [AC_DEFINE(WITH_THREAD)
+AC_DEFINE(_GNU_PTH)
+LIBS="-lpth $LIBS"
+LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_LIB(pthread, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="-lpthread $LIBS"
@@ -680,7 +684,7 @@ AC_CHECK_LIB(cma, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lcma"
LIBOBJS="$LIBOBJS thread.o"])
-])])])])])])])
+])])])])])])])])
AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lmpc"