From: Stefano Lattarini Date: Sat, 29 Jan 2011 12:13:53 +0000 (+0100) Subject: tests init: better messages for 'yacc' and 'lex' requirements X-Git-Tag: ylwrap-refactor-abandoned-branch~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=478d8f99b33b22809f7e04245869a60507e8207b;p=thirdparty%2Fautomake.git 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. --- diff --git a/ChangeLog b/ChangeLog index a372c6c5a..8b1968353 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-01-29 Stefano Lattarini + Ralf Wildenhues + + 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 configure: look for a lex program to be used by the testsuite diff --git a/tests/defs.in b/tests/defs.in index d755c2616..449e3e319 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. *)