Skip to content

Commit 627aa29

Browse files
committed
autogen: fix deprecated construct
Newer versions of Perl warn that unescaped left braces in regexps are deprecated. (cherry picked from commit open-mpi/ompi@9c9bad3)
1 parent bd3d6ff commit 627aa29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autogen.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env perl
22
#
3-
# Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
3+
# Copyright (c) 2009-2016 Cisco Systems, Inc. All rights reserved.
44
# Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
55
# Copyright (c) 2013 Mellanox Technologies, Inc.
66
# All rights reserved.
@@ -1001,9 +1001,9 @@ sub patch_autotools_output {
10011001
# https://github.com/open-mpi/ompi/issues/751
10021002
push(@verbose_out, $indent_str . "Patching configure for libtool.m4 bug\n");
10031003
# patch for libtool < 2.4.3
1004-
$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;
1004+
$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;
10051005
# patch for libtool >= 2.4.3
1006-
$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;
1006+
$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;
10071007

10081008
# Only write out verbose statements and a new configure if the
10091009
# configure content actually changed

0 commit comments

Comments
 (0)