[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new config-h module, to remove the need for -DHAVE_CONFIG_H
From: |
Eric Blake |
Subject: |
Re: new config-h module, to remove the need for -DHAVE_CONFIG_H |
Date: |
Mon, 28 Aug 2006 06:55:21 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Paul Eggert on 8/26/2006 12:43 AM:
> I installed this into gnulib, and will install the corresponding
> coreutils patch in a few minutes.
>
> The basic idea is that source files should include config.h
> unconditionally, so that we needn't clutter "make" output with
> -DHAVE_CONFIG_H.
>
> * gnulib-tool (nl, sed_transform_lib_file): New vars.
> (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
> the config-h module is used.
This doesn't work for the argz module, which uses "#if
defined(HAVE_CONFIG_H)" from upstream libtool. And projects using libtool
also have this issue with lt__alloc.c. Maybe the libtool headers need to
be tweaked a bit?
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE8ue584KuGfSFAYARAl4YAJ4uXQQ2r4tF2WBpvp3fVKFK6qAL8QCeJKiz
FBmHCVIftgMMU0Fs+2dysrA=
=6pUB
-----END PGP SIGNATURE-----