Nick Bowler <nbowler@xxxxxxxxxxxxxxxx> writes: > I wonder if all that's needed is an option to override a configure- time > decision when you run config.status? Then you could use the > config.status machinery to perform substitutions by calling it at make > time, and not have to maintain your own code that does the same thing. > Then the makefile could have a rule (either automatically provided by > Automake or hand-written by the user) that looks something like: config.status also doesn't fully expand the variables, though, which is something that you'd want for this sort of application. Otherwise, you have to know all of the possible ways in which one variable could reference another so that you can set all of them (and you can only write files that have a variable resolution system, although pkg-config does have one). Note that the user can do things like --libdir='${datadir}/foo' at configure time, even if it's not common. So yes, you could use config.status, but only if it also had a flag that said to fully expand the variables before substituting them in, and I suspect that's a fair amount of change to the script. -- Russ Allbery (rra@xxxxxxxxxxxx) <http://www.eyrie.org/~eagle/> _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf