mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
bd0e2417e1
metze
(This used to be commit c0269d294e
)
32 lines
930 B
Plaintext
32 lines
930 B
Plaintext
dnl # Server process model subsystem
|
|
|
|
SMB_MODULE_MK(process_model_single,PROCESS_MODEL,STATIC,smbd/process_model.mk)
|
|
SMB_MODULE_MK(process_model_standard,PROCESS_MODEL,STATIC,smbd/process_model.mk)
|
|
|
|
#################################################
|
|
# check for pthread support
|
|
AC_MSG_CHECKING(whether to use pthreads)
|
|
AC_ARG_WITH(pthreads,
|
|
[ --with-pthreads Include pthreads (default=no) ],
|
|
[ case "$withval" in
|
|
yes)
|
|
AC_MSG_RESULT(yes)
|
|
if test x"$ac_cv_func_pread" != x"yes" -o x"$ac_cv_func_pwrite" != x"yes";then
|
|
AC_MSG_ERROR([You cannot enable threads when you don't have pread/pwrite!])
|
|
fi
|
|
SMB_MODULE_DEFAULT(process_model_thread,STATIC)
|
|
SMB_EXT_LIB_ENABLE(PTHREAD,YES)
|
|
;;
|
|
*)
|
|
AC_MSG_RESULT(no)
|
|
;;
|
|
esac ],
|
|
AC_MSG_RESULT(no)
|
|
)
|
|
|
|
SMB_EXT_LIB(PTHREAD,[-lpthread])
|
|
|
|
SMB_MODULE_MK(process_model_thread,PROCESS_MODEL,NOT,smbd/process_model.mk)
|
|
|
|
SMB_SUBSYSTEM_MK(PROCESS_MODEL,smbd/process_model.mk)
|