summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-07-19 14:21:10 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-07-19 14:21:10 (GMT)
commit123cbd286a94b71f9d6ff4707b4bab89ffd7be27 (patch)
treeff840d8c24e30a9534cdd8d938396a1b056d9410 /configure.in
parentf5df46d701d29baf738365da6fcf1b8a3ceabb71 (diff)
downloadcpython-123cbd286a94b71f9d6ff4707b4bab89ffd7be27.zip
cpython-123cbd286a94b71f9d6ff4707b4bab89ffd7be27.tar.gz
cpython-123cbd286a94b71f9d6ff4707b4bab89ffd7be27.tar.bz2
Use -Kpthread when trying to find out the size of pthread_t.
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 3e0248a..a2e05cf 100644
--- a/configure.in
+++ b/configure.in
@@ -646,6 +646,10 @@ AC_DEFINE_UNQUOTED(SIZEOF_TIME_T, $ac_cv_sizeof_time_t)
# if have pthread_t then define SIZEOF_PTHREAD_T
+ac_save_cc="$CC"
+if test "$ac_cv_kpthread" = "yes"
+then CC="$CC -Kpthread"
+fi
AC_MSG_CHECKING(for pthread_t)
have_pthread_t=no
AC_TRY_COMPILE([#include <pthread.h>], [pthread_t x; x = *(pthread_t*)0;], have_pthread_t=yes)
@@ -667,7 +671,7 @@ if test "$have_pthread_t" = yes ; then
AC_MSG_RESULT($ac_cv_sizeof_pthread_t)
AC_DEFINE_UNQUOTED(SIZEOF_PTHREAD_T, $ac_cv_sizeof_pthread_t)
fi
-
+CC="$ac_save_cc"
# Minor variations in building a framework between NextStep versions 4 and 5
AC_SUBST(LIBTOOL_CRUFT)