Re: AC_HEADER_STDBOOL rejects valid C99 implementation

2006-05-14 Thread Paul Eggert
Fedor Sergeev of Sun pointed out that my analysis of (bool) -0.5 as an integer constant expression was incorrect, as the "-" isn't allowed in C99. I installed this fix into gnulib and coreutils (and a similar fix into autoconf). 2006-05-14 Paul Eggert <[EMAIL PROTECTED]> * stdbool.m4 (

Re: AC_HEADER_STDBOOL rejects valid C99 implementation

2006-05-10 Thread Bruno Haible
Paul Eggert wrote: > > So, _Bool and bool are _not_ integer types. > > No, because ISO C99 section 6.2.5 paragraph 6 says: > > The type _Bool and the unsigned integer types that correspond to the > standard signed integer types are the _standard unsigned integer types_. You're right. I overloo

Re: AC_HEADER_STDBOOL rejects valid C99 implementation

2006-05-10 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > ISO C 99, section 6.2.5 paragraph 17, defines the term "integer types": > > The type char, the signed and unsigned integer types, and the enumerated > types are collectively called integer types. > > So, _Bool and bool are _not_ integer types. No

AC_HEADER_STDBOOL rejects valid C99 implementation

2006-05-08 Thread Bruno Haible
Hi, The macro AC_HEADER_STDBOOL (in gnulib: in stdbool.m4, in autoconf-2.59c: in headers.m4) rejects valid 'bool' implementations. Seen with Sun C 5.9 ("c99 -Xa") for Linux/x86. The config.log contained: configure:30747: checking for stdbool.h that conforms to C99 configure:30806: /opt/sun/compi