apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/build apr_threads.m4
Date Fri, 04 Jun 2004 15:41:24 GMT
jorton      2004/06/04 08:41:24

  Modified:    build    apr_threads.m4
  Log:
  * build/apr_threads.m4 (APR_CHECK_PTHREAD_RECURSIVE_MUTEX): Run rather
  than just compile the test program.
  
  Revision  Changes    Path
  1.13      +6 -4      apr/build/apr_threads.m4
  
  Index: apr_threads.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_threads.m4,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -d -w -u -r1.12 -r1.13
  --- apr_threads.m4	4 Jun 2004 15:23:34 -0000	1.12
  +++ apr_threads.m4	4 Jun 2004 15:41:24 -0000	1.13
  @@ -208,16 +208,18 @@
   dnl Check for recursive mutex support (per SUSv3).
   AC_DEFUN([APR_CHECK_PTHREAD_RECURSIVE_MUTEX], [
     AC_CACHE_CHECK([for recursive mutex support], [apr_cv_mutex_recursive],
  -[AC_TRY_COMPILE([#include <sys/types.h>
  +[AC_TRY_RUN([#include <sys/types.h>
   #include <pthread.h>
  -#include <stdlib.h>], [
  +#include <stdlib.h>
  +
  +int main() {
       pthread_mutexattr_t attr;
       pthread_mutex_t m;
   
       exit (pthread_mutexattr_init(&attr) 
             || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
  -          || pthread_mutex_init(&m, &attr));], 
  -[apr_cv_mutex_recursive=yes], [apr_cv_mutex_recursive=no], 
  +          || pthread_mutex_init(&m, &attr));
  +}], [apr_cv_mutex_recursive=yes], [apr_cv_mutex_recursive=no], 
   [apr_cv_mutex_recursive=no])])
   
   if test "$apr_cv_mutex_recursive" = "yes"; then
  
  
  

Mime
View raw message