X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=build.sh;h=cede2e48f2fc8cf3725ae04c9928e7862f1dd864;hb=903ebad4e6fe24e6b04097f18048b63ebb3bcb29;hp=89d3a68e0e49d86a3f586cd7c995530c6e344ff7;hpb=418249bad5af0493ba4e08fdaf22fd7e402be6af;p=collectd.git diff --git a/build.sh b/build.sh index 89d3a68e..cede2e48 100755 --- a/build.sh +++ b/build.sh @@ -1,9 +1,25 @@ #! /bin/sh +if ! which lex > /dev/null 2>&1; then + echo "WARNING: lex not found!" >&2 + echo "Make sure that you have a flex compatible tool available." >&2 +fi + +if ! which yacc > /dev/null 2>&1; then + echo "WARNING: yacc not found!" >&2 + echo "Make sure that you have a GNU bison compatible tool available." >&2 +fi + +libtoolize=libtoolize + +if which glibtoolize > /dev/null 2>&1; then + libtoolize=glibtoolize +fi + set -x autoheader \ && aclocal \ -&& libtoolize --ltdl --copy --force \ +&& $libtoolize --ltdl --copy --force \ && automake --add-missing --copy \ && autoconf