autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VPATH elimination by configure


From: Derek R. Price
Subject: Re: VPATH elimination by configure
Date: Wed, 17 Jan 2001 11:08:59 -0500

Akim Demaille wrote:

> >>>>> "Ganesan" == Ganesan Rajagopal <address@hidden> writes:
>
> Ganesan> I am curious which versions of automake actually remove
> Ganesan> VPATH.
>
> s/make/conf/.
>
> Well all the known versions, under some conditions only.

# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
fi

According to the comment, the intention was to remove it when not
needed, i.e. when $srcdir = $builddir.

The mistaken assumption seems to be that the line in the Makefile.in is
always going to contain "@srcdir@", "$(srcdir)", or the like (a ":"
means @srcdir@ & one or more other dirs).

Why not check for that?

  ac_vpsub='/^[\t ]*VPATH[\t ]*=[\t ]*(@|\$\()srcdir(@|\))$/d'

Please excuse the non-portable '\t's - my mail reader won't send a real
tab.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden     OpenAvenue ( http://OpenAvenue.com )
--
You want my advice?  Go back to Bulgaria.

                - Humphrey Bogart as Rick, _Casablanca_






reply via email to

[Prev in Thread] Current Thread [Next in Thread]