autoconf-patches
[Top][All Lists]
Advanced

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

Adding Fujitsu's Fortran and C++ compiler


From: Christian Marquardt
Subject: Adding Fujitsu's Fortran and C++ compiler
Date: Fri, 1 Jun 2001 17:48:35 +0200 (CEST)

Hallo,

would it be possible to apply the attached patch to the cvs version of
autoconf? It's very basic, just adding the Fujitsu compiler 'frt' (e.g.
on Linux) to the default list of Fortran 77 compilers, and also FCC to
the default list of C++ compilers. The Fujitsu compilers differ from
others by using the option '-###' in order to print information of
library and object files; I have added that bit to the
_AC_PROG_F77_V macro.

Thanks,

  Chris.


-----------------

Index: aclang.m4

2001-06-01  Christian Marquardt  <address@hidden>

        * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
        Fortran compilers to check.
        (_AC_PROG_F77_V): Add '-###' as a possible option to print
        information on library and object files.
        (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
        to check.


Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.130
diff -u -r1.130 aclang.m4
--- aclang.m4   2001/05/30 12:45:04     1.130
+++ aclang.m4   2001/06/01 15:44:15
@@ -1125,6 +1125,7 @@
 # user an opportunity to specify an alternative search list for the C++
 # compiler.
 # aCC  HP-UX C++ compiler much better than `CC', so test before.
+# FCC   Fujitsu C++ compiler
 # KCC  KAI C++ compiler
 # RCC  Rational C++
 # xlC_r        AIX C Set++ (with support for reentrant code)
@@ -1137,7 +1138,7 @@
 _AC_ARG_VAR_CPPFLAGS()dnl
 AC_CHECK_TOOLS(CXX,
                [$CCC m4_default([$1],
-                          [g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC])],
+                          [g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r 
xlC])],
                g++)
 
 m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl
@@ -1253,6 +1254,7 @@
 # It is believed that under HP-UX `fort77' is the name of the native
 # compiler.  On some Cray systems, fort77 is a native compiler.
 # cf77 and cft77 are (older) Cray F77 compilers.
+# frt is the Fujitsu F77 compiler.
 # pgf77 and pgf90 are the Portland Group F77 and F90 compilers.
 # xlf/xlf90/xlf95 are IBM (AIX) F77/F90/F95 compilers.
 # lf95 is the Lahey-Fujitsu compiler.
@@ -1267,7 +1269,7 @@
 _AC_ARG_VAR_LDFLAGS()dnl
 AC_CHECK_TOOLS(F77,
       [m4_default([$1],
-                  [g77 f77 xlf cf77 cft77 pgf77 fl32 af77 fort77 f90 xlf90 
pgf90 epcf90 f95 fort xlf95 lf95 g95 fc])])
+                  [g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 
pgf90 epcf90 f95 fort xlf95 lf95 g95 fc])])
 
 m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl
 m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl
@@ -1739,7 +1741,7 @@
 # Determine the flag that causes the Fortran 77 compiler to print
 # information of library and object files (normally -v)
 # Needed for AC_F77_LIBRARY_FLAGS
-# Some compilers don't accept -v (Lahey: -verbose, xlf: -V)
+# Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
 AC_DEFUN([_AC_PROG_F77_V],
 [AC_CACHE_CHECK([how to get verbose linking output from $F77],
                 [ac_cv_prog_f77_v],
@@ -1747,7 +1749,7 @@
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
 [ac_cv_prog_f77_v=
 # Try some options frequently used verbose output
-for ac_verb in -v -verbose --verbose -V; do
+for ac_verb in -v -verbose --verbose -V -\#\#\#; do
   _AC_PROG_F77_V_OUTPUT($ac_verb)
   # look for -l* and *.a constructs in the output
   for ac_arg in $ac_f77_v_output; do



-- 

  Christian Marquardt

  GFZ Potsdam, Div. 1             |       Tel.: (+49) 331-288-1168
  Am Telegrafenberg               |       Fax:  (+49) 331-288-1732
  D-14473 Potsdam                 |       Email: address@hidden





reply via email to

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