File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,11 @@ if test ${srcdir} != "." ; then
73
73
fi
74
74
fi
75
75
76
+ dnl Quit if it is an in-source build
77
+ if test ${srcdir} == "." ; then
78
+ AC_MSG_ERROR ( [ In-source builds are discouraged. Configure from a separate build directory.] )
79
+ fi
80
+
76
81
dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS,
77
82
dnl instead of the autoconf default (for example, '-g -O2' for CC=gcc).
78
83
: ${CFLAGS=}
Original file line number Diff line number Diff line change @@ -1999,6 +1999,12 @@ echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1999
1999
fi
2000
2000
fi
2001
2001
2002
+ if test ${srcdir} == "." ; then
2003
+ { { echo "$as_me:$LINENO: error: In-source builds are discouraged. Configure from a separate build directory." >&5
2004
+ echo "$as_me: error: In-source builds are discouraged. Configure from a separate build directory." >&2;}
2005
+ { (exit 1); exit 1; }; }
2006
+ fi
2007
+
2002
2008
: ${CFLAGS=}
2003
2009
: ${CXXFLAGS=}
2004
2010
You can’t perform that action at this time.
0 commit comments