diff options
author | Explorer09 <explorer09@gmail.com> | 2016-11-26 23:47:12 +0800 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-12-29 17:26:07 -0500 |
commit | adddfba7ab9f640e9d02819909e53b7a220766ba (patch) | |
tree | 5a52f6438922449d72dbe87aca7cd9125966d145 /configure.ac | |
parent | 6964073c594cf999d3747993b73f707e4702e024 (diff) |
build: New configure option '--disable-bootstrap'.
If configure is run with '--disable-bootstrap', then stage1flex won't
be built and stage1scan.c will be generated by sed'ing scan.c.
This option is intended to workaround bootstrap bugs rather than to
fix the bootstrapping issues which are proving subtler and harder to
fix than anyone would like.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7d742c5..901339f 100644 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,15 @@ AC_ARG_ENABLE([libfl], [], [enable_libfl=yes]) AM_CONDITIONAL([ENABLE_LIBFL], [test "x$enable_libfl" = xyes]) +# --disable-bootstrap is intended only to workaround problems with bootstrap +# (e.g. when cross-compiling flex or when bootstrapping has bugs). +# Ideally we should be able to bootstrap even when cross-compiling. +AC_ARG_ENABLE([bootstrap], + [AS_HELP_STRING([--disable-bootstrap], + [don't perform a bootstrap when building flex])], + [], [enable_bootstrap=yes]) +AM_CONDITIONAL([ENABLE_BOOTSTRAP], [test "x$enable_bootstrap" = xyes]) + AC_PATH_PROG([BISON], bison, no) AS_IF([test "$BISON" != no],[], [ AC_SUBST([BISON], [\${top_srcdir}/build-aux/missing bison]) |