[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch for autoconf/145
From: |
Derek R. Price |
Subject: |
Re: Patch for autoconf/145 |
Date: |
Mon, 26 Feb 2001 11:43:45 -0500 |
"Derek R. Price" wrote:
> Pavel Roskin wrote:
>
> > Hello, Derek!
> >
> > > > Unfortunately, a trivial AC_SUBST([SET_VPATH], [VPATH =
> > > > @address@hidden) doesn't
> > > > work - Autoconf actually makes a great effort to protect the second
> > > > argument from expanding.
> > >
> > > Of course, since configure knows the value of $srcdir anyhow,
> > > AC_SUBST([SET_VPATH],
> > > [VPATH = $srcdir]) will work.
> >
> > Not quite. It will only work properly for the top-level directory, since
> > srcdir is different for every directory if you are compiling outside of
> > the source tree.
>
> Good point. configure substs @srcdir@ properly in all the Makefiles, though,
> so there's
> obviously some point where it knows the difference. Maybe it's not a
> straight up
> AC_SUBST...
At that, unless the @srcdir@ and other substs are happening in separate passes,
since the
variable evaluation in an AC_SUBST doesn't happen until the last second and
since there has
to be _some_ variable which is set to the proper value for @srcdir@, most
likely for the
entire duration of the pass, there probably is _a_ variable such that a simple
AC_SUBST
would work, even if it isn't named $srcdir.
And if the timing isn't currently exactly right, it should be simple, harmless,
and useful
enough to adjust.
Derek
--
Derek Price CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden OpenAvenue ( http://OpenAvenue.com )
--
If virtuous, [the government] need not fear the fair operation of attack and
defense. Nature has given to man no other means of sifting the truth, either in
religion, law, or politics.
- Thomas Jefferson to George Washington, 1792
- Re: Patch for autoconf/145, Akim Demaille, 2001/02/23
- Re: Patch for autoconf/145, Akim Demaille, 2001/02/23
- Re: Patch for autoconf/145, Pavel Roskin, 2001/02/23
- Re: Patch for autoconf/145, Akim Demaille, 2001/02/23
- Re: Patch for autoconf/145, Pavel Roskin, 2001/02/23
- Re: Patch for autoconf/145, Derek R. Price, 2001/02/23
- Re: Patch for autoconf/145, Pavel Roskin, 2001/02/25
- Re: Patch for autoconf/145, Derek R. Price, 2001/02/25
- Re: Patch for autoconf/145, Pavel Roskin, 2001/02/25
- Re: Patch for autoconf/145, Derek R. Price, 2001/02/26
- Re: Patch for autoconf/145,
Derek R. Price <=
- Re: Patch for autoconf/145, Ralf Corsepius, 2001/02/25
- Re: Patch for autoconf/145, Pavel Roskin, 2001/02/25