Added checks and fixed built order

SVN revision: 6161
This commit is contained in:
thalma 2002-04-22 07:20:11 +00:00 committed by thalma
parent fd507f34cd
commit b0967ede9d
1 changed files with 11 additions and 6 deletions

View File

@ -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