1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #! /bin/sh
- required='cc yacc'
- . test-init.sh
- cat >> configure.ac << 'END'
- AC_PROG_CC
- AC_PROG_YACC
- AC_OUTPUT
- END
- cat > Makefile.am << 'END'
- bin_PROGRAMS = foo
- foo_SOURCES = foo.y
- AM_YFLAGS = -d
- check-dist: distdir
- test -f $(distdir)/foo.y
- test -f $(distdir)/foo.c
- test -f $(distdir)/foo.h
- END
- cat > foo.y << 'END'
- %union
- {
- int i;
- char c;
- }
- %%
- WORD: "up";
- %%
- END
- $ACLOCAL
- $AUTOMAKE -a
- $AUTOCONF
- ./configure
- $MAKE foo.h
- test -f foo.h
- rm -f foo.h foo.c
- $MAKE check-dist
- rm -f foo.h
- $MAKE foo.h
- test -f foo.h
- $FGREP 'y.tab.h' foo.h && exit 1
- $MAKE foo.c
- test -f foo.h
- test -f foo.c
- $MAKE distclean
- test -f foo.h
- test -f foo.c
- ./configure
- $MAKE maintainer-clean
- test ! -e foo.h
- test ! -e foo.c
- :
|