Re: VPATH build...

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

 



Thanks.

On 4/3/07, Bob Rossi <bob_rossi@xxxxxxx> wrote:
On Tue, Apr 03, 2007 at 04:00:20PM -0600, Ben Bergen wrote:
> does anyone know of a variable that is defined during the ./configure
> run that tells where the top level source directory is.  I have tried
> $top_srcdir, but this is doesn't seem to be defined until the very
> end.  I can't use the current directory because I am trying to support
> out-of-path builds.

Hi Ben,

I've run into the same problem, and this is what I do,

  case $target in
    *-*-mingw*)
      abs_top_srcdir=`cd $srcdir; pwd -W`
      abs_top_builddir=`pwd -W`
      ;;
    *)
      abs_top_srcdir=`cd $srcdir; pwd`
      abs_top_builddir=`pwd`
      ;;
  esac

It's probably not correct, but it works.

Bob Rossi



--
  Benjamin Karl Bergen
  CCS-2 Computational Physics and Methods
  Los Alamos National Laboratory


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux