Tag
Hash :
d9b98a63
Author :
Date :
1998-10-13T18:51:29
F77 changes + some random fixes * libobj7.test: Updated to reflect minor change in automake (test wasn't resilient enough). * instman.test: Updated to reflect fact that mkinstalldirs will be in distribution. * cxxonly.test: Removed. * Makefile.am (TESTS): Added compile_f_c_cxx.test. * compile_f_c_cxx.test: New file. * Makefile.am (TESTS): Added flink.test link_c_cxx.test link_f_c.test link_f_c_cxx.test link_f_cxx.test link_f_only.test. Removed flink.test. * flibs.test: New File. * link_c_cxx.test: New file. * link_f_c.test: New file. * link_f_c_cxx.test: New file. * link_f_cxx.test: New file. * link_f_only.test: New file. * Makefile.am (TESTS): Add cxxonly.test, fonly.test, flink.test, fnoc.test and fo.test. * cxxonly.test: New file. * fonly.test: New file. * flink.test: New file. * fnoc.test: New file. * fo.test: New file.
#! /bin/sh
# Test to make sure rules to invoke all compilers are selected with
# mixed source objects.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
. $srcdir/defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_CXX
AC_PROG_FC
MDL_F77_LIBRARY_LDFLAGS
END
cat > Makefile.am << 'END'
bin_PROGRAMS = foo
foo_SOURCES = foo.f bar.c baz.cc
foo_LDADD = @FLIBS@
END
: > foo.f
: > bar.c
: > baz.cc
$AUTOMAKE || exit 1
# Look for the macros at the beginning of rules. Be careful, as there
# are literal tabs at the beginning of the search strings.
grep ' \$(COMPILE)' Makefile.in || exit 1
grep ' \$(CXXCOMPILE)' Makefile.in || exit 1
grep ' \$(FCOMPILE)' Makefile.in || exit 1
exit 0