From: Paolo Bonzini Date: Fri, 7 Nov 2008 13:47:19 +0000 (+0100) Subject: Separate part of _LT_SETUP into other macros, detect ECHO sooner. X-Git-Tag: v2.2.7b~183 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdeb1af5111ab6a034e134a6a5f8689e463984be;p=thirdparty%2Flibtool.git Separate part of _LT_SETUP into other macros, detect ECHO sooner. * libltdl/m4/libtool.m4 (_LT_PREPARE_SED_QUOTE_VARS): New macro, extracted from... (_LT_SETUP): ... here. Require _LT_PROG_ECHO_BACKSLASH sooner. --- diff --git a/ChangeLog b/ChangeLog index 1477a091a..1d22ee777 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-11-10 Paolo Bonzini + + Separate part of _LT_SETUP into other macros, detect ECHO sooner. + * libltdl/m4/libtool.m4 (_LT_PREPARE_SED_QUOTE_VARS): New macro, + extracted from... + (_LT_SETUP): ... here. Require _LT_PROG_ECHO_BACKSLASH sooner. + 2008-11-10 Paolo Bonzini Fix quoting when config.status generates libtool config. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index d98bf00d3..0b2f3209d 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -138,6 +138,9 @@ m4_defun([_LT_FILEUTILS_DEFAULTS], m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl + _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl @@ -179,7 +182,6 @@ fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl -_LT_PROG_ECHO_BACKSLASH case $host_os in aix3*) @@ -193,23 +195,6 @@ aix3*) ;; esac -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([["`\\]]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - # Global variables: ofile=libtool can_build_shared=yes @@ -250,6 +235,28 @@ _LT_CONFIG_COMMANDS ])# _LT_SETUP +# _LT_PREPARE_SED_QUOTE_VARS +# -------------------------- +# Define a few sed substitution that help us do robust quoting. +m4_defun([_LT_PREPARE_SED_QUOTE_VARS], +[# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([["`\\]]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' +]) + # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status'