Ensure that the automatic "CVS build" detection works for both
objdir == srcdir and objdir != srcdir.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27516 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index ec25ff8..fee1c2c 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -190,7 +190,7 @@
dnl debug with assertions turned on. Without, we assume a source release and we
dnl get an optimized build without assertions. See --enable-optimized and
dnl --enable-assertions below
-if test -d "CVS" ; then
+if test -d "CVS" -o -d "${srcdir}/CVS"; then
cvsbuild="yes"
optimize="no"
asserts="yes"
diff --git a/configure b/configure
index 4ba2da8..11d6020 100755
--- a/configure
+++ b/configure
@@ -2968,7 +2968,7 @@
esac
-if test -d "CVS" ; then
+if test -d "CVS" -o -d "${srcdir}/CVS"; then
cvsbuild="yes"
optimize="no"
asserts="yes"