X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=build.sh;h=804b2e2593b6d497e0a15dbd77f6a4e35343c446;hb=0171b227b670c7ca338b26bfaff303fd7cf2d023;hp=ca41cad0d28dc311373a52b2769ef731bd889582;hpb=a68fbc307be87f0b24fa5c8e6d0bc2116672a158;p=collectd.git diff --git a/build.sh b/build.sh index ca41cad0..804b2e25 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,58 @@ #! /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>/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 <