Skip to content

Commit 249cc48

Browse files
author
rhc54
committed
Merge pull request open-mpi#776 from jsquyres/pr/v1.10/fix-dash-ell
autogen.pl: patch generated configure to fix an other libtool bug.
2 parents e843ebf + 85796dd commit 249cc48

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

autogen.pl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,15 @@ sub patch_autotools_output {
986986
$c =~ s/ppc\*-\*linux\*\|powerpc\*-\*linux\*\)/$replace_string/g;
987987
}
988988

989+
# Fix consequence of broken libtool.m4
990+
# see http://lists.gnu.org/archive/html/bug-libtool/2015-07/msg00002.html and
991+
# https://github.com/open-mpi/ompi/issues/751
992+
verbose "$indent_str"."Patching configure for libtool.m4 bug\n";
993+
# patch for libtool < 2.4.3
994+
$c =~ s/# Some compilers place space between "-{L,R}" and the path.\n # Remove the space.\n if test \$p = \"-L\" \|\|/# Some compilers place space between "-{L,-l,R}" and the path.\n # Remove the spaces.\n if test \$p = \"-L\" \|\|\n test \$p = \"-l\" \|\|/g;
995+
# patch for libtool >= 2.4.3
996+
$c =~ s/# Some compilers place space between "-{L,R}" and the path.\n # Remove the space.\n if test x-L = \"\$p\" \|\|\n test x-R = \"\$p\"\; then/# Some compilers place space between "-{L,-l,R}" and the path.\n # Remove the spaces.\n if test x-L = \"x\$p\" \|\|\n test x-l = \"x\$p\" \|\|\n test x-R = \"x\$p\"\; then/g;
997+
989998
open(OUT, ">configure.patched") || my_die "Can't open configure.patched";
990999
print OUT $c;
9911000
close(OUT);

0 commit comments

Comments
 (0)