Mercurial > masqmail
diff configure @ 421:f37384470855
Changed lockdir to /var/lock/masqmail; Create lockdir and piddir on startup.
Moved the lockdir out of the spool dir. (When /var/lock is a ramdisk
we do well to have the lock files there.) Added the new configure option
--with-lockdir to change that location. Nontheless, if we run_as_user,
then lock files are always stored in the spool dir directly.
Instead of installing the lockdir and piddir at installation time, we
create them on startup time now if they are missing. This is necessary
if lockdir or piddir are a tmpfs.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 30 May 2012 09:38:38 +0200 |
parents | d209b4846f2b |
children | bdbedce60247 |
line wrap: on
line diff
--- a/configure Tue May 29 22:15:55 2012 +0200 +++ b/configure Wed May 30 09:38:38 2012 +0200 @@ -606,6 +606,7 @@ am__EXEEXT_TRUE LTLIBOBJS LIBOBJS +with_lockdir with_piddir with_confdir with_spooldir @@ -717,6 +718,7 @@ with_spooldir with_confdir with_piddir +with_lockdir ' ac_precious_vars='build_alias host_alias @@ -1364,6 +1366,7 @@ --with-spooldir=DIR set spool directory /var/spool/masqmail --with-confdir=DIR directory for configuration /etc/masqmail --with-piddir=DIR directory for pid files /var/run + --with-lockdir=DIR directory for lock files /var/lock/masqmail Some influential environment variables: CC C compiler command @@ -5310,6 +5313,22 @@ + +# Check whether --with-lockdir was given. +if test "${with_lockdir+set}" = set; then : + withval=$with_lockdir; +else + with_lockdir='/var/lock/masqmail' + +fi + + +cat >>confdefs.h <<_ACEOF +#define LOCK_DIR "${with_lockdir}" +_ACEOF + + + test "x$prefix" = xNONE && prefix="$ac_default_prefix"