From 651ca6553edadb2b97339fd3c112fdb6ef6c08bc Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 9 Mar 2006 17:48:41 +0000 Subject: r14079: I just found the setproctitle library from alt linux:-) - add set_title hook to the process models - use setproctitle library in process_model standard if available - the the title for the task servers and on connections metze (This used to be commit 526f20bbecc9bbd607595637c15fc4001d3f0c70) --- source4/smbd/process_model.m4 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source4/smbd/process_model.m4') diff --git a/source4/smbd/process_model.m4 b/source4/smbd/process_model.m4 index 673d5e5e2b..ea7373e4f7 100644 --- a/source4/smbd/process_model.m4 +++ b/source4/smbd/process_model.m4 @@ -24,3 +24,20 @@ AC_MSG_RESULT(no) ) SMB_EXT_LIB(PTHREAD,[-lpthread]) + +AC_CHECK_HEADERS(setproctitle.h) +AC_CHECK_LIB_EXT(setproctitle, SETPROCTITLE_LIBS, setproctitle) +AC_MSG_CHECKING(whether to use setproctitle) +if test x"$ac_cv_header_setproctitle_h" = x"yes" -a x"$ac_cv_lib_ext_setproctitle_setproctitle" = x"yes"; then + AC_MSG_RESULT(yes) + SMB_EXT_LIB_ENABLE(SETPROCTITLE,YES) + AC_DEFINE(HAVE_SETPROCTITLE,1,[Whether setproctitle() is available]) +else + AC_MSG_RESULT(no) +fi + +SMB_EXT_LIB(SETPROCTITLE, + [${SETPROCTITLE_LIBS}], + [${SETPROCTITLE_CFLAGS}], + [${SETPROCTITLE_CPPFLAGS}], + [${SETPROCTITLE_LDFLAGS}]) -- cgit