defs.in: Give better diagnostic messages when a test must be skipped to the unavailability of yacc or lex program. Also, improve syncing between code for requiring yacc and lex. --- ChangeLog | 8 ++++++++ tests/defs.in | 14 +++++--------- 2 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog index a372c6c..8b19683 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-01-29 Stefano Lattarini <stefano.lattar...@gmail.com> + Ralf Wildenhues <ralf.wildenh...@gmx.de> + + tests init: better messages for 'yacc' and 'lex' requirements + * tests/defs.in: Give better diagnostic messages when a test must + be skipped to the unavailability of yacc or lex program. Also, + improve syncing between code for requiring yacc and lex. + 2011-01-28 Stefano Lattarini <stefano.lattar...@gmail.com> configure: look for a lex program to be used by the testsuite diff --git a/tests/defs.in b/tests/defs.in index d755c26..449e3e3 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -213,23 +213,19 @@ do ;; lex) if test x"$LEX" = x"false"; then - # No lex program was found at configure time, or the user has - # explicitly told he doesn't want a lex program to be used. - echo "$me: \$LEX is \"false\", skipping test" >&2 + echo "$me: no working \$LEX found at configure time," \ + "or explicitly disabled" >&2 exit 77 fi export LEX ;; yacc) if test x"$YACC" = x"false"; then - # No yacc program was found at configure time, or the user has - # explicitly told he doesn't want a yacc program to be used. - echo "$me: \$YACC is \"false\", skipping test" >&2 + echo "$me: no working \$YACC found at configure time," \ + "or explicitly disabled" >&2 exit 77 - else - # Make YACC available to configure by exporting it. - export YACC fi + export YACC ;; # Generic case: the tool must support --version. *) -- 1.7.2.3