[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: touch gets stuck for named pipes
From: |
Paolo Bonzini |
Subject: |
Re: touch gets stuck for named pipes |
Date: |
Thu, 09 Apr 2009 19:05:18 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Macintosh/20090302) |
> This is the main problem: autoconf guessed wrong. The AC_FUNC_UTIME_NULL macro
> is already obsolete for 3 years:
>
> -- Macro: AC_FUNC_UTIME_NULL
> If `utime (FILE, NULL)' sets FILE's timestamp to the present,
> define `HAVE_UTIME_NULL'.
>
> This macro is obsolescent, as all current systems have a `utime'
> that behaves this way. New programs need not use this macro.
I think that then _this_ is the cross-compilation default to be fixed.
Ok?
Paolo
2009-04-09 Paolo Bonzini <address@hidden>
* lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
not crosscompiling to an obsolete system.
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index aaf961b..3967d43 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -1757,7 +1757,7 @@ 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)])
+ ac_cv_func_utime_null=yes)])
if test $ac_cv_func_utime_null = yes; then
AC_DEFINE(HAVE_UTIME_NULL, 1,
[Define to 1 if `utime(file, NULL)' sets file's timestamp to the
- Re: touch gets stuck for named pipes, Pádraig Brady, 2009/04/09
- Re: touch gets stuck for named pipes, Andreas Schwab, 2009/04/09
- Re: touch gets stuck for named pipes, Bruno Haible, 2009/04/09
- Re: touch gets stuck for named pipes, Paul Eggert, 2009/04/09
- Re: touch gets stuck for named pipes,
Paolo Bonzini <=
- Re: touch gets stuck for named pipes, Eric Blake, 2009/04/09
- Re: touch gets stuck for named pipes, Jim Meyering, 2009/04/09
- Re: touch gets stuck for named pipes, Paolo Bonzini, 2009/04/09
- Re: touch gets stuck for named pipes, Bruno Haible, 2009/04/09
- Re: touch gets stuck for named pipes, Paolo Bonzini, 2009/04/10
- Re: touch gets stuck for named pipes, Jim Meyering, 2009/04/10
- Re: touch gets stuck for named pipes, Bruno Haible, 2009/04/10