libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Sed quoting fix


From: Robert Boehne
Subject: [PATCH] Sed quoting fix
Date: Tue, 17 Dec 2002 07:41:58 -0600

This patch fixes problems with non-GNU sed's and
is probably what should have been there initially.
Thanks to Albert Chin for suggesting the right syntax.

ChangeLog entry:

2002-12-17  Robert Boehne  <address@hidden>

        * libtool.m4: Do not backslashify } or ? in sed argument.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.280
diff -u -r1.280 libtool.m4
--- libtool.m4  11 Dec 2002 19:44:59 -0000      1.280
+++ libtool.m4  17 Dec 2002 13:36:03 -0000
@@ -562,7 +562,7 @@
    # with a dollar sign (not a hyphen), so the echo should work correctly.
    # The option is referenced via a variable to avoid confusing sed.
    lt_compile=`echo "$ac_compile" | sed \
-   -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
+   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
@@ -911,7 +911,7 @@
    # Note that $ac_compile itself does not contain backslashes and begins
    # with a dollar sign (not a hyphen), so the echo should work correctly.
    lt_compile=`echo "$ac_compile" | sed \
-   -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
+   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]