]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: support customization of runstatedir variable with old autoconf
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 20 Aug 2019 10:44:24 +0000 (11:44 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 27 Aug 2019 09:23:16 +0000 (10:23 +0100)
commit390997925a3aca1b57969526c3e083761fafe7c3
tree45447f4b0307edb4e1bb017cf6930a4e2f82f3fb
parentd29c917ef470a25149d1f3787ec494d006549f27
build: support customization of runstatedir variable with old autoconf

Many distros have moved /var/run to /run with the introduction of
systemd. /var/run still exists as a symlink to /run, but its usage
is deprecated.

autoconf added a --runstatedir option back in 2013 but there's still no
new release of autoconf that includes this.

gnulib meanwhile added support to propagate this arg's value to
configmake.h, but it falls back to $localstatedir/run for autoconf 2.69
and older, which is what every distro today has.

To deal with this problem we add a --with-runstatedir arg that then sets
the $runstatedir env variable that future autoconf's --runstatedir arg
will also use. This finally enables $runstatedir to be pointed to /run.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
configure.ac