From: Paul Eggert Date: Fri, 1 Dec 2023 17:58:37 +0000 (-0800) Subject: Be more conservative about cache timestamps X-Git-Tag: v2.72e~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49ab3a4c5756d7ef40b03111f4c8a351d6bca7b8;p=thirdparty%2Fautoconf.git Be more conservative about cache timestamps * bin/autom4te.in (up_to_date): Fix thinko by using the minimum of the cache files’ timestamps, not the maximum. --- diff --git a/bin/autom4te.in b/bin/autom4te.in index edc51fcfa..38a61ac91 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -948,11 +948,11 @@ sub up_to_date ($) return 0 if ! -f $tfile || ! -f $ofile; - # The younger of the cache files must be older than the oldest of - # the dependencies. + # Both cache files must be younger than all dependencies, + # so use the minimum of the two cache files' timestamps. my $tmtime = mtime ($tfile); my $omtime = mtime ($ofile); - my ($file, $mtime) = ($tmtime < $omtime + my ($file, $mtime) = ($omtime < $tmtime ? ($ofile, $omtime) : ($tfile, $tmtime)); # stdin is always out of date.