Question

Would anybody know if there's any way of computing the name of an included file in autoconf ?

I have a project capable of building one of several variants currently based on an identity defined in configure.ac - my aim is to be able to identify the variant from the CLI when autoconf/configure is run and include an m4 file if/as appropriate. AFAICT, only string literals are allowed as the filename in either the include or sinclude macro calls ... and it's now starting to drive me to distraction =:-O

Any help most gratefully received

DP

Was it helpful?

Solution

The identity is setup at configure runtime, not when configure is created. Any m4 level (e.g. m4sugar) manipulation of configure will happen before then, so this doesn't look possible.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top