Tag
Hash :
d0e49df5
Author :
Date :
1999-01-06T13:01:38
Fri Dec 11 10:20:42 1998 Matthew D. Langston <langston@SLAC.Stanford.EDU> * compile_f_c_cxx.test: Change to use F77 and F77LINK instead of FC and FLINK, respectively. * flibs.test: same * fnoc.test: same * fo.test: same * fonly.test: same * link_f_c.test: same * link_f_c_cxx.test: same * link_f_cxx.test: same * link_f_only.test: same Fri Dec 11 10:23:17 1998 Matthew D. Langston <langston@SLAC.Stanford.EDU> * automake.in, automake.texi: Change all of the Fortran 77 code to use the new `F77' prefix instead of the older `FC' prefix. Specifically this changed FC, FCOMPILE, LTFCOMPILE, FLINK and FLD to F77, F77COMPILE, LTF77COMPILE, F77LINK and F77LD, respectively.
#! /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
AC_PROG_F77
END
cat > Makefile.am << 'END'
bin_PROGRAMS = lavalamp
lavalamp_SOURCES = lava.c lamp.cxx lamp2.f
END
: > lava.c
: > lamp.cxx
: > lamp2.f
$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 '.\$(F77LINK)' Makefile.in && exit 1
grep '.\$(LINK)' Makefile.in && exit 1
exit 0