diff --git a/autogen.pl b/autogen.pl index b9ab787d1a..10d72872d2 100755 --- a/autogen.pl +++ b/autogen.pl @@ -5,7 +5,7 @@ # Copyright (c) 2013 Mellanox Technologies, Inc. # All rights reserved. # Copyright (c) 2013-2014 Intel, Inc. All rights reserved. -# Copyright (c) 2015 Research Organization for Information Science +# Copyright (c) 2015-2016 Research Organization for Information Science # and Technology (RIST). All rights reserved. # Copyright (c) 2015 IBM Corporation. All rights reserved. # @@ -977,6 +977,12 @@ sub patch_autotools_output { $c =~ s/$search_string/$replace_string/; } + # Oracle has apparently begun (as of 12.5-beta) removing the "Sun" branding. + # So this patch (cumulative over the previous one) is required. + push(@verbose_out, $indent_str . "Patching configure for Oracle Studio Fortran version strings\n"); + $c =~ s/\*Sun\*Fortran\*\)/*Sun*Fortran* | *Studio*Fortran*)/g; + $c =~ s/\*Sun\\ F\*\)(.*\n\s+tmp_sharedflag=)/*Sun\\ F* | *Studio*Fortran*)$1/g; + # See http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=v2.2.6-201-g519bf91 for details # Note that this issue was fixed in LT 2.2.8, however most distros are still using 2.2.6b