autogen.sh: don't run ./configure if autoreconf failed
authorAndres G. Aragoneses <knocte@gmail.com>
Mon, 31 Mar 2014 16:02:09 +0000 (18:02 +0200)
committerStephan Sundermann <ssundermann@gnome.org>
Tue, 1 Apr 2014 00:20:10 +0000 (02:20 +0200)
The following line could be seen in the middle of the log:
autoreconf: automake failed with exit status: 1

Clearly the configuration phase should not continue from there.

autogen.sh

index 6546c6eb29083e0e007dba2abe77cdc86b81d527..c0124140d628ad3819d90629dab4474cfd826c36 100755 (executable)
@@ -4,5 +4,5 @@ if [ $? -ne 0 ] ; then
        echo "Please install autoconf" && exit 1;
 fi
 mkdir -p m4
-autoreconf  -i --force --warnings=none -I . -I m4
+autoreconf  -i --force --warnings=none -I . -I m4 && \
 ./configure --enable-maintainer-mode $*