]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 5 Jan 2006 10:11:22 +0000 (10:11 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 5 Jan 2006 10:11:22 +0000 (10:11 +0000)
singly- or doubly-quoted arguments to `-cmdline', `-ignore',
`-def', for the benefit of Portland `pgf90 -Mipa'.
Reported by Christopher Hulbert <cchgroupmail@gmail.com>.

ChangeLog
lib/autoconf/fortran.m4

index 1b858a625d6fabe124c9ad8ec2b11be97bc7aa13..909700d8a59d76ff67a5db9bc3904ef79f86516e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
+       singly- or doubly-quoted arguments to `-cmdline', `-ignore',
+       `-def', for the benefit of Portland `pgf90 -Mipa'.
+       Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
+
 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
 
        * doc/autoconf.texi: Update copyright (and other) dates to 2006.
index 369d90ba1f4fb8fe29f668fa49527831d39aa4e6..7c3cddb8a4314a63dc87ac262d4bdf3e16de0a21 100644 (file)
@@ -1,6 +1,6 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Fortran languages support.
-# Copyright (C) 2001, 2003, 2004, 2005
+# Copyright (C) 2001, 2003, 2004, 2005, 2006
 # Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -558,10 +558,11 @@ case $ac_[]_AC_LANG_ABBREV[]_v_output in
   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
-  *-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'` ;;
+  *-cmdline\ * | *-ignore\ * | *-def\ *)
+    ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed "\
+        s/-cmdline  *'[[^']]*'/ /g; s/-cmdline  *\"[[^\"]]*\"/ /g
+        s/-ignore  *'[[^']]*'/ /g; s/-ignore  *\"[[^\"]]*\"/ /g
+        s/-def  *'[[^']]*'/ /g; s/-def  *\"[[^\"]]*\"/ /g"` ;;
 
   # If we are using Cray Fortran then delete quotes.
   *cft90*)