* tests/Makefile.am (TESTS): Added yacc5.test.
[automake.git] / tests / compile_f_c_cxx.test
blob8aa089531e50e046feea54657c68347d4a6878f5
1 #! /bin/sh
3 # Test to make sure rules to invoke all compilers are selected with
4 # mixed source objects.
5 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
7 . $srcdir/defs || exit 1
9 cat >> configure.in << 'END'
10 AC_PROG_CC
11 AC_PROG_CXX
12 AC_PROG_F77
13 AC_F77_LIBRARY_LDFLAGS
14 END
16 cat > Makefile.am << 'END'
17 bin_PROGRAMS = foo
18 foo_SOURCES = foo.f bar.c baz.cc
19 foo_LDADD = @FLIBS@
20 END
22 : > foo.f
23 : > bar.c
24 : > baz.cc
26 $ACLOCAL || exit 1
27 $AUTOMAKE || exit 1
30 # Look for the macros at the beginning of rules. Be careful, as there
31 # are literal tabs at the beginning of the search strings.
32 grep ' \$(COMPILE)' Makefile.in || exit 1
33 grep ' \$(CXXCOMPILE)' Makefile.in || exit 1
34 grep ' \$(F77COMPILE)' Makefile.in || exit 1
36 exit 0