🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #161

Autoconf-1.0 and variable substitution.

#161
From: John Eaton
Date: Mon, 20 Jul 1992 14:47
33 lines
1388 bytes
The autoconf manual states:

   To support `VPATH', each `Makefile.in' should contain two lines that
   look like:

     srcdir = @srcdir@
     VPATH = @srcdir@


This works great, but I have a need to set VPATH to something like

   VPATH = @srcdir@:@srcdir@/../foobar

but this doesn't work -- the second @srcdir@ isn't expanded because
autoconf only performs one substitution on each line.  I have been
using something like this

   srcdir = @srcdir@
   VPATH = $(srcdir):$(srcdir)/../foobar

but now I see that the autoconf manual also saysI

   Do not set `VPATH' to the value of another variable, for example
   `VPATH = $(srcdir)', because some versions of `make' do not do variable
   substitutions on the value of `VPATH'.


Is there any reason that autoconf should only perform one substitution
on each line?

--
DEC Fortran brings VAX FORTRAN quality to RISC | John W. Eaton 
ULTRIX and DEC OSF/1.   -- DEC catalog (1992). | jwe@che.utexas.edu
Technical Details
Message-ID: <9207201547.AA05731@schoch.che.utexas.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!che.utexas.EDU!jwe

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!che.utexas.EDU!jwe
From: jwe@che.utexas.EDU (John Eaton)
Subject: Autoconf-1.0 and variable substitution.
Message-ID: <9207201547.AA05731@schoch.che.utexas.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 20 Jul 1992 14:47:44 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 36