diff --git a/legacy/evas/autogen.sh b/legacy/evas/autogen.sh index 1d0f0b11c6..c7d148a4d6 100755 --- a/legacy/evas/autogen.sh +++ b/legacy/evas/autogen.sh @@ -1,5 +1,10 @@ #! /bin/sh +abort () { + echo "$1 not found or command failed. Aborting!" + exit 1 +} + srcdir=`dirname $0` test -z "$srcdir" && srcdir=. @@ -8,11 +13,11 @@ cd "$srcdir" DIE=0 set -x -autoheader -libtoolize --ltdl --force --copy -aclocal -automake --foreign --add-missing -autoconf +aclocal || abort "aclocal" +libtoolize --ltdl --force --copy || abort "libtoolize" +autoheader || abort "autoheader" +automake --foreign --add-missing || abort "automake" +autoconf || abort "autoconf" if test -z "$*"; then echo "I am going to run ./configure with no arguments - if you wish " @@ -21,7 +26,7 @@ fi cd "$THEDIR" -$srcdir/configure "$@" +$srcdir/configure "$@" || abort "configure" set +x