Edit

kc3-lang/automake/tests/fnoc.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1999-01-06 13:01:38
    Hash : d0e49df5
    Message : 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.

  • tests/fnoc.test
  • #! /bin/sh
    
    # Test to make sure that pure Fortran 77 sources don't include
    # C-specific code.
    # Matthew D. Langston <langston@SLAC.Stanford.EDU>
    
    . $srcdir/defs || exit 1
    
    cat >> configure.in << 'END'
    AC_PROG_F77
    END
    
    cat > Makefile.am << 'END'
    sbin_PROGRAMS = anonymous
    anonymous_SOURCES = doe.f jane.f
    END
    
    : > doe.f
    : > jane.f
    
    $AUTOMAKE || exit 1
    
    grep '[^F]CC' Makefile.in | grep -v MKDEP && exit 1
    exit 0