Re: AC_HEADER_STDBOOL: checking for _Bool separately for C and C++

2012-08-28 Thread Mojca Miklavec
On Tue, Aug 28, 2012 at 9:01 PM, Paul Eggert wrote: > On 08/28/2012 11:47 AM, Mojca Miklavec wrote: >> What exactly is "the real problem" here? > > The real problem is that we're testing whether > stdbool.h works in C, and using that test to configure >

Re: AC_HEADER_STDBOOL: checking for _Bool separately for C and C++

2012-08-28 Thread Mojca Miklavec
On Tue, Aug 28, 2012 at 8:34 PM, Paul Eggert wrote: > On 08/28/2012 10:58 AM, Mojca Miklavec wrote: >> #if HAVE_STDBOOL_H >> # include >> #else >> # ifndef __cplusplus >> # if ! HAVE__BOOL >> typedef unsigned char _Bool; >> # endif >> #

Re: AC_HEADER_STDBOOL: checking for _Bool separately for C and C++

2012-08-28 Thread Mojca Miklavec
ng failure * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Drop gcc ... but this problem with weird bool/_Bool (re)definitions still prevents compiling on some platforms, most notably older Mac OS X and Solaris. Thank you very much, Mojca On Sun, Aug 26, 2012 at 2:47 PM, Mojca Miklavec wr

AC_HEADER_STDBOOL: checking for _Bool separately for C and C++

2012-08-26 Thread Mojca Miklavec
Hello, A sparc solaris user reported a _Bool-related problem to gnuplot tracker. Long story short: stdbool.h is absent, _Bool is defined in C, but not in C++. Current header file in gnuplot sources which is used both in C and C++ goes like # if ! HAVE__BOOL # ifdef __cplusplus typedef bool _Boo