changeset: 79783:f9eb516bea88 parent: 79779:429774e8d9f9 parent: 79782:b78e97b84f35 user: Trent Nelson date: Wed Oct 17 04:49:26 2012 -0400 files: configure configure.ac description: Issue #15819: use standard autoconf preset output variables. Reported by: Roumen Petrov diff -r 429774e8d9f9 -r f9eb516bea88 Makefile.pre.in --- a/Makefile.pre.in Wed Oct 17 04:24:44 2012 -0400 +++ b/Makefile.pre.in Wed Oct 17 04:49:26 2012 -0400 @@ -27,7 +27,8 @@ VERSION= @VERSION@ srcdir= @srcdir@ VPATH= @srcdir@ -BUILDDIR= @BUILDDIR@ +abs_srcdir= @abs_srcdir@ +abs_builddir= @abs_builddir@ CC= @CC@ diff -r 429774e8d9f9 -r f9eb516bea88 configure --- a/configure Wed Oct 17 04:24:44 2012 -0400 +++ b/configure Wed Oct 17 04:49:26 2012 -0400 @@ -735,7 +735,6 @@ HGTAG HGVERSION BASECPPFLAGS -BUILDDIR target_alias host_alias build_alias @@ -2747,10 +2746,8 @@ -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 -r 429774e8d9f9 -r f9eb516bea88 configure.ac --- a/configure.ac Wed Oct 17 04:24:44 2012 -0400 +++ b/configure.ac Wed Oct 17 04:49:26 2012 -0400 @@ -9,10 +9,8 @@ AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/) -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