From fcb009c9d675b2ca0eafd01d5999cd6038d7d654 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Tue, 16 Oct 2012 10:52:35 -0400 Subject: [PATCH] Issue #15819: tweak logic in previous commit (e0a2b14a3cf9). --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index f2304f6db7..6b4235cbff 100755 --- a/configure +++ b/configure @@ -5180,7 +5180,7 @@ fi BUILDDIR="`pwd`" -if test "$srcdir" != "$BUILDDIR"; then +if test "$srcdir" != "." -a "$srcdir" != "$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. diff --git a/configure.ac b/configure.ac index 094e5a4b2c..6f8ed747e9 100644 --- a/configure.ac +++ b/configure.ac @@ -857,7 +857,7 @@ fi BUILDDIR="`pwd`" AC_SUBST(BUILDDIR) AC_SUBST(BASECPPFLAGS) -if test "$srcdir" != "$BUILDDIR"; then +if test "$srcdir" != "." -a "$srcdir" != "$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. -- 2.40.0