Build scripts update

This commit is contained in:
Markus Gans 2018-09-30 20:08:12 +02:00
parent ef02e06fa5
commit 27ad78e21a
2 changed files with 17 additions and 2 deletions

View File

@ -3,7 +3,13 @@
if test "$1" = "update"
then
# Update generated configuration files
if which autoreconf >/dev/null
then
autoreconf --force --install --verbose --warnings=all
else
echo "Update failed, please install autoconf first"
exit 1
fi
else
# Set up an m4 environment
aclocal

View File

@ -28,7 +28,16 @@ test "$CPU_COUNT" -eq 0 && CPU_COUNT=1
if [ -n "$1" ]
then
test ! -f ./configure && autoreconf --install --force
if [ ! -f ./configure ]
then
if which autoreconf >/dev/null
then
autoreconf --install --force
else
echo "Build failed, please install autoconf first"
exit -1
fi
fi
fi
# Build commands