diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-10-08 08:34:13 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-10-09 07:28:26 +0200 |
commit | 825150b08505ed83fd7257f671fb1889aa41a0e6 (patch) | |
tree | c80fa9023c3a990f3b89bd89493dd294d9d85aec /configure.ac | |
parent | d4b6c86c7f4b3e2000a2d1be8947102c2e58150f (diff) | |
download | bison-825150b08505ed83fd7257f671fb1889aa41a0e6.tar.gz |
configure: don't require Flex
Flex should not be required to build Bison or run the test suite (of
course it is needed for maintaining Bison). Yet the Automake
conditional FLEX_WORKS does not work.
* m4/flex.m4 (_AC_PROG_LEX_YYTEXT_DECL): Since this is called
conditionally, don't define LEX_IS_FLEX here, but rather...
(AC_PROG_LEX): here.
* configure.ac: Be more cautious about possibly undefined variables.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 38d64609..90320fb7 100644 --- a/configure.ac +++ b/configure.ac @@ -211,10 +211,10 @@ AC_CONFIG_FILES([src/yacc], [chmod +x src/yacc]) # Checks for programs. AM_MISSING_PROG([DOT], [dot]) AC_PROG_LEX -$LEX_IS_FLEX || test "X$LEX" = X: || { +if ! "$LEX_IS_FLEX" || test "X$LEX" = X:; then AC_MSG_WARN([bypassing lex because flex is required]) LEX=: -} +fi AM_CONDITIONAL([FLEX_WORKS], [$LEX_IS_FLEX]) AM_CONDITIONAL([FLEX_CXX_WORKS], [$LEX_IS_FLEX && test $bison_cv_cxx_works = yes]) |