autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UNICOS changes


From: Ralf Wildenhues
Subject: UNICOS changes
Date: Tue, 1 Feb 2005 07:34:48 +0100
User-agent: Mutt/1.4.1i

I had a chance to test an old Y-MP[1].  There, cf77 should be preferred
over fort77, because the latter does not allow to pass options through
to the linker (at all), while the former understands `-Wl,'.

Somebody with access to newer Cray systems and/or experience with
them please comment on my fortran.m4 changes (the ftn change is based
on online documentation only).

And, since I know there are a few Fortran gurus reading here: Does the
ftn compiler understand `-Wl,-somelinkflag' or do we really have to
resort to `-Wlsomelinkflag'?  cf77 docs state `-Wlsomelinkflag' as well
but do understand the common format.  This question is important to
Libtool[2].

Regards,
Ralf

[1] Thanks to http://cray-cyber.org/ for providing a login.

[2] See also the thread at
http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00210.html
for related changes.



        * m4/libtool.m4 (Limitations of Usual Tools) <sed>:
        Unicos 9 sed limitations.

        * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
        to get the option-enhanced interface on older Crays.  Try ftn for
        Fortran 95 (newer Crays).

Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.868
diff -u -r1.868 autoconf.texi
--- doc/autoconf.texi   28 Jan 2005 21:55:57 -0000      1.868
+++ doc/autoconf.texi   29 Jan 2005 16:43:37 -0000
@@ -11871,6 +11871,9 @@
 quite portable to modern hosts, but is not supported by some older
 @command{sed} implementations like SVR3.
 
+Unicos 9 @command{sed} rejects empty patterns within parentheses
+(e.g., @samp{/x\(\)/}) and loops endlessly on @samp{/.*\n.*/}.
+
 The @option{-e} option is portable.
 Some people prefer to use it:
 
Index: lib/autoconf/fortran.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/fortran.m4,v
retrieving revision 1.183
diff -u -r1.183 fortran.m4
--- lib/autoconf/fortran.m4     28 Mar 2004 20:46:38 -0000      1.183
+++ lib/autoconf/fortran.m4     31 Jan 2005 11:32:04 -0000
@@ -334,6 +334,8 @@
 #  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 @@
 #  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[],




reply via email to

[Prev in Thread] Current Thread [Next in Thread]