configure: Prevent in-tree builds

Fixes #251.
This commit is contained in:
Keegan McAllister 2013-10-11 16:26:05 -07:00
parent fc9fdf30a6
commit 346591e41a

10
configure vendored
View file

@ -258,6 +258,16 @@ cpu_type() {
esac
}
if [ -f configure -a -f Makefile.in ]; then
msg "You seem to be running configure within the source tree root."
msg "This is not supported. Instead, make a build directory:"
msg ""
msg " mkdir -p build && cd build && ../configure"
msg ""
msg "See README.md for more information."
exit 1
fi
msg "looking for configure programs"
need_cmd cmp
need_cmd mkdir