diff options
author | Geoff Levand <geoff@infradead.org> | 2018-01-06 00:47:39 +0000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-01-10 13:34:54 +1100 |
commit | e3f78333a2a16760d6a497b84329c103208e921e (patch) | |
tree | b688f1df887db92ab7d24c9ff824d19028cf8a94 | |
parent | 7aa2d8a3aefc31c4503d8d9e361c791179894b34 (diff) | |
download | talos-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.ac | 6 |
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 |