]> granicus.if.org Git - python/commitdiff
Issue #15819: use standard autoconf preset output variables.
authorTrent Nelson <trent@trent.me>
Wed, 17 Oct 2012 08:32:49 +0000 (04:32 -0400)
committerTrent Nelson <trent@trent.me>
Wed, 17 Oct 2012 08:32:49 +0000 (04:32 -0400)
Reported by: Roumen Petrov

Makefile.pre.in
configure
configure.ac

index 91b2b5aebfe75b3e3a5710292e588e148fda3d98..b6578dec082c71eeb30813e6197fdb7b370a762b 100644 (file)
@@ -27,7 +27,8 @@ MODLIBS=        _MODLIBS_
 VERSION=       @VERSION@
 srcdir=                @srcdir@
 VPATH=         @srcdir@
-BUILDDIR=      @BUILDDIR@
+abs_srcdir=    @abs_srcdir@
+abs_builddir=  @abs_builddir@
 
 CC=            @CC@
 CXX=           @CXX@
index 6b4235cbffb4f310d8a80df91cd8007d79986c31..7098353a6d2cc8593efd77ee0f09bfd282923944 100755 (executable)
--- a/configure
+++ b/configure
@@ -649,7 +649,6 @@ HGBRANCH
 HGTAG
 HGVERSION
 BASECPPFLAGS
-BUILDDIR
 SVNVERSION
 ARFLAGS
 AR
@@ -5177,10 +5176,8 @@ else
        SVNVERSION="echo Unversioned directory"
 fi
 
-BUILDDIR="`pwd`"
 
-
-if test "$srcdir" != "." -a "$srcdir" != "$BUILDDIR"; then
+if test "$abs_srcdir" != "$abs_builddir"; then
     # If we're building out-of-tree make sure Include (in the current dir)
     # gets picked up before its $srcdir counterpart in order for Python-ast.h
     # and graminit.h to get picked up from the correct directory.
index 6f8ed747e9f778c0fabf279cdf1bb00f59ab2b2e..7782116a1bde97160db96943c129236121063b01 100644 (file)
@@ -854,10 +854,8 @@ else
        SVNVERSION="echo Unversioned directory"
 fi
 
-BUILDDIR="`pwd`"
-AC_SUBST(BUILDDIR)
 AC_SUBST(BASECPPFLAGS)
-if test "$srcdir" != "." -a "$srcdir" != "$BUILDDIR"; then
+if test "$abs_srcdir" != "$abs_builddir"; then
     # If we're building out-of-tree make sure Include (in the current dir)
     # gets picked up before its $srcdir counterpart in order for Python-ast.h
     # and graminit.h to get picked up from the correct directory.