On 08/10/2016 03:05 PM, Manuel López-Ibáñez wrote:
> On 10 August 2016 at 14:40, ayush goel <ayushgoel1...@gmail.com> wrote:
>> On 9 August 2016 at 2:20:59 PM, Pedro Alves (pal...@redhat.com) wrote:
>>> the scheme of configuring gnulib in a separate directory as borrowed from 
>>> gdb
>>> requires including two config.h headers -- the gnulib client's, and 
>>> gnulib's.
> 
> Isn't this also true for libiberty's config.h ? I have no idea
> when/how is that included.

Nope.  For libiberty, the current scheme is that all clients of libiberty
duplicate the necessary autoconf checks on their own, so the client's
config.h file ends up with a copy the necessary HAVE_FOOs.

For libiberty, I've tried to factor out the autoconf checks, here:

 https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00580.html

Ended up being gdb-only:

 https://gcc.gnu.org/ml/gcc-patches/2015-02/msg01712.html

src/intl takes yet another approach.  See src/intl/config.intl.in.

Thanks,
Pedro Alves

Reply via email to