summaryrefslogtreecommitdiffstats
path: root/source4/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/process_model.m48
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/smbd/process_model.m4 b/source4/smbd/process_model.m4
index a7f6fb07931..93dfeddcef6 100644
--- a/source4/smbd/process_model.m4
+++ b/source4/smbd/process_model.m4
@@ -12,6 +12,7 @@ AC_ARG_WITH(pthreads,
yes)
AC_MSG_RESULT(yes)
SMB_MODULE_DEFAULT(process_model_thread,STATIC)
+ SMB_EXT_LIB_ENABLE(PTHREAD,YES)
;;
*)
AC_MSG_RESULT(no)
@@ -20,8 +21,9 @@ AC_ARG_WITH(pthreads,
AC_MSG_RESULT(no)
)
+SMB_EXT_LIB(PTHREAD,[-lpthread])
+
SMB_MODULE(process_model_thread,PROCESS_MODEL,NOT,
- [smbd/process_thread.o],[],[-lpthread])
+ [smbd/process_thread.o],[],[PTHREAD])
-SMB_SUBSYSTEM(PROCESS_MODEL,smbd/process_model.o,
- [],smbd/process_model_public_proto.h)
+SMB_SUBSYSTEM(PROCESS_MODEL,smbd/process_model.o)