X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=build.sh;h=57f3d4449a99bef83b75b50f425dc548bc9ead60;hp=3822c2bc1b217a9a1c93e730bfbadd0561f7a20f;hb=3d74a63ae43c1786eb9b966e2209c24c5643dae8;hpb=39ba035b60b509311874ccf89d11d240c0271a90 diff --git a/build.sh b/build.sh index 3822c2bc..57f3d444 100755 --- a/build.sh +++ b/build.sh @@ -6,7 +6,8 @@ check_for_application () { for PROG in "$@" do - if ! which "$PROG" >/dev/null 2>&1; then + which "$PROG" >/dev/null 2>&1 + if test $? -ne 0; then cat >&2 </dev/null 2>&1 +libtoolize --version >/dev/null 2>/dev/null +if test $? -eq 0 then libtoolize=libtoolize -else if which glibtoolize >/dev/null 2>&1 -then - libtoolize=glibtoolize else - cat >&2 </dev/null 2>/dev/null + if test $? -eq 0 + then + libtoolize=glibtoolize + else + cat >&2 <