autoconf
[Top][All Lists]
Advanced

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

Re: how to prefix definitions in config.h


From: Guido Draheim
Subject: Re: how to prefix definitions in config.h
Date: Tue, 19 Feb 2002 09:32:25 +0100

hello clinton,

may I ask what you are *really* trying to achieve?
Personally, I would like to depracate to prefix a config.h file
in place, even more if you would really install it along with
your library - I've seen to many include-order conflicts for
this case, so please don't do that.

Secondly, if I read your post well, then you try to modify a
file, but not twice, but want to rerun it. Am I confused?
Well, might be. Anyway, I don't expect things to be easy,
for the case that the input and output file are in the
same position.

Thirdly, you didn't mention that the ac-macro has a few
optional arguments, one being input-file, the other being
output-file, which you didn't mention again. What's
wrong with that, and if it is not sufficient, why didn't
you contact me?

Fourthly, so you try to add it to ac_config_commands,
hey I like that, I did not quite bother so far to add
the script to config.headers, so that the prefixing
can be run automatically as a dependency of a reconf.
But first, let's sort things out what you're really
trying to achieve.

cheers,
-- guido

Es schrieb Clinton Roy:
> 
> Hello all, I'm trying to mangle a config.h for a shared library, we'd
> like all the definitions in it to have the same prefix.
> 
> I've tried using AC_CREATE_PREFIX_CONFIG_H from
> http://www.gnu.org/software/ac-archive/Miscellaneous/ac_create_prefix_config_h.html
> 
> but it doesn't work so well when the input and the output file are the
> same.
> 
> I've got a simple sed command followed by a mv to do the prefixing
> for me, but I'm not sure how to get these commands run after config.h
> is created; AC_CONFIG_COMMANDS comes close, but config.status doesn't
> always run my commands, this is probably because I am using the wrong
> tag, but since I can't use the tag of config.h I'm stuck.
> 
> I've also tried AC_CONFIG_HEADERS, but automake complains:
> automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'
> 
> Any help appreciated.
> 
> autoconf 2.52
> automake 1.5d
> 
> --
> Clinton Roy
> 
> Meetings - ``Try, or no try; there is no do.''

-- guido                                    http://freespace.sf.net/guidod
GCS/E/S/P C++/++++$ ULHS L++w- N++@ d(+-) s+a- r+@>+++ y++ 5++X- (geekcode)



reply via email to

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