diff options
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in index 4ed9e68d0d..fc925ee736 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -5895,7 +5895,9 @@ else fi AC_CHECK_LIB(pthread, pthread_mutex_lock, [WINBIND_NSS_PTHREAD="-lpthread" - AC_DEFINE(HAVE_PTHREAD, 1, [whether pthread exists])]) + AC_DEFINE(HAVE_PTHREAD, 1, [whether pthread exists]) + samba_cv_HAVE_PTHREAD=yes], + samba_cv_HAVE_PTHREAD=no) AC_SUBST(WINBIND_NSS_PTHREAD) AC_SUBST(WINBIND_NSS) @@ -6051,6 +6053,17 @@ if test x"$enable_avahi" != x"no"; then fi ################################################# +# Check if user wants pthreadpool support + +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_DEFINE(WITH_PTHREADPOOL, 1, [Whether to include pthreadpool helpers]) + AC_SUBST(PTHREADPOOL_OBJ, "lib/pthreadpool.o") +fi + +################################################# # Check to see if we should use the included iniparser AC_ARG_WITH(included-iniparser, |