[build] Fail configure if a mason command fails

This commit is contained in:
John Firebaugh
2016-04-13 16:14:23 -07:00
parent 7e0a2e36e6
commit 009a28943c

3
configure vendored
View File

@@ -39,7 +39,8 @@ function print_flags {
if [ ! -z ${!VERSION:-} ] ; then
mason install ${NAME} ${!VERSION}
for FLAGS in "$@" ; do
CONFIG+=" '${NAME}_${FLAGS}%': $(quote_flags $(mason ${FLAGS} ${NAME} ${!VERSION})),"$LN
flags=$(mason ${FLAGS} ${NAME} ${!VERSION}) || exit 1
CONFIG+=" '${NAME}_${FLAGS}%': $(quote_flags $flags),"$LN
done
else
warn "* Not using ${NAME}"