From: Karl Berry Date: Thu, 2 Nov 2023 01:03:36 +0000 (-0700) Subject: doc: references for non-fractional timestamps. X-Git-Tag: v1.16i~22 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=581e0ae40ffeb3702e04825bdfe71e4492eafd6f;p=thirdparty%2Fautomake.git doc: references for non-fractional timestamps. The non-fractional fix from Bogdan fixes https://bugs.gnu.org/64756, discussed earlier in a long thread on automake in 2023-03 and 2023-04; references in the bug. Jacob Bachmeyer contributed to the analysis and fixes. * m4/sanity.m4: --- diff --git a/m4/sanity.m4 b/m4/sanity.m4 index 445d1fb80..dbc8d9fdb 100644 --- a/m4/sanity.m4 +++ b/m4/sanity.m4 @@ -15,9 +15,9 @@ AS_IF([sleep 0.001 2>/dev/null], [am_cv_sleep_fractional_seconds=true], [am_cv_s # _AM_FILESYSTEM_TIMESTAMP_RESOLUTION # ----------------------------------- -# Determine the filesystem timestamp resolution. Modern systems are nanosecond -# capable, but historical systems could have millisecond, second, or even -# 2-second resolution. +# Determine the filesystem timestamp resolution. Modern systems are +# nanosecond capable, but historical systems could have millisecond, +# second, or even 2-second resolution. AC_DEFUN([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION], [dnl AC_REQUIRE([_AM_SLEEP_FRACTIONAL_SECONDS]) # @@ -27,8 +27,11 @@ AC_REQUIRE([_AM_SLEEP_FRACTIONAL_SECONDS]) # More info: long thread around # https://lists.gnu.org/archive/html/automake/2023-04/msg00002.html # and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64756. +# By the way, we cannot use Perl to see if %INC{q[Time/HiRes.pm]} is +# defined, because Time::HiRes might get pulled in from other system +# modules even when not used directly. (An idea suggested in that thread.) AC_PATH_PROG([AUTOM4TE], [autom4te]) -if test x"$autom4te_perllibdir" = x; then +if test x"$autom4te_perllibdir = x; then autom4te_perllibdir=`sed -n \ '/autom4te_perllibdir/{s/^.*|| //;s/;$//;s/^.//;s/.$//;p;q}' <$AUTOM4TE` fi