diff --git a/README.md b/README.md index 13d46f3..9a63584 100644 --- a/README.md +++ b/README.md @@ -122,11 +122,12 @@ files and cache files will also use that same prefix. Most users have come to expect those files in `/etc/` and `/var/run/` and configure has a few useful options that are recommended to use: - $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + $ ./configure --prefix=/usr --sysconfdir=/etc --runstatedir=/run $ make -j5 $ sudo make install-strip -You may want to remove the `--prefix=/usr` option. +You may want to remove the `--prefix=/usr` option. Most users prefer +non-distro binaries in `/usr/local` or `/opt`. Building from GIT @@ -154,6 +155,11 @@ installed on your system. GIT sources are a moving target and are not recommended for production systems, unless you know what you are doing! +**Note:** some systems may have an older, or a vanilla, version of the + GNU autoconf package that does not support `--runstatedir` (above). + Users on such systems are recommended to use `--localstatedir`, the + `$runstatedir` used by sysklogd is derived from that if missing. + Origin & References ------------------- diff --git a/configure.ac b/configure.ac index 4374f5f..941d1f1 100644 --- a/configure.ac +++ b/configure.ac @@ -112,6 +112,11 @@ SBINDIR=`eval echo $sbindir` SBINDIR=`eval echo $SBINDIR` AC_SUBST(SBINDIR) +# Workaround for as-of-yet unreleased runstatedir support, planned for +# autoconf 2.70, which some major distros have backported. +AS_IF([test -z "$runstatedir"], runstatedir="$localstatedir/run") +AC_SUBST(runstatedir) + AC_OUTPUT # Expand directories for configuration summary, unexpanded defaults: