tests: more information about Lex and Yacc programs
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 21 Jan 2013 14:45:17 +0000 (15:45 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 21 Jan 2013 14:45:17 +0000 (15:45 +0100)
* t/get-sysconf.sh: Try to also get the version of '$LEX' and '$YACC'.
This will help debugging of user-reported problems.

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

index 4c68108..bd4932f 100755 (executable)
@@ -46,6 +46,14 @@ $PERL -V || st=1
 # happen with older perl installation, or on MinGW/MSYS.
 $PERL -e 'use TAP::Parser; print $TAP::Parser::VERSION, "\n"' || :
 
+# It's OK if the selected Lex and Yacc programs don't know how to print
+# the version number or the help screen; those are usually available only
+# for Flex and Bison.
+$LEX --version || :
+$LEX --help || :
+$YACC --version || :
+$YACC --help || :
+
 cat "$am_top_builddir/config.log" || st=1
 cat "$am_top_builddir/t/wrap/aclocal-$APIVERSION" || st=1
 cat "$am_top_builddir/t/wrap/automake-$APIVERSION" || st=1