3
# Replaced $(F77LINK) in our Makefile.am's with $(LINK) if needed.
5
# There is a ton of garbage here. We must replicate what automake will do in
6
# the case where we enable F77 code (and therefore require the F77LINK). We
7
# use autoconf quadrigraphs to avoid problems with $(foo) and $@. This is yet
8
# another hack to disable F77 since automake selects the linker based on the
9
# static list of source files.
10
AC_DEFUN([GA_F77_LD_OVERRIDE], [
11
m4_pattern_allow([AM_V_lt])
12
AS_IF([test "x$enable_f77" = xyes],
13
[F77LINK='@S|@@{:@LIBTOOL@:}@ @S|@@{:@AM_V_lt@:}@ --tag=F77 @S|@@{:@AM_LIBTOOLFLAGS@:}@ @S|@@{:@LIBTOOLFLAGS@:}@ --mode=link @S|@@{:@F77LD@:}@ @S|@@{:@AM_FFLAGS@:}@ @S|@@{:@FFLAGS@:}@ @S|@@{:@AM_LDFLAGS@:}@ @S|@@{:@LDFLAGS@:}@ -o @S|@@'
14
am__v_F77LD_0='@echo " F77LD " @S|@@;'],
15
[F77LINK='@S|@@{:@LINK@:}@'
16
am__v_F77LD_0='@S|@@{:@am__v_CCLD_0@:}@'])
18
AC_SUBST([am__v_F77LD_0])