> What is the best way to have a script/program where $pkgdatadir is
> located?
>
> For C, it's easy enough just to do
> CCFLAGS=-DPKGDATADIR="\""$(pkgdatadir)"\"" but what about things like perl
> scripts that have to pull option files and such. Is there a standard way
> to tackle this?
There may be a better way, but renaming the script to script.in, replacing
hard-coded paths with AC_SUBST'd variables (@PKGDATADIR@ etc.) in script.in,
and adding the script to AC_OUTPUT in configure.in has worked for me.
--Rusty