From: Trent Nelson Date: Wed, 17 Oct 2012 08:45:30 +0000 (-0400) Subject: Issue #15819: use standard autoconf preset output variables. X-Git-Tag: v3.2.4rc1~435 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=739fc541b197ed4dbb55be7a7d6925dc5f5ac5d8;p=thirdparty%2FPython%2Fcpython.git Issue #15819: use standard autoconf preset output variables. Reported by: Roumen Petrov --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 1b6965592e86..91e28d2b503a 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -27,7 +27,8 @@ MODLIBS= _MODLIBS_ VERSION= @VERSION@ srcdir= @srcdir@ VPATH= @srcdir@ -BUILDDIR= @BUILDDIR@ +abs_srcdir= @abs_srcdir@ +abs_builddir= @abs_builddir@ CC= @CC@ diff --git a/configure b/configure index b90c6617688c..c6223f6b0900 100755 --- a/configure +++ b/configure @@ -652,7 +652,6 @@ HGBRANCH HGTAG HGVERSION BASECPPFLAGS -BUILDDIR SVNVERSION ARFLAGS AR @@ -5207,10 +5206,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, 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 index 116e03e471b5..f2951a27fcd6 100644 --- a/configure.ac +++ b/configure.ac @@ -830,10 +830,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, we need to make sure the following # resources get picked up before their $srcdir counterparts. # Objects/ -> typeslots.inc