X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=build.sh;h=804b2e2593b6d497e0a15dbd77f6a4e35343c446;hb=0171b227b670c7ca338b26bfaff303fd7cf2d023;hp=3822c2bc1b217a9a1c93e730bfbadd0561f7a20f;hpb=c87da66245197f489bb0e9efffc23538cf07e70b;p=collectd.git diff --git a/build.sh b/build.sh index 3822c2bc..804b2e25 100755 --- a/build.sh +++ b/build.sh @@ -25,20 +25,24 @@ check_for_application lex yacc autoheader aclocal automake autoconf check_for_application pkg-config libtoolize="" -if which libtoolize >/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 <