From 19a05bf2f485023b11b41dfae3f6459847d55ef7 Mon Sep 17 00:00:00 2001 From: Steven Danneman Date: Thu, 8 Jan 2009 11:18:13 -0800 Subject: Make STATEDIR and CACHEDIR configurable through ./configure and loadparm.c If they are not explicitely set in either place both will default to LOCKDIR. Signed-off-by: Michael Adam --- source3/m4/check_path.m4 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'source3/m4') diff --git a/source3/m4/check_path.m4 b/source3/m4/check_path.m4 index da6c922233..444ea1c401 100644 --- a/source3/m4/check_path.m4 +++ b/source3/m4/check_path.m4 @@ -101,6 +101,38 @@ AC_ARG_WITH(lockdir, ;; esac]) +################################################# +# set state directory location +AC_ARG_WITH(statedir, +[AS_HELP_STRING([--with-statedir=DIR], [Where to put persistent state files ($ac_default_prefix/var/locks)])], +[ case "$withval" in + yes|no) + # + # Just in case anybody calls it without argument + # + AC_MSG_WARN([--with-statedir called without argument - will use default]) + ;; + * ) + statedir="$withval" + ;; + esac]) + +################################################# +# set cache directory location +AC_ARG_WITH(cachedir, +[AS_HELP_STRING([--with-cachedir=DIR], [Where to put temporary cache files ($ac_default_prefix/var/locks)])], +[ case "$withval" in + yes|no) + # + # Just in case anybody calls it without argument + # + AC_MSG_WARN([--with-cachedir called without argument - will use default]) + ;; + * ) + cachedir="$withval" + ;; + esac]) + ################################################# # set pid directory location AC_ARG_WITH(piddir, -- cgit