X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=build.sh;h=20854b13b7d88cf6aa90f5ce990fd07370fff56c;hb=8eb9e6285f394569d7fe6ad43a0f4e5f9bca454f;hp=89d3a68e0e49d86a3f586cd7c995530c6e344ff7;hpb=418249bad5af0493ba4e08fdaf22fd7e402be6af;p=collectd.git diff --git a/build.sh b/build.sh index 89d3a68e..20854b13 100755 --- a/build.sh +++ b/build.sh @@ -1,9 +1,59 @@ #! /bin/sh +GLOBAL_ERROR_INDICATOR=0 + +check_for_application () +{ + for PROG in "$@" + do + which "$PROG" >/dev/null 2>&1 + if test $? -ne 0; then + cat >&2 </dev/null 2>/dev/null +if test $? -eq 0 +then + libtoolize=libtoolize +else + glibtoolize --version >/dev/null 2>/dev/null + if test $? -eq 0 + then + libtoolize=glibtoolize + else + cat >&2 <