[PATCH app-xkbcomp] config: allow to build tarball when yacc is missing
Yaakov (Cygwin/X)
yselkowitz at users.sourceforge.net
Sat Jul 10 22:33:25 PDT 2010
On Sat, 2010-07-10 at 10:14 -0400, Gaetan Nadon wrote:
> diff --git a/configure.ac b/configure.ac
> index 3ad342c..eae4640 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([xkbparse.c], [],
> + [test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile xkbparse.y])])
> AC_PROG_INSTALL
You need to test for $srcdir/xkbparse.c to support VPATH builds.
Yaakov
More information about the xorg-devel
mailing list