[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: config headers and #undefs
From: |
Akim Demaille |
Subject: |
Re: config headers and #undefs |
Date: |
08 Mar 2001 17:14:11 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) |
Kevin Ryde <address@hidden> writes:
> I'm using AM_CONFIG_HEADER to insert a couple of configure-time
> defines into headers which will be installed. This works well, except
> that I want to have one literal #undef pass through, rather than be
> commented out like normally happens.
>
> Perhaps a special marker could stop selected #undef's from getting
> transformed, for instance,
>
> #define __need_size_t
> #include <stddef.h>
> #undef __need_size_t /*NOTATEMPLATE*/
This is typically what should happen in config.h. config.h is
strictly equivalent to a series of -D flags passed to the compiler.
Anything else, such as including a header, belongs to system.h.
Really, unless I misunderstood something, you are getting out of the
Autoconf model.