summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-08-26 08:43:28 -0400
committerGaetan Nadon <memsize@videotron.ca>2011-09-01 13:38:44 -0400
commitaaa7de6f16d2f36b2ef9fd30a77abb7cd697ea5d (patch)
treef137329352dc70b4ab516ce34acc502e2f8478ca /Makefile.am
parent25f85dd2171e3c0810a5555c99e7fe3870566f0a (diff)
lex and yacc: add error checking when yacc is missing
This configuration snippet is copied from app/twm and xgc. It handles the case when yacc tool is missing but yacc generated code in the tarball can be used. Unlike other macros AC_PROG_YACC sets the YACC variable to "yacc" as a last resort, even if no programs have been found. Improve error checking by issuing an error message if yacc is not found. The module cannot build anyway, unless from a published tarball. If laygram.c is already there, do not abort the configuration if yacc is missing as it is not needed. If both generated code and yacc are missing, abort configuration. Yacc is a required tool to build the package. The test for YACC_INST is cross-compiling friendly. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions