summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-09-15 17:19:42 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-09-15 17:19:42 +0000
commit1b82432a8377e1fbfac3b3e48a1000f49338513a (patch)
tree67be51aabd53d4592d6c9b62af1034b594e90404 /autoconf
parent93e1c72ec0dbdb0a3af1af61e7a78bc992efa60d (diff)
downloadllvm-1b82432a8377e1fbfac3b3e48a1000f49338513a.tar.gz
llvm-1b82432a8377e1fbfac3b3e48a1000f49338513a.tar.bz2
llvm-1b82432a8377e1fbfac3b3e48a1000f49338513a.tar.xz
Modified the checks slightly so that one can re-configure LLVM without
having to do a "make distclean" when building in the source directory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8540 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 787c0d7d59..4ec23cabe0 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -21,12 +21,15 @@ dnl Place all of the extra autoconf files into the config subdirectory
AC_CONFIG_AUX_DIR([autoconf])
dnl Quit if the source directory has already been configured.
-if test -f ${srcdir}/include/Config/config.h
+dnl NOTE: This relies upon undocumented autoconf behavior.
+if test ${srcdir} != "."
then
- AC_MSG_ERROR([Already configured in ${srcdir}])
+ if test -f ${srcdir}/include/Config/config.h
+ then
+ AC_MSG_ERROR([Already configured in ${srcdir}])
+ fi
fi
-
dnl Configure a header file
AC_CONFIG_HEADERS(include/Config/config.h)
AC_CONFIG_MAKEFILE(Makefile)