configure
changeset 6219 8e94af244f2c
parent 6217 6952b11b7f46
child 6235 d169541f5049
     1.1 --- a/configure	Sat Jan 14 13:21:19 2012 -0500
     1.2 +++ b/configure	Sun Jan 15 03:34:14 2012 -0500
     1.3 @@ -24485,6 +24485,67 @@
     1.4                  { echo "$as_me:$LINENO: result: $have_pthread_sem" >&5
     1.5  echo "${ECHO_T}$have_pthread_sem" >&6; }
     1.6              fi
     1.7 +            if test x$have_pthread_sem = xyes; then
     1.8 +                { echo "$as_me:$LINENO: checking for sem_timedwait" >&5
     1.9 +echo $ECHO_N "checking for sem_timedwait... $ECHO_C" >&6; }
    1.10 +                have_sem_timedwait=no
    1.11 +                cat >conftest.$ac_ext <<_ACEOF
    1.12 +/* confdefs.h.  */
    1.13 +_ACEOF
    1.14 +cat confdefs.h >>conftest.$ac_ext
    1.15 +cat >>conftest.$ac_ext <<_ACEOF
    1.16 +/* end confdefs.h.  */
    1.17 +
    1.18 +                  #include <pthread.h>
    1.19 +                  #include <semaphore.h>
    1.20 +
    1.21 +int
    1.22 +main ()
    1.23 +{
    1.24 +
    1.25 +                  sem_timedwait(NULL, NULL);
    1.26 +
    1.27 +  ;
    1.28 +  return 0;
    1.29 +}
    1.30 +_ACEOF
    1.31 +rm -f conftest.$ac_objext conftest$ac_exeext
    1.32 +if { (ac_try="$ac_link"
    1.33 +case "(($ac_try" in
    1.34 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1.35 +  *) ac_try_echo=$ac_try;;
    1.36 +esac
    1.37 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    1.38 +  (eval "$ac_link") 2>conftest.er1
    1.39 +  ac_status=$?
    1.40 +  grep -v '^ *+' conftest.er1 >conftest.err
    1.41 +  rm -f conftest.er1
    1.42 +  cat conftest.err >&5
    1.43 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1.44 +  (exit $ac_status); } && {
    1.45 +	 test -z "$ac_c_werror_flag" ||
    1.46 +	 test ! -s conftest.err
    1.47 +       } && test -s conftest$ac_exeext &&
    1.48 +       $as_test_x conftest$ac_exeext; then
    1.49 +
    1.50 +                have_sem_timedwait=yes
    1.51 +                cat >>confdefs.h <<\_ACEOF
    1.52 +#define HAVE_SEM_TIMEDWAIT 1
    1.53 +_ACEOF
    1.54 +
    1.55 +
    1.56 +else
    1.57 +  echo "$as_me: failed program was:" >&5
    1.58 +sed 's/^/| /' conftest.$ac_ext >&5
    1.59 +
    1.60 +
    1.61 +fi
    1.62 +
    1.63 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    1.64 +      conftest$ac_exeext conftest.$ac_ext
    1.65 +                { echo "$as_me:$LINENO: result: $have_sem_timedwait" >&5
    1.66 +echo "${ECHO_T}$have_sem_timedwait" >&6; }
    1.67 +            fi
    1.68  
    1.69              { echo "$as_me:$LINENO: checking for pthread_spin_trylock" >&5
    1.70  echo $ECHO_N "checking for pthread_spin_trylock... $ECHO_C" >&6; }