typo + new comment
[automake.git] / tests / specflags2.test
blob2866404dcc1f3c84cbdeda7183da1d382f9850ad
1 #! /bin/sh
3 # Test library-specific flags.
5 . $srcdir/defs || exit 1
7 cat >> configure.in << 'END'
8 AC_PROG_CC
9 AC_PROG_CXX
10 AC_PROG_RANLIB
11 END
13 cat > Makefile.am << 'END'
14 AUTOMAKE_OPTIONS = no-dependencies
15 lib_LIBRARIES = libfoo.a
16 libfoo_a_SOURCES = foo.c bar.cc
17 libfoo_a_CFLAGS = -DBAR
18 libfoo_a_CXXFLAGS = -DZOT
19 END
21 # Make sure `compile' is required.
22 $ACLOCAL || exit 1
23 $AUTOMAKE && exit 1
25 : > compile
27 $AUTOMAKE || exit 1
29 # Look for $(COMPILE) -c in .c.o rule.
30 grep 'COMPILE. [^-]' Makefile.in && exit 1
32 # Look for libfoo_a-foo.o.
33 grep foo Makefile.in || exit 1
34 grep '[^-]foo\.o' Makefile.in && exit 1
36 # Look for libfoo_a-bar.o.
37 grep bar Makefile.in || exit 1
38 grep '[^-]bar\.o' Makefile.in && exit 1
40 exit 0