Allow RUNDIR to be specified on command line

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3190 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2010-11-11 12:23:47 +00:00
parent 46d777398e
commit 3f1158c2a4
2 changed files with 4 additions and 0 deletions

2
configure vendored
View File

@ -9235,8 +9235,10 @@ _ACEOF
test "$prefix_NONE" && prefix=NONE
test "$exec_prefix_NONE" && exec_prefix=NONE
if test "$RUNDIR" == ""; then
RUNDIR="/var/run"
fi
ZM_RUNDIR="$RUNDIR/zm"
ZM_PID="$ZM_RUNDIR/zm.pid"

View File

@ -325,7 +325,9 @@ AC_PROG_PERL_MODULES(X10::ActiveHome,,AC_MSG_WARN(X10::ActiveHome is required fo
AC_DEFINE_DIR([BINDIR],[bindir],[Expanded binary directory])
AC_DEFINE_DIR([LIBDIR],[libdir],[Expanded library directory])
if test "$RUNDIR" == ""; then
AC_SUBST(RUNDIR,"/var/run")
fi
AC_SUBST(ZM_RUNDIR,"$RUNDIR/zm")
AC_SUBST(ZM_PID,"$ZM_RUNDIR/zm.pid")
AC_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Expanded configuration directory])