Hi,
David Oleszkiewicz <[EMAIL PROTECTED]> writes:
> so i want to do something like this
>
> configure.in:
> PROGNAME = "foo"
> DIR = "${bindir}/${PROG}"
> AC_SUBST(DIR)
>
> myfile.h.in:
> #define DIR "@DIR@"
>
> when things resolve out to myfile.h i get
> #define CONF_DIR "${exec_prefix}/foo"
Look at the GNU Autoconf Macro Archive for 'AC_DEFINE_DIR'.
http://www.gnu.org/software/ac-archive/Miscellaneous/ac_define_dir.html
(This'll put the define in your config.h, though.)
- Hari
--
Raja R Harinath ------------------------------ [EMAIL PROTECTED]
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash