Skip to content
Permalink
Browse files

Updated configure after removing pthread spinlock support

  • Loading branch information
slouken committed Jul 8, 2014
1 parent 8077bf3 commit ef39d1d1ff70868189856c6d37872d66aa2f5a2e
Showing with 0 additions and 37 deletions.
  1. +0 −37 configure
$as_echo "$have_sem_timedwait" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spin_trylock" >&5
$as_echo_n "checking for pthread_spin_trylock... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char pthread_spin_trylock ();
int
main ()
{
return pthread_spin_trylock ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

has_pthread_spin_trylock=yes

$as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h


else

has_pthread_spin_trylock=no

fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_spin_trylock" >&5
$as_echo "$has_pthread_spin_trylock" >&6; }

ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
"
if test "x$ac_cv_header_pthread_np_h" = xyes; then :

0 comments on commit ef39d1d

Please sign in to comment.