From ebd3e2400d05f779c0be6f1db352fe0e55a2c435 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Sun, 18 Jul 2010 09:38:40 -0400 Subject: config: allow to build tarball when yacc is missingmaster Autoconf does not handle this scenario as well as Automake does. If gram.c is already there, do not abort the configuration if yacc is missing as it is not needed. If both xkbparse.c and yacc are missing, abort configuration. Yacc is a required tool to build the package. Signed-off-by: Gaetan Nadon --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 949aeba..d1035d8 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,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_CHECK_FILE([$srcdir/gram.c], [], + [test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile gram.y])]) AC_PROG_CC AC_PROG_INSTALL -- cgit v1.2.3