Commit 9402e25b authored by James Zern's avatar James Zern
Browse files

configure: add a test for configured source dir

prevents out of tree build failures when the source tree has already
been configured; modeled after a similar check in autoconf

Change-Id: I627eb7243576f4d753141dfcb4ed4e34544d03a7
Showing with 8 additions and 0 deletions
......@@ -164,6 +164,14 @@ if ! perl --version >/dev/null; then
die "Perl is required to build"
fi
if [ "`cd ${source_path} && pwd`" != "`pwd`" ]; then
# test to see if source_path already configured
if [ -f ${source_path}/vpx_config.h ]; then
die "source directory already configured; run 'make distclean' there first"
fi
fi
# check installed doxygen version
doxy_version=$(doxygen --version 2>/dev/null)
doxy_major=${doxy_version%%.*}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment