Branch: Tag:

2003-01-05

2003-01-05 14:29:54 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Even more ISO 6.3.4 fixes.

Rev: src/acconfig.h:1.110
Rev: src/configure.in:1.672
Rev: src/cyclic.h:1.9
Rev: src/pike_threadlib.h:1.24

1: - AC_REVISION("$Id: configure.in,v 1.671 2003/01/04 15:04:36 kiwi Exp $") + AC_REVISION("$Id: configure.in,v 1.672 2003/01/05 14:29:54 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
2556:    AC_DEFINE(PIKE_THREADS)    using_threads="yes (nt)"    +  pike_cv_thread_t_type=integer +    else       # Test for POSIX threads
2918:    AC_DEFINE(HAVE_BROKEN_LINUX_THREAD_EUID)    else :; fi    +  AC_MSG_CHECKING([behaviour of the pthread_t type]) +  AC_CACHE_VAL(pike_cv_thread_t_type, [ +  AC_TRY_COMPILE([ + #include <sys/types.h> + #ifdef STDC_HEADERS + #include <stdlib.h> + #include <stddef.h> + #endif + #include <pthread.h> + extern pthread_t bar; +  ], [ +  void *foo = (void *)(ptrdiff_t)bar; +  return 0; +  ], [ pike_cv_thread_t_type=integer ], [ pike_cv_thread_t_type=pointer ]) +  ]) +  AC_MSG_RESULT($pike_cv_thread_t_type) +     else    AC_MSG_RESULT(no)    LIBS="$OLDLIBS"
2998:    # :    # fi    fi # UNIX threads +  +  pike_cv_thread_t_type=integer    fi # POSIX threads   fi # NT   else    # Without threads -  +  pike_cv_thread_t_type=integer    :   fi    -  + if test "x$pike_cv_thread_t_type" = "xpointer"; then +  AC_DEFINE(PIKE_THREAD_T_IS_POINTER) + fi +    ########################################################################      # NOTE: The following test is hardcoded to fail when crosscompiling