2 # Copyright (C) 2004 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Check rules output for parser defined conditionally.
18 # Report from Roman Fietze.
20 required
='flex bison gcc'
25 cat >>configure.
in <<'EOF'
26 AM_CONDITIONAL([CASE_A], test -z "$case_B")
33 cat >>Makefile.am
<<'EOF'
36 BUILT_SOURCES = tparse.h
40 ta_SOURCES = ta.c tparse.h tscan.l tparse.y
44 tb_SOURCES = tb.c tparse.h tscan.l tparse.y
57 $AUTOMAKE --add-missing
59 test `grep tparse.h: Makefile.in | wc -l` = 1
61 cat > tscan.l
<< 'END'
66 cat > tparse.y
<< 'END'
68 void yyerror
(char
*s
) {}
72 foobar
: 'f' 'o' 'o' 'b' 'a' 'r' EOF
{};
88 .
/configure case_B
=yes