summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-10-30 17:45:07 (GMT)
committerGuido van Rossum <guido@python.org>2000-10-30 17:45:07 (GMT)
commit8d6e8af16e23a7db27caa79d3f17333c4b687d62 (patch)
tree5884b30d531fdd44144a60bae2e18ff5b851e269 /configure.in
parent6b4ec5135b72eddcb7ed062bb5b466a92795f911 (diff)
downloadcpython-8d6e8af16e23a7db27caa79d3f17333c4b687d62.zip
cpython-8d6e8af16e23a7db27caa79d3f17333c4b687d62.tar.gz
cpython-8d6e8af16e23a7db27caa79d3f17333c4b687d62.tar.bz2
Hack to force -lpthread instead instead of -lcma on HPUX, by Philipp
Jocham. Philipp asks: "Are there any success stories with HP-UX 11.00 and -lcma? Maybe libcma is broken."
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 6e9ab34..43462fb 100644
--- a/configure.in
+++ b/configure.in
@@ -790,12 +790,16 @@ else
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS thread.o"], [
+ AC_CHECK_LIB(pthread, __pthread_create_system, [AC_DEFINE(WITH_THREAD)
+ AC_DEFINE(_POSIX_THREADS)
+ LIBS="$LIBS -lpthread"
+ LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(cma, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lcma"
LIBOBJS="$LIBOBJS thread.o"],[
USE_THREAD_MODULE="#"])
- ])])])])])])])])
+ ])])])])])])])])])
AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lmpc"