Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5595ab5

Browse files
committed
Issue #15819: use standard autoconf preset output variables.
Reported by: Roumen Petrov
2 parents ee528cc + 739fc54 commit 5595ab5

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

Makefile.pre.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ MODLIBS= _MODLIBS_
2727
VERSION= @VERSION@
2828
srcdir= @srcdir@
2929
VPATH= @srcdir@
30-
BUILDDIR= @BUILDDIR@
30+
abs_srcdir= @abs_srcdir@
31+
abs_builddir= @abs_builddir@
3132

3233

3334
CC= @CC@

configure

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,6 @@ HGBRANCH
715715
HGTAG
716716
HGVERSION
717717
BASECPPFLAGS
718-
BUILDDIR
719718
target_alias
720719
host_alias
721720
build_alias
@@ -2721,10 +2720,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
27212720

27222721

27232722

2724-
BUILDDIR="`pwd`"
27252723

2726-
2727-
if test "$srcdir" != "." -a "$srcdir" != "$BUILDDIR"; then
2724+
if test "$abs_srcdir" != "$abs_builddir"; then
27282725
# If we're building out-of-tree, we need to make sure the following
27292726
# resources get picked up before their $srcdir counterparts.
27302727
# Objects/ -> typeslots.inc

configure.ac

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ AC_PREREQ(2.65)
99

1010
AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
1111

12-
BUILDDIR="`pwd`"
13-
AC_SUBST(BUILDDIR)
1412
AC_SUBST(BASECPPFLAGS)
15-
if test "$srcdir" != "." -a "$srcdir" != "$BUILDDIR"; then
13+
if test "$abs_srcdir" != "$abs_builddir"; then
1614
# If we're building out-of-tree, we need to make sure the following
1715
# resources get picked up before their $srcdir counterparts.
1816
# Objects/ -> typeslots.inc

0 commit comments

Comments
 (0)