I'm using autotools (for the first time) to generate a makefile and all the other things that the GNU autotools do. Something I wrote is supposed to be included in an upcoming release of a major linux distro so I need to get this stuff right.
Anyway, the program needs to makes use of some external files (eg, images) that I figure will go in INSTALLDIR/share/myapp/. Up until now, the exact location of the files was always known prior to compile, so I just used this:
Since INSTALLDIR won't be determined until compile time (by "configure"), how can I adjust the source code so that FILEPATH will be correct?Code:#define FILEPATH /usr/local/share/myapp