Sync from cvs.
[gnulib.git] / m4 / bison.m4
1 #serial 4
2
3 # Copyright (C) 2002 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 AC_DEFUN([gl_BISON],
9 [
10 dnl All this cruft, which tries to fail harmlessly when bison is not present,
11 dnl will no longer be necessary after we require an Automake release 1.10 or
12 dnl later, as those avoid generating .c files from .y when not in maintainer
13 dnl mode.  This is currently a fork from the GNULIB version of this file.
14   # getdate.y works with bison only.
15   AM_MISSING_PROG(YACC, bison -y)
16   AC_ARG_VAR(YACC,
17 [The `Yet Another C Compiler' implementation to use.  Defaults to `bison -y'.
18 Values other than `bison -y' will most likely break on most systems.])
19   AC_ARG_VAR(YFLAGS,
20 [YFLAGS contains the list arguments that will be passed by default to Bison.
21 This script will default YFLAGS to the empty string to avoid a default value of
22 `-d' given by some make applications.])
23 ])