autogen.sh: fail cleanly if autoconf fails

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
(cherry picked from commit 0bbfca6def)
This commit is contained in:
Simon McVittie 2016-08-15 20:11:49 +01:00
parent 0ffa8fd4e8
commit 0cfe2cfb4e

View file

@ -81,7 +81,10 @@ $ACLOCAL -I m4 $ACLOCAL_FLAGS
(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
$AUTOMAKE -a $am_opt
autoconf || echo "autoconf failed - version 2.5x is probably required"
if ! autoconf; then
echo "autoconf failed - version 2.5x is probably required" >&2
exit 1
fi
cd $ORIGDIR