From 27ad78e21ad3e5182904b66691047350f821553e Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sun, 30 Sep 2018 20:08:12 +0200 Subject: [PATCH] Build scripts update --- autogen.sh | 8 +++++++- build.sh | 11 ++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index f5b403c2..f47cec46 100755 --- a/autogen.sh +++ b/autogen.sh @@ -3,7 +3,13 @@ if test "$1" = "update" then # Update generated configuration files - autoreconf --force --install --verbose --warnings=all + 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 diff --git a/build.sh b/build.sh index 29ece85e..91aaad2f 100755 --- a/build.sh +++ b/build.sh @@ -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