From 988eb0e121c0f2c992031002acb7274c2026764b Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Mon, 12 Jul 2010 10:53:34 +0100 Subject: config: allow to build tarball when yacc is missing Autoconf does not handle this scenario as well as Automake does. If xkbparse.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. Reported-by: Julien Cristau Signed-off-by: Gaetan Nadon Signed-off-by: Daniel Stone --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3ad342c..dbda296 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,8 @@ AM_CONFIG_HEADER(config.h) AC_PROG_CC AC_PROG_YACC AC_PATH_PROG([YACC_INST], $YACC) -test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile xkbparse.y]) +AC_CHECK_FILE([$srcdir/xkbparse.c], [], + [test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile xkbparse.y])]) AC_PROG_INSTALL -- cgit v1.2.1