autoconf computed include file name

75 views Asked by At

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

1

There are 1 answers

0
ldav1s On BEST ANSWER

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.