configure.in
changeset 6219 8e94af244f2c
parent 6217 6952b11b7f46
child 6235 d169541f5049
     1.1 --- a/configure.in	Sat Jan 14 13:21:19 2012 -0500
     1.2 +++ b/configure.in	Sun Jan 15 03:34:14 2012 -0500
     1.3 @@ -1742,6 +1742,20 @@
     1.4                  ])
     1.5                  AC_MSG_RESULT($have_pthread_sem)
     1.6              fi
     1.7 +            if test x$have_pthread_sem = xyes; then
     1.8 +                AC_MSG_CHECKING(for sem_timedwait)
     1.9 +                have_sem_timedwait=no
    1.10 +                AC_TRY_LINK([
    1.11 +                  #include <pthread.h>
    1.12 +                  #include <semaphore.h>
    1.13 +                ],[
    1.14 +                  sem_timedwait(NULL, NULL);
    1.15 +                ],[
    1.16 +                have_sem_timedwait=yes
    1.17 +                AC_DEFINE(HAVE_SEM_TIMEDWAIT)
    1.18 +                ])
    1.19 +                AC_MSG_RESULT($have_sem_timedwait)
    1.20 +            fi
    1.21  
    1.22              AC_MSG_CHECKING(for pthread_spin_trylock)
    1.23              AC_TRY_LINK_FUNC(pthread_spin_trylock, [