Author :
Tom Tromey
Date :
1998-10-13 18:51:29
Hash :d9b98a63 Message :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.
tests/link_c_cxx.test
#! /bin/sh
# Test to make sure the C++ linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
. $srcdir/defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_CXX
END
cat > Makefile.am << 'END'
bin_PROGRAMS = lavalamp
lavalamp_SOURCES = lava.c lamp.cxx
END
: > lava.c
: > lamp.cxx
$AUTOMAKE || exit 1
# We should only see the C++ linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
grep '.\$(CXXLINK)' Makefile.in || exit 1
# We should not see these patterns:
grep '.\$(FLINK)' Makefile.in && exit 1
grep '.\$(LINK)' Makefile.in && exit 1
exit 0