X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=build.sh;h=57f3d4449a99bef83b75b50f425dc548bc9ead60;hb=1aa4295ba6875ceb02a7383237bc2485ffab9c1e;hp=ca41cad0d28dc311373a52b2769ef731bd889582;hpb=a68fbc307be87f0b24fa5c8e6d0bc2116672a158;p=collectd.git diff --git a/build.sh b/build.sh index ca41cad0..57f3d444 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +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 <