summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-08-24 18:22:22 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-08-24 18:22:44 -0700
commitb5e27aa2625c1f84ea1ee75fe74374341664a759 (patch)
treeffa4156841521b5f7859ba9c8b1009f2cefcc42e
parent0149d39e6e5cb4384c07d92c00908d0099d5e009 (diff)
downloadbison-b5e27aa2625c1f84ea1ee75fe74374341664a759.tar.gz
build: don't require flex for ordinary builds
* configure.ac (LEX): Don't fail if this is lex, as flex is not required for ordinary builds. Instead, issue a warning and substitute a no-op LEX. Reported by Michael Felt in <http://lists.gnu.org/archive/html/bug-bison/2013-08/msg00009.html>.
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f7319a15..992e2033 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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