[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cascading variable resolution in AC_SUBST
From: |
Raja R Harinath |
Subject: |
Re: cascading variable resolution in AC_SUBST |
Date: |
Thu, 04 Oct 2001 09:28:32 -0500 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.105 |
Hi,
David Oleszkiewicz <address@hidden> 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 ------------------------------ address@hidden
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash