linux - Perform substitution in a substitution file with autotools -
i have tried around , cannot seem find correct information. substitute @srcdir@ in file used ac_subst_file. possible?
ac_output
doesn't allow 2 substitution steps, don't think that's possible. however, this:
my_substitution_file:
srcdir %srcdir%
configure.ac:
ac_prog_sed file=my_substitution_file ac_subst_file([file]) ac_config_files([my_file.in]) ac_output
makefile.am:
my_file: my_file.in makefile $(am_v_gen)$(sed) -e s,%srcdir%,$(srcdir), <$< >$@
my_file.in.in:
here my_substitution_file has say: @file@
all together, should result in file called my_file contents:
here my_substitution_file has say: srcdir /path/to/your/source
Comments
Post a Comment