* Upgrade to libevent-2.1.3-alpha-dev.
+* [Bug 2572] cross-compiling fails for --with-yielding-select.
(4.2.7p429) 2014/03/03 Released by Harlan Stenn <stenn@ntp.org>
* CID 1165098: Remove logically dead code from refclock_true.c.
* CID 1189401: Use INSIST() instead of a belt-and-suspenders pointer check.
# check if we can compile with pthreads
have_pthreads=no
if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
- ACX_PTHREAD([
- AC_DEFINE(HAVE_PTHREADS, 1,
- [Define if we have pthreads on this system])
- have_pthreads=yes])
- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
- AC_CHECK_SIZEOF(pthread_t, ,
- [AC_INCLUDES_DEFAULT()
- #include <pthread.h> ]
- )
+ OL_THREAD_CHECK([
+ have_pthreads=yes
+ PTHREAD_LIBS="$LTHREAD_LIBS"
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+ AC_CHECK_SIZEOF(
+ [pthread_t],
+ [],
+ [
+ AC_INCLUDES_DEFAULT()
+ #include <pthread.h>
+ ]
+ )
+ ])
fi
-AM_CONDITIONAL(PTHREADS, [test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"])
+AC_SUBST([PTHREAD_LIBS])
+AC_SUBST([PTHREAD_CFLAGS])
+AM_CONDITIONAL([PTHREADS], [test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"])
# check if we should compile locking into the library
if test x$enable_thread_support = xno; then
dnl ----------------------------------------------------------------
dnl Threads?
ol_link_threads=no
-ol_with_yielding_select=${ol_with_yielding_select:-auto}
+dnl ol_with_yielding_select=${ol_with_yielding_select:-auto}
+OL_ARG_WITH(yielding-select,[ --with-yielding-select with yielding select],
+ auto, [auto yes no manual] )
case $ol_with_threads in auto | yes | nt)
}]])],[ol_cv_pthread_select_yields=no],[ol_cv_pthread_select_yields=yes],[ol_cv_pthread_select_yields=cross])])
if test $ol_cv_pthread_select_yields = cross ; then
- AC_MSG_ERROR([crossing compiling: use --with-yielding_select=yes|no|manual])
+ AC_MSG_ERROR([crossing compiling: use --with-yielding-select=yes|no|manual])
fi
if test $ol_cv_pthread_select_yields = yes ; then