From: Paolo Bonzini Date: Thu, 9 Apr 2009 21:14:27 +0000 (+0200) Subject: Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL. X-Git-Tag: v2.64~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc5c85a6b288df184081051c45a0569e1e8fcae2;p=thirdparty%2Fautoconf.git Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL. * lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume not crosscompiling to an obsolete system. --- diff --git a/ChangeLog b/ChangeLog index 95c024c74..f9bd856a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-04-09 Paolo Bonzini + + Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL. + * lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume + not crosscompiling to an obsolete system. + 2009-04-08 Ralf Wildenhues Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro. diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4 index aaf961b56..e8ec0add3 100644 --- a/lib/autoconf/functions.m4 +++ b/lib/autoconf/functions.m4 @@ -1757,8 +1757,9 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT && t.st_mtime - s.st_mtime < 120);]])], ac_cv_func_utime_null=yes, ac_cv_func_utime_null=no, - ac_cv_func_utime_null=no)]) -if test $ac_cv_func_utime_null = yes; then + ac_cv_func_utime_null='guessing yes')]) +if test "x$ac_cv_func_utime_null" != xno; then + ac_cv_func_utime_null=yes AC_DEFINE(HAVE_UTIME_NULL, 1, [Define to 1 if `utime(file, NULL)' sets file's timestamp to the present.])