From: Bruno Haible Date: Tue, 17 Mar 2026 21:48:47 +0000 (+0100) Subject: autoreconf: Fix recognition of autopoint versions 0.26 or newer. X-Git-Tag: v2.73~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=392e3701e591fa139eca4efb8ea44f48f1081ab8;p=thirdparty%2Fautoconf.git autoreconf: Fix recognition of autopoint versions 0.26 or newer. * bin/autoreconf.in (autoreconf_current_directory): In the regex that extracts the version number components from `autopoint --version`, mark the third component as optional. --- diff --git a/bin/autoreconf.in b/bin/autoreconf.in index b703dd026..65570cf89 100644 --- a/bin/autoreconf.in +++ b/bin/autoreconf.in @@ -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;