]> 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:53:45 +0000 (02:53 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 7 Oct 2004 02:53:45 +0000 (02:53 +0000)
_LT_DECL descriptions were not being escaped before injection into
TAG CONFIG here documents in config.status.

ChangeLog
m4/libtool.m4

index 9118f03eb7868ee0929eb7b68b235e9bb9dcab59..9976fb70886e0a2a7cb643c733c875118306c9e2 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..3378d2643b5d1d202776d8871596caabc35b3103 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], [[!?.]$], [], [.])
 )])
 
 
@@ -4471,11 +4472,11 @@ m4_defun([_LT_PROG_CXX],
 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 AC_PROG_CXX
 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
-    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 
+    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     (test "X$CXX" != "Xg++"))) ; then
   AC_PROG_CXXCPP
-else  
-  _lt_caught_CXX_error=yes 
+else
+  _lt_caught_CXX_error=yes
 fi
 popdef([AC_MSG_ERROR])
 ])# _LT_PROG_CXX
@@ -5579,7 +5580,7 @@ m4_defun([_LT_PROG_F77],
 pushdef([AC_MSG_ERROR], [_lt_caught_F77_error=yes])
 AC_PROG_F77
 if test -z "$F77"; then
-  _lt_caught_F77_error=yes 
+  _lt_caught_F77_error=yes
 fi
 popdef([AC_MSG_ERROR])
 ])# _LT_PROG_F77