* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / link_f_only.test
blobca5779340dd34d280f20988de63247d6073b7875
1 #! /bin/sh
3 # Test to make sure the Fortran 77 linker is used when appropriate.
4 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
6 . $srcdir/defs || exit 1
8 cat >> configure.in << 'END'
9 AC_PROG_F77
10 END
12 cat > Makefile.am << 'END'
13 bin_PROGRAMS = lavalamp
14 lavalamp_SOURCES = lamp.f
15 END
17 : > lamp.f
19 $AUTOMAKE || exit 1
22 # We should only see the Fortran linker in the rules of `Makefile.in'.
24 # Look for this macro not at the beginning of any line; that will have
25 # to be good enough for now.
26 grep '.\$(F77LINK)' Makefile.in || exit 1
28 # We should not see these patterns:
29 grep '.\$(CXXLINK)' Makefile.in && exit 1
30 grep '.\$(LINK)' Makefile.in && exit 1
32 exit 0