build.sh: Check for lex and yacc.
[collectd.git] / build.sh
index 3efb44f..cede2e4 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,15 @@
 #! /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