]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4 (_LT_FORMAT_COMMENT): Shell meta-characters in
authorGary V. Vaughan <gary@gnu.org>
Thu, 7 Oct 2004 02:17:01 +0000 (02:17 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 7 Oct 2004 02:17:01 +0000 (02:17 +0000)
_LT_DECL descriptions were not being escaped before injection into
TAG CONFIG here documents in config.status.

ChangeLog
m4/libtool.m4

index ebd4aec9a10a994d15b5f4e9d406b12cb88dbdff..bf045a5e61cca0ba00862bbb76e34a78105b8087 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-07  Gary V. Vaughan  <gary@gnu.org>
+
+       * m4/libtool.m4 (_LT_FORMAT_COMMENT): Shell meta-characters in
+       _LT_DECL descriptions were not being escaped before injection into
+       TAG CONFIG here documents in config.status.
+
 2004-10-06  Peter O'Gorman  <peter@pogma.com>
 
        * m4/libtool.m4 (_LT_PROG_CXX, _LT_PROG_F77): New macros to work
index e158528a7df3f640f0265b02bae23d6b43ff75dd..004553e52ee2d79afd6ae82157446569cd383235 100644 (file)
@@ -261,7 +261,8 @@ _LT_CONFIG_LIBTOOL_INIT([$2])
 # full-stop to the whole comment if one is not present already.
 m4_define([_LT_FORMAT_COMMENT],
 [m4_ifval([$1], [
-m4_bpatsubst([$1], [^ *], [# ])]m4_bmatch([$1], [[!?.]$], [], [.])
+m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
+              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 )])