r6226: A couple of small typos ...
[Samba/gebeck_regimport.git] / source4 / smbd / process_model.m4
blob94ef6f13d2b781680fa3ed47802bbda8f8905cfd
1 dnl # Server process model subsystem
3 SMB_MODULE_DEFAULT(process_model_thread,NOT)
5 #################################################
6 # check for pthread support
7 AC_MSG_CHECKING(whether to use pthreads)
8 AC_ARG_WITH(pthreads,
9 [  --with-pthreads              Include pthreads (default=no) ],
10 [ case "$withval" in
11         yes)
12                 AC_MSG_RESULT(yes)
13                 if test x"$ac_cv_func_pread" != x"yes" -o x"$ac_cv_func_pwrite" != x"yes";then
14                         AC_MSG_ERROR([You cannot enable threads when you don't have pread/pwrite!])
15                 fi
16                 SMB_MODULE_DEFAULT(process_model_thread,STATIC)
17                 SMB_EXT_LIB_ENABLE(PTHREAD,YES)
18         ;;
19         *)
20                 AC_MSG_RESULT(no)
21         ;;
22   esac ],
23 AC_MSG_RESULT(no)
26 SMB_EXT_LIB(PTHREAD,[-lpthread])