Es schrieb Russ Allbery: > > Clinton Roy <[EMAIL PROTECTED]> writes: > > Guido Draheim <[EMAIL PROTECTED]> writes: > > >> ... the other problem is that the prefixing is not done during > >> reconfig, and in fact, the items in my ac-macro should be appended to > >> the config.status file, which I didn't bother to do so far, and I > >> didn't have enough time to figure it out. > > > I think this is now the crux of the problem - how to get a command to be > > run by config.status every time config.h is generated - as we could use > > your prefixing code, my sed script, or Russ's awk script, depending on > > how we want to solve the installability problem. > > I just let make handle this. It knows about dependencies and running > scripts, so as long as something important depends on the generated header > file, it will take care of making sure it's generated. >
well, my ac-macro started out as some sed-lines in the makefile, but I didn't wanted to copy it from project to project exchanging the prefix which was always derived from the package name. of course, one could extend automake to see this generation and add it the appropriate lines to the makefile.in, but I guess that adding the output-file to the list of ac_output should be good enough to have it remade everytime a reconf is needed. so, it still boils down to adding some lines to config.status, and the only problem I see is to rewrite the macroitis currently being used, since the config.status must be a plain shell script, all the m4 specials must be removed from the code. And Clinton, do I read it correctly that you have some experimental code about it, could you just show that? TIA -- guido http://freespace.sf.net/guidod GCS/E/S/P C++/++++$ ULHS L++w- N++@ d(+-) s+a- r+@>+++ y++ 5++X- (geekcode)