From 3e0915f2712a966f14ac0f7bc9fb24b6ed95d284 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 6 Jan 2011 12:33:44 +0100 Subject: s3: Make nmbd socket dir configurable Autobuild-User: Volker Lendecke Autobuild-Date: Fri Jan 7 14:14:19 CET 2011 on sn-devel-104 --- source3/m4/check_path.m4 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source3/m4/check_path.m4') diff --git a/source3/m4/check_path.m4 b/source3/m4/check_path.m4 index 3683802964..f04e6f89c0 100644 --- a/source3/m4/check_path.m4 +++ b/source3/m4/check_path.m4 @@ -19,6 +19,7 @@ rootsbindir="\${SBINDIR}" lockdir="\${VARDIR}/locks" piddir="\${VARDIR}/locks" ncalrpcdir="\${VARDIR}/ncalrpc" +nmbdsocketdir="${lockdir}/.nmbd" test "${mandir}" || mandir="\${prefix}/man" logfilebase="\${VARDIR}" privatedir="\${prefix}/private" @@ -165,6 +166,22 @@ AC_ARG_WITH(ncalrpcdir, ;; esac]) +################################################# +# set nmbd socket directory location +AC_ARG_WITH(nmbdsocketdir, +[AS_HELP_STRING([--with-nmbdsocketdir=DIR], [Where to put the nmbd socket directory (${lockdir}/.nmbd)])], +[ case "$withval" in + yes|no) + # + # Just in case anybody calls it without argument + # + AC_MSG_WARN([--with-nmbdsocketdir called without argument - will use default]) + ;; + * ) + nmbdsocketdir="$withval" + ;; + esac]) + ################################################# # set SWAT directory location AC_ARG_WITH(swatdir, @@ -298,6 +315,7 @@ AC_ARG_WITH(codepagedir, AC_SUBST(configdir) AC_SUBST(lockdir) AC_SUBST(piddir) +AC_SUBST(nmbdsocketdir) AC_SUBST(ncalrpcdir) AC_SUBST(logfilebase) AC_SUBST(privatedir) -- cgit