diff options
author | Thomas E. Dickey <dickey@his.com> | 2020-02-14 01:26:06 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@his.com> | 2020-02-14 01:26:06 +0000 |
commit | d5d8285dd676a9940ee351daada4179a01f151fd (patch) | |
tree | 66db4cc81d60379d9d921971bd2e03b210e98bc0 /configure.ac | |
parent | 1064bad5f2e2a590c1bb7772d94097997ee65ad1 (diff) |
issue #4: configure doesn't fail if flex is not installed
add a check for lex like the existing one for yacc
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 985df1a..143d388 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,12 @@ if test ! -f "$srcdir/src/laygram.c"; then fi fi AC_PROG_LEX +AC_PATH_PROG([LEX_INST], $LEX) +if test ! -f "$srcdir/src/laylex.c"; then + if test -z "$LEX_INST"; then + AC_MSG_ERROR([lex not found - unable to compile laylex.y]) + fi +fi # Checks for header files. PKG_CHECK_MODULES(X11, [x11 xt xmu xext]) |