With Portland 5.2-4 and 6.0-4 compilers it is necessary to remove some
single quotes from verbose Fortran linking output.  Steven applied a
similar patch for double quoted stuff some time ago[1].  A bug report
against LAM[2] suggests the patch below, I don't know of a better
solution right away.

Regards,
Ralf

[1] http://lists.gnu.org/archive/html/autoconf-patches/2004-03/msg00063.html
[2] http://www.lam-mpi.org/MailArchives/lam/2005/06/10866.php

        * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
        double-quoted -cmdline argument in Portland Group compiler.
        Reported against LAM by Ole Holm Nielsen <[EMAIL PROTECTED]>.

Index: lib/autoconf/fortran.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/fortran.m4,v
retrieving revision 1.193
diff -u -r1.193 fortran.m4
--- lib/autoconf/fortran.m4     22 Jun 2005 12:14:00 -0000      1.193
+++ lib/autoconf/fortran.m4     29 Jun 2005 12:45:53 -0000
@@ -554,7 +554,9 @@
   *mGLOB_options_string*)
     ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | 
sed 's/"-mGLOB[[^"]]*"/ /g'` ;;
 
-  # Portland Group compiler has quoted -cmdline argument
+  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
+  *-cmdline\ \'*)
+    ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | 
sed "s/-cmdline  *'[[^']]*'/ /g"` ;;
   *-cmdline*)
     ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | 
sed 's/-cmdline  *"[[^"]]*"/ /g'` ;;
 


Reply via email to