llvm.org GIT mirror llvm / dcd2094
Discourage in-source autoconf builds (as we already do for the cmake build) http://reviews.llvm.org/D7961 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230812 91177308-0d34-0410-b5e6-96231b3b80d8 Jonathan Roelofs 4 years ago
2 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7070 if test -f ${srcdir}/include/llvm/Config/config.h ; then
7171 AC_MSG_ERROR([Already configured in ${srcdir}])
7272 fi
73 fi
74
75 dnl Quit if it is an in-source build
76 if test ${srcdir} == "." ; then
77 AC_MSG_ERROR([In-source builds are discouraged. Configure from a separate build directory.])
7378 fi
7479
7580 dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS,
19981998 fi
19991999 fi
20002000
2001 if test ${srcdir} == "." ; then
2002 { { echo "$as_me:$LINENO: error: In-source builds are discouraged. Configure from a separate build directory." >&5
2003 echo "$as_me: error: In-source builds are discouraged. Configure from a separate build directory." >&2;}
2004 { (exit 1); exit 1; }; }
2005 fi
2006
20012007 : ${CFLAGS=}
20022008 : ${CXXFLAGS=}
20032009