[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LT_AC_PROG_SED patch against 1.4 branch
From: |
Albert Chin |
Subject: |
Re: LT_AC_PROG_SED patch against 1.4 branch |
Date: |
Thu, 28 Feb 2002 11:24:58 -0600 |
User-agent: |
Mutt/1.2.5i |
On Thu, Feb 28, 2002 at 05:30:29PM +0100, Akim Demaille wrote:
>
> | On Wed, Feb 27, 2002 at 09:17:45AM +0100, Akim Demaille wrote:
> | > >>>>> "Robert" == Robert Boehne <address@hidden> writes:
> | >
> | > Robert> Approved! Checking in.
> | >
> | > So it won't work with 2.5x.
> |
> | Good point. Not, it won't. It's easy enough to use $ac_c if defined or
> | $ECHO_C if defined. Want me to do that instead?
> |
> | How about replacing:
> | echo $ac_n "0123456789$ac_c" >"$tmp/sed.in"
> | with:
> | if test "x$ECHO_C$ECHO_N" != x; then
> | echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
> | else
> | echo $ac_n "0123456789$ac_c" >"$tmp/sed.in"
> | fi
> |
> | Or is this too simplistic?
>
> echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
Patch attched for branch-1-4. Needs to be applied to HEAD as well.
Tested on both.
2002-02-28 Akim Demaille <address@hidden>
* libtool.m4: Allow LT_AC_PROG_SED to work under autoconf
2.13 and 2.5x with $ECHO_N/$ECHO_C and $ac_n/$ac_c.
--
albert chin (address@hidden)
-- snip snip
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.166.2.35
diff -u -3 -p -r1.166.2.35 libtool.m4
--- libtool.m4 25 Feb 2002 20:37:10 -0000 1.166.2.35
+++ libtool.m4 28 Feb 2002 17:23:37 -0000
@@ -3644,7 +3648,7 @@ $debug ||
test ! -f ${_sed} && break
cat /dev/null > "$tmp/sed.in"
_count=0
- echo $ac_n "0123456789$ac_c" >"$tmp/sed.in"
+ echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
# Check for GNU sed and select it if it is found.
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
lt_cv_path_SED=${_sed}