]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix a spurious failure with older flex versions
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 22 Nov 2012 09:29:37 +0000 (10:29 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 24 Nov 2012 11:27:33 +0000 (12:27 +0100)
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.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/lex-header.sh

index f8d7333e64e77f91acab6f488abc65fc73c4ea48..ad2976e35ef510a7e3bd54ef881d7300fde24775 100755 (executable)
 required='cc flex'
 . ./defs || exit 1
 
+# Here, we need to use the use flex option '--header-file', but some
+# older flex versions don't support is (see automake bug#11524 and
+# bug#12836).  Skip this test if such an old flex version is detected.
+$LEX --help | grep '.*--header-file' \
+  || skip_ "flex doesn't support the --header-file' option"
+
 cat >> configure.ac << 'END'
 AC_PROG_CC
 AC_PROG_LEX