]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.
authorPaolo Bonzini <bonzini@gnu.org>
Thu, 9 Apr 2009 21:14:27 +0000 (23:14 +0200)
committerPaolo Bonzini <bonzini@gnu.org>
Thu, 9 Apr 2009 21:14:27 +0000 (23:14 +0200)
* lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
not crosscompiling to an obsolete system.

ChangeLog
lib/autoconf/functions.m4

index 95c024c74a48b5a9c6d69ee7052df4a208811916..f9bd856a65f1bcc3d1efecf4efb8d7be33d83ea9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
+
+       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  <Ralf.Wildenhues@gmx.de>
 
        Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.
index aaf961b5652c27f6c8f024d6aab6bf41662b146c..e8ec0add3188e5b6fb80cf0c6c4456880b679ced 100644 (file)
@@ -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.])