From 07a16b9d1e5a48550a0d19abb9a900853433ffa2 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 23 Jun 2012 07:05:14 +0200 Subject: build-sys: change --localstatedir to /run Enable user to define where run state files are wrote. Default for these files is /run. See reference for rationale why /var/run is no longer the default. Reference: http://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html CC: Mike Frysinger Signed-off-by: Sami Kerola --- configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 400576833..a86d42e53 100644 --- a/configure.ac +++ b/configure.ac @@ -60,6 +60,21 @@ NONE:NONE | NONE:/usr | /usr:*) esac ;; esac +case $prefix:$localstatedir in + NONE:'${prefix}/var') + localstatedir=/run + AC_MSG_NOTICE([ --localstatedir defaults to /run]) + ;; + *:'${prefix}/var') + localstatedir=${prefix}/run + ;; + NONE:*) + ;; + *:*) + localstatedir=${prefix}/${localstatedir} + ;; +esac + libdirname=`basename "$libdir"` AC_SUBST([libdirname]) -- cgit v1.2.3-55-g7522