Fix quoting when config.status generates libtool config.

* libltdl/m4libtool.m4 (_LT_OUTPUT_LIBTOOL_COMMANDS_INIT):
Double quote ECHO-ed variables.
This commit is contained in:
Paolo Bonzini 2008-11-10 08:27:45 +01:00
parent 3796d1fe58
commit bf5eab9d04
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-11-10 Paolo Bonzini <bonzini@gnu.org>
Fix quoting when config.status generates libtool config.
* libltdl/m4libtool.m4 (_LT_OUTPUT_LIBTOOL_COMMANDS_INIT):
Double quote ECHO-ed variables.
2008-11-10 Paolo Bonzini <bonzini@gnu.org> 2008-11-10 Paolo Bonzini <bonzini@gnu.org>
Use documented M4sh interfaces. Use documented M4sh interfaces.

View File

@ -520,7 +520,7 @@ compiler='$compiler_DEFAULT'
# Quote evaled strings. # Quote evaled strings.
for var in lt_decl_all_varnames([[ \ for var in lt_decl_all_varnames([[ \
]], lt_decl_quote_varnames); do ]], lt_decl_quote_varnames); do
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in case \`eval \\\\\$ECHO \\\\""X\\\\\$\$var"\\\\"\` in
*[[\\\\\\\`\\"\\\$]]*) *[[\\\\\\\`\\"\\\$]]*)
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
;; ;;
@ -533,7 +533,7 @@ done
# Double-quote double-evaled strings. # Double-quote double-evaled strings.
for var in lt_decl_all_varnames([[ \ for var in lt_decl_all_varnames([[ \
]], lt_decl_dquote_varnames); do ]], lt_decl_dquote_varnames); do
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in case \`eval \\\\\$ECHO \\\\""X\\\\\$\$var"\\\\"\` in
*[[\\\\\\\`\\"\\\$]]*) *[[\\\\\\\`\\"\\\$]]*)
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
;; ;;