[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror
From: |
Eric Blake |
Subject: |
Re: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror |
Date: |
Tue, 29 Aug 2006 04:33:52 +0000 |
> ...
> > -], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)])
> > +]])], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)])
> > if test $ac_cv_header_stat_broken = yes; then
> > AC_DEFINE(STAT_MACROS_BROKEN, 1,
> > [Define to 1 if the `S_IS*' macros in <sys/stat.h> do not
>
> It looks like you got this logic backwards in the update. If all four test
> cases
> compile, we are now defining ac_cv_header_stat_broken to yes.
I'm checking in this patch, hopefully obvious:
2006-08-28 Eric Blake <address@hidden>
* lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
mistakenly swapped on 2006-08-15.
Index: lib/autoconf/headers.m4
===================================================================
RCS file: /sources/autoconf/autoconf/lib/autoconf/headers.m4,v
retrieving revision 1.51
diff -u -p -r1.51 headers.m4
--- lib/autoconf/headers.m4 15 Aug 2006 16:24:42 -0000 1.51
+++ lib/autoconf/headers.m4 29 Aug 2006 04:31:51 -0000
@@ -529,7 +529,7 @@ extern char c3[S_ISLNK (S_IFREG) ? -1 :
#if defined S_ISSOCK && defined S_IFREG
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
#endif
-]])], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)])
+]])], ac_cv_header_stat_broken=no, ac_cv_header_stat_broken=yes)])
if test $ac_cv_header_stat_broken = yes; then
AC_DEFINE(STAT_MACROS_BROKEN, 1,
[Define to 1 if the `S_IS*' macros in <sys/stat.h> do not