🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by John Eaton Mon, 20 Jul 1992 14:47
Autoconf-1.0 and variable substitution.
#161
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads