* configure.in: Updated to 1.4d and released.
[automake.git] / tests / suffix2.test
blobb2f144ee57c9af58f1bba36ae0b2bf312653d758
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 $AUTOMAKE -a || exit 1
30 test "`fgrep '.c.o' Makefile.in | wc -l`" -eq 1