bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HAVE_STDBOOL_H, AC_HEADER_STDBOOL, and AM_STDBOOL_H


From: Eric Blake
Subject: Re: HAVE_STDBOOL_H, AC_HEADER_STDBOOL, and AM_STDBOOL_H
Date: Mon, 31 Jan 2011 16:55:53 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

[dropping autoconf]

On 01/31/2011 04:47 PM, Paul Eggert wrote:
> The gnulib stdbool module currently arranges to #define HAVE_STDBOOL_H if 
> necessary,
> but this symbol is never used.  This is confusing people who port Emacs
> to systems that don't run 'configure', and I'd like to remove HAVE_STDBOOL_H
> from Emacs's src/config.in file.
> 
> HAVE_STDBOOL_H is defined by Autoconf's AC_HEADER_STDBOOL (and thus by 
> gnulib's,
> for compatibility with Autoconf).  The only gnulib macro that uses 
> AC_HEADER_STDBOOL
> is gnulib's AM_STDBOOL_H; the latter name is curious, as it implies that the 
> macro
> belongs to Automake, but it's a gnulib macro.

Actually, you also need to be careful with the gnulib file
tests/test-stdbool.h, which uses HAVE_STDBOOL_H as a pseudo-witness of
whether _Bool is a compiler built-in type (since some of the things we
test for are not possible with the replacement header).  I gather that
emacs is not using gnulib's test directory, but other projects are, so
HAVE_STDBOOL_H is still needed in those cases.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]