Commit 1c60a0f7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

bootstrap: fail hard if flex or bison are missing and needed

(cherry picked from commit 31acc2f0)
parent 14f1d938
...@@ -52,21 +52,17 @@ fi ...@@ -52,21 +52,17 @@ fi
# Check for flex and bison # Check for flex and bison
if ! flex --version >/dev/null 2>&1; then if ! flex --version >/dev/null 2>&1; then
cat << EOF echo "ERROR: flex is not installed." >&2
NOTE: flex appears to be missing. Please install it. if ! test -f modules/codec/webvtt/CSSLexer.c; then
Otherwise, you might not be able to build properly. exit 1
========================================================================== fi
EOF
fi fi
if ! bison --version >/dev/null 2>&1; then if ! bison --version >/dev/null 2>&1; then
cat << EOF echo "ERROR: GNU bison is not installed." >&2
NOTE: bison appears to be missing. Please install it. if ! test -f modules/codec/webvtt/CSSGrammar.c; then
Otherwise, you might not be able to build properly. exit 1
========================================================================== fi
EOF
fi fi
### ###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment