From 34aec866b0bd910a76f9b675efb310b9db5abe3f Mon Sep 17 00:00:00 2001 From: Thomas Jahns
Date: Mon, 2 Jan 2012 16:03:41 +0100 Subject: [PATCH] Fix edge cases in xlf library flags. --- lib/autoconf/fortran.m4 | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index e630f27..faa0640 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -529,9 +529,12 @@ ac_[]_AC_LANG_ABBREV[]_v_output="`echo $ac_[]_AC_LANG_ABBREV[]_v_output | # and (ugh) tested at some point. case $ac_[]_AC_LANG_ABBREV[]_v_output in # If we are using xlf then replace all the commas with spaces. + # Also xlf appends a closing paren on its output and the ipa step adds a + # -link argument that might be mistaken for a library *xlfentry*) - ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/,/ /g'` ;; - + ac_[]_AC_LANG_ABBREV[]_v_output=`echo "$ac_[]_AC_LANG_ABBREV[]_v_output" | sed 's/,/ /g +s/) *$//g +s/ -link / /g'` ;; # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted # $LIBS confuse us, and the libraries appear later in the output anyway). *mGLOB_options_string*) -- 1.7.2.5