Hello, everyone
I'm stuck with autoconf. When user executes, for example ./configure --sysconf=/home/usr, I get a construct @sysconfdir@ replaced by /home/usr in the Makefile. Fine until then. Now, how could I let my program know about that '/home/usr' path (so, it knows where to look for its config file)?
Currently I'm doing it with this target defined in a Makefile:
Code:
add_configfile_path:
echo "#define CONFIG_FILE \"${sysconfdir}/myproject.conf\"" >> config.h
I'm wondering if there is a cleaner way to do it.
Thanks in advance