summaryrefslogtreecommitdiff
path: root/source4/smbd/process_model.m4
blob: a7f6fb0793107b96be7638a2d0523fde4df5c83d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
dnl # Server process model subsystem

SMB_MODULE(process_model_single,PROCESS_MODEL,STATIC,[smbd/process_single.o])
SMB_MODULE(process_model_standard,PROCESS_MODEL,STATIC,[smbd/process_standard.o])

#################################################
# 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)
		SMB_MODULE_DEFAULT(process_model_thread,STATIC)
	;;
	*)
		AC_MSG_RESULT(no)
	;;
  esac ],
AC_MSG_RESULT(no)
)

SMB_MODULE(process_model_thread,PROCESS_MODEL,NOT,
		[smbd/process_thread.o],[],[-lpthread])

SMB_SUBSYSTEM(PROCESS_MODEL,smbd/process_model.o,
		[],smbd/process_model_public_proto.h)