Fix #6: Add workaround for systems with vanilla/older autoconf
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
87cef2d268
commit
0e6c141f4f
10
README.md
10
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
|
||||
-------------------
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user