Changeset 50736


Ignore:
Timestamp:
May 8, 2009, 9:31:48 AM (11 years ago)
Author:
toby@…
Message:

eliminate the last autoconf warning

Location:
trunk/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/configure

    r50732 r50736  
    46064606
    46074607
    4608 
    46094608ac_ext=c
    46104609ac_cpp='$CPP $CPPFLAGS'
  • trunk/base/m4/pthread.m4

    r32543 r50736  
    5050AC_DEFUN([ACX_PTHREAD], [
    5151AC_REQUIRE([AC_CANONICAL_HOST])
    52 AC_LANG_SAVE
    53 AC_LANG_C
     52AC_LANG_PUSH([C])
    5453acx_pthread_ok=no
    5554
     
    168167        # functions on Solaris that doesn't have a non-functional libc stub.
    169168        # We try pthread_create on general principles.
    170         AC_TRY_LINK([#include <pthread.h>],
    171                     [pthread_t th; pthread_join(th, 0);
     169        AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]], [[pthread_t th; pthread_join(th, 0);
    172170                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
    173                      pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
    174                     [acx_pthread_ok=yes])
     171                     pthread_create(0,0,0,0); pthread_cleanup_pop(0); ]])],[acx_pthread_ok=yes],[])
    175172
    176173        LIBS="$save_LIBS"
     
    198195        attr_name=unknown
    199196        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
    200             AC_TRY_LINK([#include <pthread.h>], [int attr=$attr;],
    201                         [attr_name=$attr; break])
     197            AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]], [[int attr=$attr;]])],[attr_name=$attr; break],[])
    202198        done
    203199        AC_MSG_RESULT($attr_name)
     
    235231        $2
    236232fi
    237 AC_LANG_RESTORE
     233AC_LANG_POP([C])
    238234])dnl ACX_PTHREAD
Note: See TracChangeset for help on using the changeset viewer.