view m4/bison.m4 @ 5929:1bd98d92c928

* bison.m4: Note that precious decls of YACC & YFLAGS will be unnecessary for Autoconfs > 2.59c.
author Derek R. Price <derek@ximbiot.com>
date Mon, 20 Jun 2005 15:03:36 +0000
parents 3508054a2863
children f6cba5a556ce
line wrap: on
line source

#serial 4

# Copyright (C) 2002, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

AC_DEFUN([gl_BISON],
[
  # getdate.y works with bison only.
  : ${YACC='bison -y'}
dnl
dnl Declaring YACC & YFLAGS precious will not be necessary after GNULIB
dnl requires an Autoconf greater than 2.59c, but it will probably still be
dnl useful to override the description of YACC in the --help output, re
dnl getdate.y assuming `bison -y'.
  AC_ARG_VAR(YACC,
[The `Yet Another C Compiler' implementation to use.  Defaults to `bison -y'.
Values other than `bison -y' will most likely break on most systems.])dnl
  AC_ARG_VAR(YFLAGS,
[YFLAGS contains the list arguments that will be passed by default to Bison.
This script will default YFLAGS to the empty string to avoid a default value of
`-d' given by some make applications.])dnl
])