summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-06-04 14:03:55 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-06-04 14:03:55 -0400
commite1d1a9f5b65691338e7a6d41dbbf05bc7073740a (patch)
tree986e3b766a4b63a1496ff158e047d1fdb8e1432c
parent301f7d91b74bd1ef625ba1d82e877294ed283210 (diff)
config: add check for yacc to insure it is installed #27973
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. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 53e9c69..c8ccbde 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,8 @@ XORG_DEFAULT_OPTIONS
AC_PROG_LEX
AC_PROG_YACC
+AC_PATH_PROG([YACC_INST], $YACC)
+test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile gram.y])
AC_PROG_CC
AC_PROG_INSTALL