"Matthew R. MacIntyre" wrote:
>
> I want to have a configuration file in the sysconfdir for my program,
> but if I put AC_DEFINE(CONFFILE, "$sysconfdir/file.conf"), I end up
> with the path being "${prefix}/etc/file.conf" which is pretty
> meaningless to C. I've seen people hack it by just saying
> "$prefix/etc/file.conf" in the configure.in, but this doesn't seem to
> be the right thing to do. Should I do that, or is there a way to use
> the sysconfdir?
>
> Thanks for any help,
>
kinda FAQ, use shell-interpolation, and AC_DEFINE the result, please see
http://www.gnu.org/software/ac-archive/Miscellaneous/ac_define_dir.html
cheers, Guido