summaryrefslogtreecommitdiffstats
path: root/src/configure.in
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2014-02-05 10:59:46 -0500
committerGreg Hudson <ghudson@mit.edu>2014-02-06 16:17:27 -0500
commit1e4bdcfed2c7bda94d5c135cc32a5993ca032501 (patch)
treed4a0a8ee96b73ad78152e1219183eb2787493897 /src/configure.in
parent53cfb8327c452bd72a8e915338fb5ec838079cd3 (diff)
downloadkrb5-1e4bdcfed2c7bda94d5c135cc32a5993ca032501.tar.gz
krb5-1e4bdcfed2c7bda94d5c135cc32a5993ca032501.tar.xz
krb5-1e4bdcfed2c7bda94d5c135cc32a5993ca032501.zip
Move OTP sockets to KDC_RUN_DIR
Some system configurations expect Unix-domain sockets to live under /run or /var/run, and not other parts of /var where persistent application state lives. Define a new directory KDC_RUN_DIR using $runstatedir (new in autoconf 2.70, so fall back to $localstatedir/run if it's not set) and use that for the default socket path. [ghudson@mit.edu: commit message, otp.rst formatting fix] ticket: 7859 (new)
Diffstat (limited to 'src/configure.in')
-rw-r--r--src/configure.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configure.in b/src/configure.in
index 2145d54476..c2eaf78d83 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,5 +1,11 @@
K5_AC_INIT([aclocal.m4])
+# If $runstatedir isn't set by autoconf (<2.70), set it manually.
+if test x"$runstatedir" == x; then
+ runstatedir=$localstatedir/run
+fi
+AC_SUBST(runstatedir)
+
CONFIG_RULES
KRB5_VERSION=K5_VERSION
AC_SUBST(KRB5_VERSION)