]> git.saurik.com Git - bison.git/blobdiff - configure.ac
examples: improve the output of the "variant" example
[bison.git] / configure.ac
index f7319a153d52f6c6f6bb53fe7fd98fd5684f75c9..992e2033994c54ce40d4a9fcb9cd08cd2d5e83be 100644 (file)
@@ -175,7 +175,10 @@ AC_SUBST([YACC_LIBRARY])
 # Checks for programs.
 AM_MISSING_PROG([DOT], [dot])
 AC_PROG_LEX
-$LEX_IS_FLEX || AC_MSG_ERROR([Flex is required])
+$LEX_IS_FLEX || test "X$LEX" = X: || {
+  AC_MSG_WARN([bypassing lex because flex is required])
+  LEX=:
+}
 AC_PROG_YACC
 AC_PROG_RANLIB
 AC_PROG_GNU_M4