Hack around inconsistent pthread dep

This commit is contained in:
Ben "root" Anderson
2014-01-21 22:58:52 -06:00
parent 2164320354
commit b1883f06c1
+5
View File
@@ -328,6 +328,11 @@ AC_CHECK_LIB( pthread, pthread_mutex_timedlock, AC_DEFINE([HAVE_PTHREAD_MUTEX_TI
AC_CHECK_LIB( pthread, pthread_cond_timedwait, AC_DEFINE([HAVE_PTHREAD_COND_TIMEDWAIT],1,[pthreads has pthread_cond_timedwait()]) )
fi
# XXX: This isn't always being included when it is needed. Just force it in.
if test "$have_pthread" = "yes"; then
LIBS="$LIBS -lpthread"
fi
AM_CONDITIONAL(HAVE_PTHREAD, test "$have_pthread" = "yes")
# Always: