diff options
author | Matt Turner <mattst88@gmail.com> | 2020-04-07 13:23:37 -0700 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-04-19 18:41:35 +0200 |
commit | 2885cf2e65042b3dbc44fc232fd35840df255935 (patch) | |
tree | 6ec3d0c9f583fe838b557f558c6d40bd7c9bc8e5 | |
parent | 4f2813a313ae03d1a3d39e4b38a5bf8e549b16b1 (diff) |
build: Allow building from tarballs without yacc/lex
The generated files are included in the tarballs already, but
configure.ac was coded to fail if yacc/lex were not found regardless.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a04d94bc..3496e410 100644 --- a/configure.ac +++ b/configure.ac @@ -29,13 +29,13 @@ AC_PROG_SED AM_PROG_LEX AC_PROG_YACC -if test -z "$ac_cv_prog_YACC" +if test -z "$ac_cv_prog_YACC" -a ! -f "${srcdir}/src/parser_bison.c" then echo "*** Error: No suitable bison/yacc found. ***" echo " Please install the 'bison' package." exit 1 fi -if test -z "$ac_cv_prog_LEX" +if test -z "$ac_cv_prog_LEX" -a ! -f "${srcdir}/src/scanner.c" then echo "*** Error: No suitable flex/lex found. ***" echo " Please install the 'flex' package." |