From: Gordon Matzigkeit Date: Mon, 1 Dec 1997 07:59:19 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: release-1-0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c562621294880ebd596f5df1642b72c7067e6283;p=thirdparty%2Flibtool.git *** empty log message *** --- diff --git a/ChangeLog b/ChangeLog index f5ffc3a54..68cfbb7d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 1 00:50:37 1997 Gordon Matzigkeit + + * ltconfig.in (ltecho): We need special handling to quote the + `echo' variable itself. From Alexandre Oliva. + Sat Nov 29 11:19:18 1997 Gordon Matzigkeit * ltconfig.in (COLLECT_NAMES): Enable this workaround for a broken diff --git a/Makefile.am b/Makefile.am index ed1937d82..e9e8fcb2c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -103,7 +103,7 @@ PRCS = prcs .PHONY: maintainer-checkin maintainer-check-versions maintainer-release maintainer-checkin: - cd $(top_srcdir) && $(PRCS) checkin $(PACKAGE) + cd $(top_srcdir) && $(PRCS) checkin -f $(PACKAGE) maintainer-check-versions: @newver=`grep '^(Project-Version[ ]' $(srcdir)/$(PACKAGE).prj | \ diff --git a/NEWS b/NEWS index a9e528440..53537d91f 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,9 @@ NEWS - list of user-visible changes between releases of GNU Libtool +New in 1.0h - 1997-12-01, Gordon Matzigkeit: +* A fix for an insidious bug in the quoting code, which broke + everything on almost all platforms. + New in 1.0g - 1997-11-29, Gordon Matzigkeit: * Bug fixes. * `-allow-undefined' is now the default. You can use `-no-undefined' diff --git a/ltconfig.in b/ltconfig.in index ab2696b56..9705defa8 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -33,7 +33,7 @@ else # This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # So, we emulate echo with printf '%s\n' - echo='printf %s\n' + echo="printf %s\\n" if test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then : else # Oops. We have no working printf. Try to find a not-so-buggy echo. @@ -1260,8 +1260,12 @@ fi rmdir .libs 2>/dev/null echo "$ac_t$objdir" 1>&6 +# Copy echo and quote the copy, instead of the original, because it is +# used later. +ltecho="$echo" + # Now quote all the things that may contain metacharacters. -for var in echo old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \ +for var in ltecho old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \ old_LN_S AR CC LD LN_S NM reload_flag reload_cmds wl pic_flag \ link_static_flag no_builtin_flag export_dynamic_flag_spec \ profile_flag_pattern libname_spec library_names_spec soname_spec RANLIB \ @@ -1276,10 +1280,10 @@ for var in echo old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \ old_postinstall_cmds | old_postuninstall_cmds | archive_cmds | \ postinstall_cmds | postuninstall_cmds | finish_cmds) # Double-quote double-evaled strings. - eval "$var=\`$echo \"\$$var\" | sed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\"\`" + eval "$var=\`\$echo \"\$$var\" | sed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\"\`" ;; *) - eval "$var=\`$echo \"\$$var\" | sed \"\$sed_quote_subst\"\`" + eval "$var=\`\$echo \"\$$var\" | sed \"\$sed_quote_subst\"\`" ;; esac done @@ -1305,7 +1309,7 @@ cat < $ofile # debugging $progname, is in ./config.log if it exists. # An echo program that doesn't interpret backslashes. -echo="$echo" +echo="$ltecho" # The version of $progname that generated this script. LTCONFIG_VERSION="$VERSION"