automake
[Top][All Lists]
Advanced

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

Re: installing config.h


From: Bruce Korb
Subject: Re: installing config.h
Date: Wed, 04 Sep 2002 10:26:47 -0700

Thien-Thi Nguyen wrote:
> 
> Thien-Thi Nguyen <address@hidden> writes (imprecisely):
> 
>    you can process the headers on install.
> 
> sorry, i forgot to emphasize: the headers processed are those other than
> config.h -- the horrible approach described does not require you to install
> config.h.  (did i mention that this approach is very much Not Recommended but
> only posted for let-us-learn-from-this-foolish-example-of-badness reasons? :-)

This is probably a better kludge:

http://ac-archive.sf.net/Miscellaneous/ac_create_prefix_config_h.html

You run the AC_CREATE_PREFIX_CONFIG_H after AC_OUTPUT(...).
You will now have a file named, ``$project-config.h''.
Use these project-name prefixed defines in your code and
you can go ahead and install $project-config.h.




reply via email to

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