X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=build.sh;h=804b2e2593b6d497e0a15dbd77f6a4e35343c446;hb=bab5b0e471b1e7cd86595873e2f926943cde811b;hp=3efb44f64047c5bdeedf6dc5d646230645a4afcd;hpb=3bb58d8d87a0db2b3177cbc52c2078c5543e7944;p=collectd.git diff --git a/build.sh b/build.sh index 3efb44f6..804b2e25 100755 --- a/build.sh +++ b/build.sh @@ -1,9 +1,52 @@ #! /bin/sh -libtoolize=libtoolize +GLOBAL_ERROR_INDICATOR=0 -if which glibtoolize > /dev/null 2>&1; then - libtoolize=glibtoolize +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 <