* tests/Makefile.am (TESTS): Added yacc5.test.
[automake.git] / tests / suffix2.test
blob4348a8aa92a5a37a60e0226dd83359d5dd9c514e
1 #! /bin/sh
3 # Test to make sure .c.o rule is only included once.
5 . $srcdir/defs || exit 1
7 cat >> configure.in << 'END'
8 AC_PROG_CC
9 AC_PROG_LIBTOOL
10 END
12 cat > Makefile.am << 'END'
13 AUTOMAKE_OPTIONS = no-dependencies
14 lib_LTLIBRARIES = libltdl.la
15 libltdl_la_SOURCES = ltdl.c ltdl.h
16 END
18 : > ltdl.c
19 : > ltdl.h
21 # Create all the files created libtoolize so we don't run libtoolize.
22 # We don't want the user to need libtool to run this test.
23 : > ltconfig
24 : > ltmain.sh
25 : > config.guess
26 : > config.sub
28 set -e
30 $ACLOCAL || exit 1
31 $AUTOMAKE -a
33 grep -c '^\.c\.o:' Makefile.in | grep '^1$'
34 grep -c '^\.c\.obj:' Makefile.in | grep '^1$'
36 exit 0