From 3c751297e45142c2b903b690d7a83c88ab121e8a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 2 Feb 2005 23:46:31 +0000 Subject: [PATCH] (_AC_PROG_FC): Try cf77 before fort77 to get the option-enhanced interface on older Crays. Try ftn for Fortran 95 (newer Crays). --- lib/autoconf/fortran.m4 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 3e012580..0e900b9f 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -1,6 +1,6 @@ # This file is part of Autoconf. -*- Autoconf -*- # Fortran languages support. -# Copyright (C) 2001, 2003, 2004 +# Copyright (C) 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify @@ -334,6 +334,8 @@ AC_DEFUN([_AC_FC_DIALECT_YEAR], # f77/f90/f95: generic compiler names # g77: GNU Fortran 77 compiler # gfortran: putative GNU Fortran 95+ compiler (in progress) +# ftn: native Fortran 95 compiler on Cray X1 +# cf77: native F77 compiler under older Crays (prefer over fort77) # fort77: native F77 compiler under HP-UX (and some older Crays) # frt: Fujitsu F77 compiler # pgf77/pgf90/pghpf/pgf95: Portland Group F77/F90/F95 compilers @@ -345,9 +347,9 @@ AC_DEFUN([_AC_FC_DIALECT_YEAR], # fort: Compaq (now HP) Fortran 90/95 compiler for Tru64 and Linux/Alpha # ifort, previously ifc: Intel Fortran 95 compiler for Linux/x86 # efc: Intel Fortran 95 compiler for IA64 -m4_define([_AC_F95_FC], [f95 fort xlf95 ifort ifc efc pgf95 lf95 gfortran]) +m4_define([_AC_F95_FC], [f95 fort xlf95 ifort ifc efc pgf95 lf95 gfortran ftn]) m4_define([_AC_F90_FC], [f90 xlf90 pgf90 pghpf epcf90]) -m4_define([_AC_F77_FC], [g77 f77 xlf frt pgf77 fort77 fl32 af77]) +m4_define([_AC_F77_FC], [g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77]) AC_DEFUN([_AC_PROG_FC], [_AC_FORTRAN_ASSERT()dnl AC_CHECK_TOOLS([]_AC_FC[],