ref: 9402e25b4b69352387d611b21a8fde95c3a0a624
parent: b867e42578e5cc56f118e6e99d02d72a7f573ac7
author: James Zern <[email protected]>
date: Wed Mar 5 09:13:01 EST 2014
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
--- a/configure
+++ b/configure
@@ -164,6 +164,14 @@
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%%.*}