]> git.ipfire.org Git - thirdparty/autoconf.git/commit
doc: mention how to set early defaults
authorEric Blake <eblake@redhat.com>
Thu, 5 Sep 2013 20:14:55 +0000 (14:14 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 5 Sep 2013 20:56:45 +0000 (14:56 -0600)
commitbefa52738c41e126cb9a5a7d4523912ed68b4e3a
tree12650f677751213180bfd82a1c14f77b14b907df
parent63f3c78cdb0ccc85751543e387ef2a7252d5f0a2
doc: mention how to set early defaults

Jonathan Lebon reported an issue to me off-list about a regression
in libvirt's configure script, which I traced to a patch that
rearranged code that was checking $with_library compared to the
AC_ARG_WITH that actually set $with_library [1].  As the whole point
of the libvirt patch was to refactor code to make maintenance
easier by hiding the AC_ARG_WITH in a helper macro for a net
reduction in lines, it makes sense to actually document how to
check what value a variable has prior to the AC_ARG_WITH usage.

Alas, although the functionality for this has been present in
autoconf for ages, the documentation has been lacking.

[1] libvirt.org/git/?p=libvirt.git;a=commitdiff;h=654c709

* doc/autoconf.texi (Diversion support) <m4_divert_text>: Add
anchor.
(External Software) <AC_ARG_WITH>: Demonstrate how to use DEFAULTS
diversion, for earlier defaults.
(Package Options) <AC_ARG_ENABLE>: Likewise.
* THANKS: Add Jonathan Lebon.

Signed-off-by: Eric Blake <eblake@redhat.com>
THANKS
doc/autoconf.texi