On 11/22/2012 10:39 AM, Stefano Lattarini wrote: > > >> FAIL: t/lex-header >> lex-header: running flex --version >> flex version 2.5.4 >> > OK, this version of flex is ~ 15 years old, and ... > >> /bin/bash ./ylwrap `test -f 'lexer.l' || echo './'`lexer.l \ >> lex.yy.c foo-lexer.c -- flex --header-file=mylex.h >> flex: unknown flag '-'. For usage, try >> flex --help >> *** Error code 1 >> make: Fatal error: Command failed for target `foo-lexer.c' >> > ... doesn't support the '--header-file' option. This issue has been > reported once already (in automake bug#12836, which I am CC:ing). > The patch should take care of the issue. > > -*-*-*- > > Subject: [PATCH] tests: fix a spurious failure with older flex versions > > See automake bug#11524 and bug#12836. > > * t/lex-header.sh: Here, we use flex option '--header-file', > but that option is not supported by some older flex versions. > Simply skip this test if such an old flex version is detected. > I've now pushed this patch (to maint).
Regards, Stefano