configmake: support new --runstatedir option
authorEric Blake <eblake@redhat.com>
Thu, 12 Sep 2013 22:23:31 +0000 (16:23 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 23 Sep 2013 16:08:12 +0000 (10:08 -0600)
commitecac7ac53769f5363df8b98c5696cf7a40a25f82
tree16b191620a135b6a1a3b25efcd93905915f0b65b
parentb8c716101201c8f784c98b1fc574143a7b8d9955
configmake: support new --runstatedir option

http://lwn.net/Articles/436012/ documents that many distros
are now preferring to use /run rather than /var/run for
storage of pid files and other per-process temporary files
that must not be cleaned out during arbitrary TMPDIR sweeps.
As such, the GNU Coding Standards were recently changed to
recommend a new configure option to make it easy to choose
this directory at configure time, and autoconf 2.70 will
support the new directory by default.  This patch adds support
for propagating results of the new option (for new enough
autotools) or providing a sane default (for older autotools)
into C code.

* m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
even if autoconf was too old to provide the command line option.
* modules/configmake (Makefile.am): Propagate it to .h file.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/configmake.m4
modules/configmake