[vlc-commits] bootstrap: warn if flex or bison are missing

Rémi Denis-Courmont git at videolan.org
Tue Nov 28 19:15:04 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 28 20:14:49 2017 +0200| [105b13c813a864b51f409617e415a2b2fe747342] | committer: Rémi Denis-Courmont

bootstrap: warn if flex or bison are missing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=105b13c813a864b51f409617e415a2b2fe747342
---

 bootstrap | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/bootstrap b/bootstrap
index f251f9ebd9..e701f519d1 100755
--- a/bootstrap
+++ b/bootstrap
@@ -50,6 +50,25 @@ Otherwise, you will not be able to build a source tarball.
 EOF
 fi
 
+# Check for flex and bison
+if ! flex --version >/dev/null 2>&1; then
+	cat << EOF
+NOTE: flex appears to be missing. Please install it.
+Otherwise, you might not be able to build properly.
+==========================================================================
+
+EOF
+fi
+
+if ! bison --version >/dev/null 2>&1; then
+	cat << EOF
+NOTE: bison appears to be missing. Please install it.
+Otherwise, you might not be able to build properly.
+==========================================================================
+
+EOF
+fi
+
 ###
 ###  classic bootstrap stuff
 ###



More information about the vlc-commits mailing list