0
votes

I would like to be able to merge two files into one during configure run. I already do textural replacement using AC_CONFIG_SRCDIR[file.hpp] macro on some files. is there some directive to include files from file.hpp.in, some sort of @include (another.hpp) @ or something like that?

Thanks

2
I think you mean AC_CONFIG_FILES not _SRCDIR...ptomato

2 Answers

4
votes

AC_CONFIG_FILES([file.hpp:file.hpp.in:another.hpp.in]) will perform text substitution on both file.hpp.in and another.hpp.in and then concatenate both results into file.hpp.

1
votes

Found answer myself. file insertion can be done using ac_subst_file.