X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=build.sh;h=3822c2bc1b217a9a1c93e730bfbadd0561f7a20f;hb=98ace6ba53855a4984e79bd7a6ed9a785478ba4f;hp=ca41cad0d28dc311373a52b2769ef731bd889582;hpb=a68fbc307be87f0b24fa5c8e6d0bc2116672a158;p=collectd.git diff --git a/build.sh b/build.sh index ca41cad0..3822c2bc 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,54 @@ #! /bin/sh +GLOBAL_ERROR_INDICATOR=0 + +check_for_application () +{ + for PROG in "$@" + do + if ! which "$PROG" >/dev/null 2>&1; then + cat >&2 </dev/null 2>&1 +then + libtoolize=libtoolize +else if which glibtoolize >/dev/null 2>&1 +then + libtoolize=glibtoolize +else + cat >&2 <