summaryrefslogtreecommitdiff
path: root/tests/yacc.test
blob: 3dd07492831eb0c2c8a1b0eb412fa06a73205217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh

# Test to make sure intermediate .c file is built from yacc source.
# Bug from Thomas Morgan.

. $srcdir/defs || exit 1

cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_YACC
END

cat > Makefile.am <<'END'
bin_PROGRAMS = zardoz
zardoz_SOURCES = zardoz.y
END

$AUTOMAKE || exit 1

grep 'zardoz.c' Makefile.in