3 # Test library-specific flags.
5 .
$srcdir/defs ||
exit 1
7 cat >> configure.
in << '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
21 # Make sure `compile' is required.
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