Re: [PATCH] printf.m4: fix a bug in detecting printf %j support

2016-10-20 Thread Bruno Haible
> diff --git a/m4/printf.m4 b/m4/printf.m4 > index e495e0c..c7a14b2 100644 > --- a/m4/printf.m4 > +++ b/m4/printf.m4 > @@ -38,6 +38,8 @@ int main () >if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0 >|| strcmp (buf, "12345671 33") != 0) > result |= 1; > +#else > +

[PATCH] printf.m4: fix a bug in detecting printf %j support

2016-10-20 Thread Jim Meyering
Zev Weiss noticed that on a system with inadequate uintmax_t support, printf.m4's gl_PRINTF_SIZES_C99 might nonetheless declare "yes". This fixes it to handle that corner case. printf.m4: fix a bug in detecting printf %j support * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which uintm