aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-02 15:40:39 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-02 15:40:39 +0000
commit34e0d3254ef6ca14aad477714f1ad35ecbcd1e3c (patch)
tree6a4140f23e7d88ad85678ee5d49d06134fedfdcd
parent4a1822a6d82c4828419960c8ad8dd2578890c318 (diff)
downloadexternal_llvm-34e0d3254ef6ca14aad477714f1ad35ecbcd1e3c.zip
external_llvm-34e0d3254ef6ca14aad477714f1ad35ecbcd1e3c.tar.gz
external_llvm-34e0d3254ef6ca14aad477714f1ad35ecbcd1e3c.tar.bz2
Check for .svn directories too to determine if a debug build is appropriate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35595 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--autoconf/configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 0ffdb28..e424162 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -235,13 +235,13 @@ else
AC_SUBST(LLVM_CROSS_COMPILING, [0])
fi
-dnl Check to see if there's a "CVS" directory indicating that this build is
-dnl being done from a CVS checkout. This sets up several defaults for the
+dnl Check to see if there's a "CVS" (or .svn) directory indicating that this
+dnl build is being done from a checkout. This sets up several defaults for the
dnl command line switches. When we build with a CVS directory, we get a
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" -o -d "${srcdir}/CVS"; then
+if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
cvsbuild="yes"
optimize="no"
AC_SUBST(CVSBUILD,[[CVSBUILD=1]])