]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
autoreconf: Fix recognition of autopoint versions 0.26 or newer.
authorBruno Haible <bruno@clisp.org>
Tue, 17 Mar 2026 21:48:47 +0000 (22:48 +0100)
committerZack Weinberg <zack@owlfolio.org>
Wed, 18 Mar 2026 13:15:05 +0000 (09:15 -0400)
* bin/autoreconf.in (autoreconf_current_directory): In the regex that
extracts the version number components from `autopoint --version`, mark
the third component as optional.

bin/autoreconf.in

index b703dd02626eaf1ade60c0e820b37fde2adbf846..65570cf892f0d2dbc3db3cfb7f59ba5d6eb70a90 100644 (file)
@@ -601,7 +601,7 @@ sub autoreconf_current_directory ($)
               # "PROGRAM_NAME (GNU PACKAGE_NAME) MAJ.MIN[.PTC][ETC]"
               # where MAJ, MIN, and PTC are sequences of digits,
               # and [...] indicates an optional component.
-              if ($ap_ver[0] =~ /^ .*?\) \s+ (\d+) \. (\d+) (?:\.(\d+)) /x)
+              if ($ap_ver[0] =~ /^ .*?\) \s+ (\d+) \. (\d+) (?:\.(\d+))? /x)
                 {
                   my $maj = $1;
                   my $min = $2;