[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AIX grep limitation: coreutils build failure
From: |
Paul Eggert |
Subject: |
Re: AIX grep limitation: coreutils build failure |
Date: |
Mon, 29 May 2006 22:53:53 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Ralf Wildenhues <address@hidden> writes:
> Fine with me, too.
OK, I installed that.
> Please note though that tr is used in
> lib/autotest/general.m4 and lib/autoconf/status.m4 already.
I couldn't find the use of tr in general.m4 -- 'tr' is just a pattern
there, not a command.
The usage in status.m4 should be portable, but it is a bit
out-of-the-way and is problematic anyway, given the comments
describing the problems we've had with it. Let's remove it. I
installed the following patch to do that.
> To cope with limited grep, coreutils is still missing the Automake
> patch. I guess you could also choose to ignore this, as both of these
> failures happen on AIX <= 5.1.
Yes, if it's only no-longer-supported AIX, then it's probably not
worth worrying about.
> We still don't know what that Solaris failure was about, though
Sorry, which Solaris failure was this? There've been at least three
reported recently.
2006-05-29 Paul Eggert <address@hidden>
* lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
the use of 'tr', since this is our only use of 'tr'.
--- lib/autoconf/status.m4 30 May 2006 05:17:17 -0000 1.113
+++ lib/autoconf/status.m4 30 May 2006 05:47:40 -0000 1.114
@@ -1491,37 +1491,35 @@ done # for ac_tag
# Set the DEFS variable to the -D options determined earlier.
# This is a subroutine of AC_OUTPUT.
# It is called inside configure, outside of config.status.
-# Using a here document instead of a string reduces the quoting nightmare.
m4_define([AC_OUTPUT_MAKE_DEFS],
[[# Transform confdefs.h into DEFS.
# Protect against shell expansion while executing Makefile rules.
# Protect against Makefile macro expansion.
#
# If the first sed substitution is executed (which looks for macros that
-# take arguments), then we branch to the quote section. Otherwise,
+# take arguments), then branch to the quote section. Otherwise,
# look for a macro that doesn't take arguments.
-cat >confdef2opt.sed <<\_ACEOF
+ac_script='
t clear
:clear
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[
]*\(.*\)/-D\1=\2/g
t quote
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[
]*\(.*\)/-D\1=\2/g
t quote
-d
+b any
:quote
-s/[ `~#$^&*(){}\\|;'"<>?]/\\&/g
+s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
s/\[/\\&/g
s/\]/\\&/g
s/\$/$$/g
-p
-_ACEOF
-# We use echo to avoid assuming a particular line-breaking character.
-# The extra dot is to prevent the shell from consuming trailing
-# line-breaks from the sub-command output. A line-break within
-# single-quotes doesn't work because, if this script is created in a
-# platform that uses two characters for line-breaks (e.g., DOS), tr
-# would break.
-ac_LF_and_DOT=`echo; echo .`
-DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
-rm -f confdef2opt.sed
+H
+:any
+${
+ g
+ s/^\n//
+ s/\n/ /g
+ p
+}
+'
+DEFS=`sed -n "$ac_script" confdefs.h`
]])# AC_OUTPUT_MAKE_DEFS