mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
See http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices * HACKING, Makefile.am, NEWS, PACKAGING, README, README-alpha: * TODO, bootstrap, bootstrap.conf: * build-aux/update-b4-copyright, cfg.mk, configure.ac: * data/README, data/bison.m4, data/c++-skel.m4, data/c++.m4: * data/c-skel.m4, data/c.m4, data/glr.c, data/glr.cc: * data/java-skel.m4, data/java.m4, data/lalr1.cc: * data/lalr1.java, data/location.cc: * data/xslt/bison.xsl: * data/xslt/xml2dot.xsl, data/xslt/xml2text.xsl: * data/xslt/xml2xhtml.xsl, data/yacc.c, djgpp/Makefile.maint: * djgpp/README.in, djgpp/config.bat, djgpp/config.sed: * djgpp/config.site, djgpp/config_h.sed, djgpp/djunpack.bat: * djgpp/subpipe.c, djgpp/subpipe.h: * djgpp/testsuite.sed, doc/bison.texinfo: * doc/refcard.tex, etc/README, etc/bench.pl.in: * examples/calc++/Makefile.am, examples/extexi: * lib/abitset.c, lib/abitset.h: * lib/bbitset.h, lib/bitset.c, lib/bitset.h: * lib/bitset_stats.c, lib/bitset_stats.h, lib/bitsetv-print.c: * lib/bitsetv-print.h, lib/bitsetv.c, lib/bitsetv.h: * lib/ebitset.c, lib/ebitset.h, lib/get-errno.c: * lib/get-errno.h, lib/lbitset.c, lib/lbitset.h: * lib/libiberty.h, lib/main.c, lib/timevar.c: * lib/timevar.def, lib/timevar.h, lib/vbitset.c: * lib/vbitset.h, lib/yyerror.c, m4/bison-i18n.m4: * m4/c-working.m4, m4/cxx.m4, m4/subpipe.m4, m4/timevar.m4: * src/LR0.c: * src/LR0.h, src/assoc.c: * src/assoc.h, src/closure.c, src/closure.h, src/complain.c: * src/complain.h, src/conflicts.c, src/conflicts.h: * src/derives.c, src/derives.h, src/files.c, src/files.h: * src/flex-scanner.h, src/getargs.c, src/getargs.h: * src/gram.c, src/gram.h, src/graphviz.c: * src/lalr.c, src/lalr.h: * src/location.c, src/location.h, src/main.c: * src/nullable.c, src/nullable.h: * src/output.c, src/output.h, src/parse-gram.y: * src/print-xml.c, src/print-xml.h, src/print.c, src/print.h: * src/print_graph.c, src/print_graph.h, src/reader.c: * src/reader.h, src/reduce.c, src/reduce.h, src/relation.c: * src/relation.h, src/scan-code.h, src/scan-code.l: * src/scan-gram.h, src/scan-gram.l, src/scan-skel.h: * src/scan-skel.l, src/state.c, src/state.h, src/symlist.c: * src/symlist.h, src/symtab.c, src/symtab.h, src/system.h: * src/tables.c, src/tables.h, src/uniqstr.c, src/uniqstr.h: * tests/actions.at, tests/atlocal.in, tests/c++.at: * tests/calc.at, tests/conflicts.at, tests/cxx-type.at: * tests/existing.at, tests/glr-regression.at: * tests/headers.at, tests/input.at, tests/java.at: * tests/local.at: * tests/output.at, tests/push.at, tests/reduce.at: * tests/regression.at, tests/sets.at, tests/skeletons.at: * tests/synclines.at, tests/testsuite.at, tests/torture.at: * data/Makefile.am, data/location.cc, doc/Makefile.am, src/Makefile.am: * tests/Makefile.am, lib/Makefile.am, examples/Makefile.am: * etc/Makefile.am, m4/m4.m4, src/muscle_tab.c, src/muscle_tab.h: Don't use date ranges in copyright notices. Copyright (C) 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
74 lines
3.1 KiB
Plaintext
74 lines
3.1 KiB
Plaintext
# m4.m4 serial 10
|
|
|
|
# Copyright (C) 2000, 2006, 2007, 2008, 2009, 2010 Free Software
|
|
# Foundation, Inc.
|
|
|
|
# Copying and distribution of this file, with or without modification,
|
|
# are permitted in any medium without royalty provided the copyright
|
|
# notice and this notice are preserved. This file is offered as-is,
|
|
# without warranty of any kind.
|
|
|
|
# AC_PROG_GNU_M4
|
|
# --------------
|
|
# Check for GNU M4, at least 1.4.6 (all earlier versions had bugs in
|
|
# trace support and regexp support):
|
|
# http://lists.gnu.org/archive/html/bug-gnu-utils/2006-11/msg00096.html
|
|
# http://lists.gnu.org/archive/html/bug-autoconf/2009-07/msg00023.html
|
|
# Also, check whether --error-output (through 1.4.x) or --debugfile (2.0)
|
|
# is supported, and AC_SUBST M4_DEBUGFILE accordingly.
|
|
AC_DEFUN([AC_PROG_GNU_M4],
|
|
[AC_ARG_VAR([M4], [Location of GNU M4 1.4.6 or later. Defaults to the first
|
|
program of `m4', `gm4', or `gnum4' on PATH that meets Autoconf needs.])
|
|
AC_CACHE_CHECK([for GNU M4 that supports accurate traces], [ac_cv_path_M4],
|
|
[rm -f conftest.m4f
|
|
ac_had_posixly_correct=${POSIXLY_CORRECT:+yes}
|
|
AS_UNSET([POSIXLY_CORRECT])
|
|
AC_PATH_PROGS_FEATURE_CHECK([M4], [m4 gm4 gnum4],
|
|
[dnl Creative quoting here to avoid raw dnl and ifdef in configure.
|
|
# Root out GNU M4 1.4.5, as well as non-GNU m4 that ignore -t, -F.
|
|
ac_snippet=change'quote(<,>)in''dir(<if''def>,mac,bug)'
|
|
ac_snippet=${ac_snippet}pat'subst(a,\(b\)\|\(a\),\1)d'nl
|
|
test -z "`$ac_path_M4 -F conftest.m4f </dev/null 2>&1`" \
|
|
&& test -z "`AS_ECHO([$ac_snippet]) | $ac_path_M4 --trace=mac 2>&1`" \
|
|
&& test -f conftest.m4f \
|
|
&& ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:
|
|
rm -f conftest.m4f],
|
|
[AC_MSG_ERROR([no acceptable m4 could be found in \$PATH.
|
|
GNU M4 1.4.6 or later is required; 1.4.13 is recommended])])])
|
|
M4=$ac_cv_path_M4
|
|
AC_CACHE_CHECK([whether $ac_cv_path_M4 accepts --gnu],
|
|
[ac_cv_prog_gnu_m4_gnu],
|
|
[case `$M4 --help < /dev/null 2>&1` in
|
|
*--gnu*) ac_cv_prog_gnu_m4_gnu=yes ;;
|
|
*) ac_cv_prog_gnu_m4_gnu=no ;;
|
|
esac])
|
|
if test "$ac_cv_prog_gnu_m4_gnu" = yes; then
|
|
M4_GNU=--gnu
|
|
else
|
|
M4_GNU=
|
|
fi
|
|
AC_SUBST([M4_GNU])
|
|
if test x$ac_had_posixly_correct = xyes; then
|
|
POSIXLY_CORRECT=:
|
|
if test $ac_cv_prog_gnu_m4_gnu = no; then
|
|
AC_MSG_WARN([The version of M4 that was found does not support -g.])
|
|
AC_MSG_WARN([Using it with POSIXLY_CORRECT set may cause problems.])
|
|
fi
|
|
fi
|
|
AC_CACHE_CHECK([how m4 supports trace files], [ac_cv_prog_gnu_m4_debugfile],
|
|
[case `$M4 --help < /dev/null 2>&1` in
|
|
*debugfile*) ac_cv_prog_gnu_m4_debugfile=--debugfile ;;
|
|
*) ac_cv_prog_gnu_m4_debugfile=--error-output ;;
|
|
esac])
|
|
AC_SUBST([M4_DEBUGFILE], [$ac_cv_prog_gnu_m4_debugfile])
|
|
])
|
|
|
|
# Compatibility for bootstrapping with Autoconf 2.61.
|
|
dnl FIXME - replace this with AC_PREREQ([2.62]) after the release.
|
|
# AC_PATH_PROGS_FEATURE_CHECK was added the same time the slightly broken,
|
|
# undocumented _AC_PATH_PROG_FEATURE_CHECK was deleted.
|
|
m4_ifndef([AC_PATH_PROGS_FEATURE_CHECK],
|
|
[m4_define([AC_PATH_PROGS_FEATURE_CHECK],
|
|
[_AC_PATH_PROG_FEATURE_CHECK([$1], [$2], [$3], [$5])
|
|
])])
|