[Python-checkins] cpython (3.2): Issue #15819: use standard autoconf preset output variables.
trent.nelson
python-checkins at python.org
Wed Oct 17 10:49:46 CEST 2012
http://hg.python.org/cpython/rev/65b3c41052b6
changeset: 79781:65b3c41052b6
branch: 3.2
parent: 79769:4c204a61bd79
user: Trent Nelson <trent at trent.me>
date: Wed Oct 17 04:45:30 2012 -0400
summary:
Issue #15819: use standard autoconf preset output variables.
Reported by: Roumen Petrov
files:
Makefile.pre.in | 3 ++-
configure | 7 ++-----
configure.ac | 4 +---
3 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -27,7 +27,8 @@
VERSION= @VERSION@
srcdir= @srcdir@
VPATH= @srcdir@
-BUILDDIR= @BUILDDIR@
+abs_srcdir= @abs_srcdir@
+abs_builddir= @abs_builddir@
CC= @CC@
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -652,7 +652,6 @@
HGTAG
HGVERSION
BASECPPFLAGS
-BUILDDIR
SVNVERSION
ARFLAGS
AR
@@ -5207,10 +5206,8 @@
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, we need to make sure the following
# resources get picked up before their $srcdir counterparts.
# Objects/ -> typeslots.inc
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -830,10 +830,8 @@
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, we need to make sure the following
# resources get picked up before their $srcdir counterparts.
# Objects/ -> typeslots.inc
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list