From: Matt Turner Date: Tue, 7 Apr 2020 20:23:37 +0000 (-0700) Subject: build: Allow building from tarballs without yacc/lex X-Git-Tag: v0.9.5~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2885cf2e65042b3dbc44fc232fd35840df255935;p=thirdparty%2Fnftables.git 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 Signed-off-by: Pablo Neira Ayuso --- 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."