diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/configure.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in index fc925ee736..0796ff2d7d 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -6059,6 +6059,9 @@ AC_ARG_ENABLE(pthreadpool, [AS_HELP_STRING([--enable-pthreadpool], [Enable pthreads pool helper support (default=auto)])]) if test x"$enable_pthreadpool" != x"no" -a x"$samba_cv_HAVE_PTHREAD" = x"yes"; then + AC_TRY_LINK([#include "pthread.h"], + [pthread_create(NULL, NULL, NULL, NULL)], + ,LIBS="$LIBS -lpthread") AC_DEFINE(WITH_PTHREADPOOL, 1, [Whether to include pthreadpool helpers]) AC_SUBST(PTHREADPOOL_OBJ, "lib/pthreadpool.o") fi |