+2011-01-11 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ tests: do not force yacc-requiring tests to use bison
+ * tests/defs.in: New required entry 'yacc'. Remove old
+ required entry 'bison'.
+ * tests/cond35.test ($required): Require yacc, not bison.
+ * tests/cond36.test: Likewise.
+ * tests/pr204.test: Likewise.
+ * tests/silent-many-gcc.test: Likewise.
+ * tests/silent-many-generic.test: Likewise.
+ * tests/silent-yacc-gcc.test: Likewise.
+ * tests/silent-yacc-generic.test: Likewise.
+ * tests/subpkg.test: Likewise.
+ * tests/suffix10.test: Likewise.
+ * tests/yacc-basic.test: Likewise.
+ * tests/yacc-clean.test: Likewise.
+ * tests/yacc-d-basic.test: Likewise.
+ * tests/yacc-d-vpath.test: Likewise.
+ * tests/yacc-dist-nobuild.test: Likewise.
+ * tests/yacc-nodist.test: Likewise.
+ * tests/yacc4.test: Likewise.
+ * tests/yacc6.test: Likewise.
+ * tests/yacc7.test: Likewise.
+ * tests/yacc8.test: Likewise.
+ * tests/yaccdry.test: Likewise.
+ * tests/yaccvpath.test: Likewise.
+
2011-01-10 Stefano Lattarini <stefano.lattarini@gmail.com>
yacc: warn about conditional content in *YFLAGS variables
#!/bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Check rules output for parser defined conditionally.
# Report from Roman Fietze.
-required='flex bison gcc'
+required='flex yacc gcc'
. ./defs || Exit 1
set -e
#!/bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Check rules output for parser defined conditionally.
-required='flex bison gcc'
+required='flex yacc gcc'
. ./defs || Exit 1
set -e
# Check that each required tool is present.
case $tool in
:) ;;
- bison)
- # Since bison is required, we pick YACC for ./configure.
- YACC='bison -y'
- export YACC
- echo "$me: running bison --version"
- ( bison --version ) || exit 77
- ;;
bzip2)
# Do not use --version, bzip2 still tries to compress stdin.
echo "$me: running bzip2 --help"
echo "$me: running texi2dvi -o /dev/null --version"
( texi2dvi -o /dev/null --version ) || exit 77
;;
+ yacc)
+ if test x"$YACC" = x"no"; then
+ # The user has explicitly told he doesn't want a yacc program
+ # to be used.
+ echo "$me: \$YACC is \"no\", skipping test" >&2
+ exit 77
+ elif test -z "$YACC"; then
+ # The user hasn't explicitly specified any yacc program in the
+ # environment, so we try to use bison, skipping the test if it's
+ # not found.
+ YACC='bison -y'
+ export YACC
+ echo "$me: running bison --version"
+ bison --version || exit 77
+ fi
+ ;;
# Generic case: the tool must support --version.
*)
echo "$me: running $tool --version"
#! /bin/sh
-# Copyright (C) 2002, 2004, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004, 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# For PR 204.
# Sources derived from nodist_ sources should not be distributed.
-required='bison gcc'
+required='yacc gcc'
. ./defs || Exit 1
set -e
#!/bin/sh
-# Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# This test requires the GNU compilers; keep it in sync with sister test
# `silent-many-generic.test', which should work with generic compilers.
-required='gcc g++ gfortran flex bison'
+required='gcc g++ gfortran flex yacc'
. ./defs || Exit 1
set -e
#!/bin/sh
-# Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# and forces the use of gcc depmode.
# FIXME: generic C++/Fortran compilers should suffice here
-required='g++ gfortran flex bison'
+required='g++ gfortran flex yacc'
. ./defs || Exit 1
set -e
#!/bin/sh
-# Copyright (C) 2010 Free Software Foundation, Inc.
+# Copyright (C) 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Check silent-rules mode for Yacc, forcing gcc depmode.
# Keep this in sync with sister test `silent-yacc-generic.test'.
-required='gcc bison'
+required='gcc yacc'
. ./defs || Exit 1
set -e
#!/bin/sh
-# Copyright (C) 2010 Free Software Foundation, Inc.
+# Copyright (C) 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Check silent-rules mode for Yacc.
# Keep this in sync with sister test `silent-yacc-gcc.test'.
-required='bison'
+required=yacc
. ./defs || Exit 1
set -e
#! /bin/sh
-# Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2004, 2006, 2011 Free Software Foundation,
+# Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Check subpackage handling.
-required='gcc bison'
+required='gcc yacc'
. ./defs || Exit 1
set -e
#! /bin/sh
-# Copyright (C) 2002, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Make sure that derivations work with .lo too.
# (related to PR/37)
-required='libtoolize bison'
+required='libtoolize yacc'
. ./defs || Exit 1
set -e
# Basic semantic checks on Yacc support.
-required=bison
+required=yacc
. ./defs || Exit 1
set -e
# are cleaned by "make clean", while .c and .h files derived from
# distributed .y sources are cleaned by "make maintainer-clean".
-required=bison
+required=yacc
. ./defs || Exit 1
set -e
# Tests on basic Yacc support for when we have -d in YFLAGS, AM_YFLAGS
# or maude_YFLAGS.
-required=bison
+required=yacc
. ./defs || Exit 1
set -e
# Please keep this in sync with sister test `yaccvpath.test'.
-required=bison
+required=yacc
. ./defs || Exit 1
set -e
# Check that distributed Yacc-generated parsers are not uselessly
# remade from an unpacked distributed tarball.
-required=bison
+required=yacc
. ./defs || Exit 1
set -e
# Checks for .c and .h files derived from non-distributed .y sources.
-required=bison
+required=yacc
. ./defs || Exit 1
set -e
#! /bin/sh
-# Copyright (C) 2001, 2002, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Some simple tests of ylwrap functionality.
-required='bison gcc'
+required='yacc gcc'
. ./defs || Exit 1
set -e
#! /bin/sh
-# Copyright (C) 2001, 2002, 2003, 2004, 2006, 2007, 2010 Free Software
-# Foundation, Inc.
+# Copyright (C) 2001, 2002, 2003, 2004, 2006, 2007, 2010, 2011 Free
+# Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Also make sure depcomp does not needlessly update headers.
# Report from Paolo Bonzini.
-required='gcc bison GNUmake'
+required='gcc yacc GNUmake'
. ./defs || Exit 1
set -e
#! /bin/sh
-# Copyright (C) 2001, 2002, 2003, 2004, 2010 Free Software Foundation,
-# Inc.
+# Copyright (C) 2001, 2002, 2003, 2004, 2010, 2011 Free Software
+# Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Also check that the sources of the generated parser are distributed.
# PR/47.
-required=bison
+required=yacc
. ./defs || Exit 1
set -e
#! /bin/sh
-# Copyright (C) 2002, 2003, 2004, 2006, 2010 Free Software Foundation,
-# Inc.
+# Copyright (C) 2002, 2003, 2004, 2006, 2010, 2011 Free Software
+# Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Test for subdir parsers.
-required="gcc bison"
+required="gcc yacc"
. ./defs || Exit 1
#! /bin/sh
-# Copyright (C) 2010 Free Software Foundation, Inc.
+# Copyright (C) 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Removal recovery rules for headers should not remove files with `make -n'.
-required=bison
+required=yacc
. ./defs || Exit 1
set -e
# Please keep this in sync with sister test `yacc-d-vpath.test'.
-required=bison
+required=yacc
. ./defs || Exit 1
set -e