diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-02-02 13:43:03 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2004-02-02 13:43:03 +0000 |
commit | c61089219b82ff94f83e1fb428e8b47ad778c868 (patch) | |
tree | 2109fd566da9e1492a03c817cf83c71b2140ce52 /source4/smbd/process_model.m4 | |
parent | 894e02f80c254da4edca5dbae99561d205c63fbe (diff) | |
download | samba-c61089219b82ff94f83e1fb428e8b47ad778c868.tar.gz samba-c61089219b82ff94f83e1fb428e8b47ad778c868.tar.bz2 samba-c61089219b82ff94f83e1fb428e8b47ad778c868.zip |
- we now specify the object files in the subsystems config.m4 file
I plan to convert all objectfile group to use SMB_SUBSYSTEM
later I'll add a SMB_BINARY() and SMB_LIBRARY(), then there will be no more need
to touch Makefile.in, because all make rules will be autogenerated by configure
- convert the PROCESS_MODEL subsystem to this new scheme
and move the pthread test to smbd/process_model.m4
- convert the CHARSET subsystem to this new scheme
and move the iconv test to lib/iconv.m4
(This used to be commit 2e57ee884ebea194ee79ac20e84e385481b56aa2)
Diffstat (limited to 'source4/smbd/process_model.m4')
-rw-r--r-- | source4/smbd/process_model.m4 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/source4/smbd/process_model.m4 b/source4/smbd/process_model.m4 new file mode 100644 index 0000000000..a7f6fb0793 --- /dev/null +++ b/source4/smbd/process_model.m4 @@ -0,0 +1,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) |