bug-autoconf
[Top][All Lists]
Advanced

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

Re: srcdir detection


From: Tim Van Holder
Subject: Re: srcdir detection
Date: Thu, 04 Aug 2005 13:45:18 +0200
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Stepan Kasal wrote:
> The autodetection code (_AC_INIT_SRCDIR in lib/autoconf/general.m4) tries
> the folowing candidates for srcdir:
> 1) directory name of the configure script
> 2) ..
> 
> So if configure was called with full path, srcdir is set to the full path.
> This can cause problems: VPATH build is recognized by "test $srcdir = ."
> (for example, search ac_vpsub in lib/autoconf/status.m4).
> 
> I think _AC_INIT_SRCDIR should try srcdir=. before the other two
> candidates.

Couldn't you simply fix the VPATH detection?
Comparing `(cd $srcdir; pwd)` and `pwd` should do the trick, no?




reply via email to

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