]> git.ipfire.org Git - thirdparty/autoconf.git/commit
autoreconf: require word boundaries when grepping for macros (#111271)
authorZack Weinberg <zack@owlfolio.org>
Tue, 27 Jan 2026 21:00:08 +0000 (16:00 -0500)
committerZack Weinberg <zack@owlfolio.org>
Tue, 27 Jan 2026 21:25:54 +0000 (16:25 -0500)
commit912567e9675e935d6368f5d527da397839253f55
tree54cfe9e5b3b0c6563a3d4721700e166e6b59f28b
parent16de3c26a54dced1d1ef548de7bd4aa45ea2a773
autoreconf: require word boundaries when grepping for macros (#111271)

autoreconf’s first pass over configure.ac is effectively a grep
operation for a number of macros that almost always appear directly
in that file, if they’re going to appear at all.  All but one of the
regular expressions made no attempt to check for word boundaries, and
the one that did was doing it incorrectly (using ^ rather than \b),
leading to issue #111271.

Fix all the regexps to surround each identifier with \b…\b and not
to use ^.

Reported by Kip, originally as gettext bug #52424.

* bin/autoreconf.in (autoreconf_current_directory): In the first pass,
  require each of the macros we look for to be a complete word.
bin/autoreconf.in