summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2018-01-06 00:47:39 +0000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-01-10 13:34:54 +1100
commite3f78333a2a16760d6a497b84329c103208e921e (patch)
treeb688f1df887db92ab7d24c9ff824d19028cf8a94
parent7aa2d8a3aefc31c4503d8d9e361c791179894b34 (diff)
downloadtalos-petitboot-e3f78333a2a16760d6a497b84329c103208e921e.tar.gz
talos-petitboot-e3f78333a2a16760d6a497b84329c103208e921e.zip
configure: Add check for lex, yacc
Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3ed41ee..f394de6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,7 +26,13 @@ AS_IF([test "x$CFLAGS" = "x"], [AC_SUBST([CFLAGS], [""])])
AC_PROG_CC
AC_PROG_LEX
+if test -z "$($LEX --version)"; then
+ AC_MSG_ERROR([[Please install flex/lex]])
+fi
AC_PROG_YACC
+if test -z "$($YACC --version)"; then
+ AC_MSG_ERROR([[Please install bison/yacc]])
+fi
AC_PROG_INSTALL
AM_INIT_AUTOMAKE
OpenPOWER on IntegriCloud