Accessing datadir from bash (autotools)

"André Wagner" <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization http://groups.google.com
Message-ID <[email protected]>
Hello,

I have a project controlled with autotools. One of my executables is a
bash script (mybashfile) that must access a file (mydatafile) that was
put in a datadir with make install. My Makefile.am currently is:

bin_SCRIPTS = mybashfile
pkgdata_DATA = mydatafile

There any way I can know (from mybashfile) where mydatafile was
installed? Maybe I need to insert this information in mybashfile during
the "make", but how do I do it in Makefile.am?

Thank you in advance.

André
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.