My program needs to load some files at run time, which will be installed into whatever folder is given to ./configure --datadir=/somewhere
As my program needs to know where this folder is at run time, I need to #define a symbol somewhere so the C code can access the path as a string.
I am currently doing this by modifying the compiler flags:
AM_CPPFLAGS = -DDATA_PATH=\"$(pkgdatadir)\"
However as the configure script already produces a config.h file with a bunch of other things in it, I would like to have the symbol appear in there instead.
Is that possible?