comparison configure.ac @ 419:d209b4846f2b

The pid files goes to /var/run/masqmail.pid now. Added --with-piddir. Now we can change the pid dir to /run on system that did this transition.
author markus schnalke <meillo@marmaro.de>
date Tue, 29 May 2012 21:35:17 +0200
parents 7fe36ba87598
children f37384470855
comparison
equal deleted inserted replaced
418:4cbaf6d6793f 419:d209b4846f2b
186 with_confdir='/etc/masqmail' 186 with_confdir='/etc/masqmail'
187 ) 187 )
188 AC_DEFINE_UNQUOTED(CONF_DIR, "${with_confdir}", [The configuration file location]) 188 AC_DEFINE_UNQUOTED(CONF_DIR, "${with_confdir}", [The configuration file location])
189 AC_SUBST(with_confdir) 189 AC_SUBST(with_confdir)
190 190
191 dnl dir for pid files
192 AC_ARG_WITH(piddir,
193 [ --with-piddir=DIR directory for pid files [/var/run]],
194 ,
195 with_piddir='/var/run'
196 )
197 AC_DEFINE_UNQUOTED(PID_DIR, "${with_piddir}", [The pid file location])
198 AC_SUBST(with_piddir)
199
191 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 200 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
192 201
193 dnl well, /me/ thought that autoconf should make things _easy_ ... -- oku 202 dnl well, /me/ thought that autoconf should make things _easy_ ... -- oku
194 dnl I needed the two `eval's to get the variable expanded in all cases -- meillo 203 dnl I needed the two `eval's to get the variable expanded in all cases -- meillo
195 dnl this is just horrible! -- meillo 204 dnl this is just horrible! -- meillo