I would like to send some patches making pkg-config files relocatable.
pkg-config offers the "pcfiledir" variable to do this.
The thing is that I need to be able to obtain prefix, libdir,
includedir, etc. relative to the directory where the .pc file gets
installed. I can easily do this with realpath, from coreutils, but
it's not POSIX and I'm not sure people will accept such a dependency.
The use of automake per se has no dependency to coreutils, does it?
There is any way to obtain the path of one directory relative to
another in automake without adding a new dependency? "realpath"
implemented as a m4 macro, maybe?
Thanks.