]> granicus.if.org Git - python/commitdiff
Poke-and-hope attempt to fix Bugs #115006 and #114324: fix the test
authorGuido van Rossum <guido@python.org>
Fri, 22 Sep 2000 19:41:56 +0000 (19:41 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 22 Sep 2000 19:41:56 +0000 (19:41 +0000)
for pthread_t (to calculate its size) to work even if pthread_t is a
struct.

configure
configure.in

index 6880dc4fb7f8644030a7e41062be5d78e3ec09ed..07ff0c165597fdea683c676f16086fc553884b5f 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# From configure.in Revision: 1.161 
+# From configure.in Revision: 1.162 
 
 # Guess values for system-dependent variables and create Makefiles.
 # Generated automatically using autoconf version 2.13 
@@ -769,7 +769,7 @@ else
 fi
 
 echo "$ac_t""$with_cxx" 1>&6
-SET_CXX="CXX = $CXX"
+SET_CXX="CXX=$CXX"
 
 #AC_MSG_CHECKING(CCC)
 #if test -z "$CCC"
@@ -2522,7 +2522,7 @@ cat > conftest.$ac_ext <<EOF
 #include "confdefs.h"
 #include <pthread.h>
 int main() {
-pthread_t x; x = (pthread_t)0;
+pthread_t x; x = *(pthread_t)*0;
 ; return 0; }
 EOF
 if { (eval echo configure:2529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
index 1bf8854ee2f70a6bf6190ded554d051f317401bd..0824a920f1e40328a2ba79fcf5214b171ac7cf71 100644 (file)
@@ -170,7 +170,7 @@ AC_ARG_WITH(cxx, [  --with-cxx=<compiler>           enable C++ support],[
        with_cxx=no
 ])
 AC_MSG_RESULT($with_cxx)
-SET_CXX="CXX = $CXX"
+SET_CXX="CXX=$CXX"
 
 #AC_MSG_CHECKING(CCC)
 #if test -z "$CCC"
@@ -477,7 +477,7 @@ AC_DEFINE_UNQUOTED(SIZEOF_TIME_T, $ac_cv_sizeof_time_t)
 # if have pthread_t then define SIZEOF_PTHREAD_T
 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)
+AC_TRY_COMPILE([#include <pthread.h>], [pthread_t x; x = *(pthread_t)*0;], have_pthread_t=yes)
 AC_MSG_RESULT($have_pthread_t)
 if test "$have_pthread_t" = yes ; then
   # AC_CHECK_SIZEOF() doesn't include <pthread.h>.