X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9b2a434d847e5cd9416c7324bcd90fe1153931a5..6a148103bee3eadc306623038e11ecbe9d3cf99b:/configure.ac?ds=sidebyside diff --git a/configure.ac b/configure.ac index 9176d3c4..38e2a58b 100644 --- a/configure.ac +++ b/configure.ac @@ -559,13 +559,15 @@ LIBS="$nmh_save_LIBS" dnl ---------------- dnl CHECK FLEX FIXUP dnl ---------------- -dnl Use LFLAGS make variable setting to work around bug in flex -dnl 2.5.36 and .37 that causes signed/unsigned mismatch, +dnl Use LFLAGS make variable setting to work around bugs in flex +dnl 2.5.35-37 that cause signed/unsigned mismatch, dnl http://sourceforge.net/p/flex/bugs/140/ AS_IF([test "$LEX" = flex], [AS_CASE([`$LEX -V`], + [flex\ 2.5.35], [[LFLAGS=\ +'; printf "%s\n" '\''1,$$s/(size_t) \(num_to_read\)/\1/'\'' w q | ed -s $@']], [flex\ 2.5.3@<:@67@:>@], [[LFLAGS=\ -'; flex -V; cp -p $@ $@.ORIGINAL; printf "%s\n" '\''1,$$s/\( \)int i;/\1yy_size_t i;/'\'' w q | ed -s $@; diff $@ $@.ORIGINAL || true']]) +'; printf "%s\n" '\''1,$$s/\( \)int i;/\1yy_size_t i;/'\'' w q | ed -s $@']]) AC_SUBST([LFLAGS])]) dnl --------------