Issue #28066: Fix include search directory logic for out-of-tree builds
diff --git a/configure b/configure
index ab1c32a..19fcbd1 100755
--- a/configure
+++ b/configure
@@ -2820,7 +2820,7 @@
 
 
 
-if test "$abs_srcdir" != "$abs_builddir"; then
+if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; 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