From 7f0e97586eb85c26ed790456353c4f624fb5e107 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 11 Mar 1996 01:58:51 +0000 Subject: [PATCH] added SUDO_TIMEDIR --- aclocal.m4 | 15 +++++++++++++++ configure.in | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/aclocal.m4 b/aclocal.m4 index 3a8f4061c..042d40cfc 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -135,6 +135,21 @@ else fi ])dnl +dnl +dnl Where the log file goes, use /var/log if it exists, else /{var,usr}/adm +dnl +AC_DEFUN(SUDO_TIMEDIR, [AC_MSG_CHECKING(for timestamp file location) +if test -d "/var/run"; then + AC_MSG_RESULT(/var/run/.odus) + AC_DEFINE(_SUDO_PATH_TIMEDIR, "/var/run/.odus") +elif test -d "/tmp"; then + AC_MSG_RESULT(/tmp/.odus) + AC_DEFINE(_SUDO_PATH_TIMEDIR, "/tmp/.odus") +else + AC_MSG_RESULT(unknown, you will have to set _PATH_SUDO_TIMEDIR by hand) +fi +])dnl + dnl dnl check for shadow passwords dnl diff --git a/configure.in b/configure.in index 312b72d93..dcb0be309 100644 --- a/configure.in +++ b/configure.in @@ -515,9 +515,10 @@ if test -n "$SECURID" ; then fi dnl -dnl Check for log file location +dnl Check for log file and timestamp locations dnl SUDO_LOGFILE +SUDO_TIMEDIR dnl dnl Set exec_prefix -- 2.40.0