X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=build.sh;h=bd4c1a319108e28ac3ec0b8822c733bcdd6dd4e2;hp=c92bc4aecf498b7e90c902eece257114c7025f21;hb=849f5394cce97a76da080f6cd9e5194b7f4ee0f0;hpb=caf8a67c62e6b12ac21561f036703e06741cac04 diff --git a/build.sh b/build.sh index c92bc4ae..bd4c1a31 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ GLOBAL_ERROR_INDICATOR=0 -check_for_application () +check_for_application() { for PROG in "$@" do @@ -22,13 +22,11 @@ check_for_application lex bison autoheader aclocal automake autoconf pkg-config libtoolize="" libtoolize --version >/dev/null 2>/dev/null -if test $? -eq 0 -then +if test $? -eq 0; then libtoolize=libtoolize else glibtoolize --version >/dev/null 2>/dev/null - if test $? -eq 0 - then + if test $? -eq 0; then libtoolize=glibtoolize else cat >&2 <