From: Ralf Wildenhues Date: Thu, 11 Jan 2007 21:17:37 +0000 (+0000) Subject: * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe X-Git-Tag: v2.62~370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af97d7255d12910f1e52b71c4d178253379834b4;p=thirdparty%2Fautoconf.git * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe early on the reader side, drop stderr of the input to avoid `broken pipe' error output; this may happen even with shell builtin `echo' of some bash versions. Reports by Ian Macdonald and Sam Sexton . --- diff --git a/ChangeLog b/ChangeLog index f586c872..8e75b463 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-01-11 Ralf Wildenhues + + * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe + early on the reader side, drop stderr of the input to avoid + `broken pipe' error output; this may happen even with shell + builtin `echo' of some bash versions. Reports by Ian Macdonald + and Sam Sexton . + 2007-01-10 Ralf Wildenhues * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4 index 073c2fba..3aeee4d3 100644 --- a/lib/autoconf/programs.m4 +++ b/lib/autoconf/programs.m4 @@ -859,7 +859,7 @@ AC_DEFUN([AC_PROG_SED], for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done - echo "$ac_script" | sed 99q >conftest.sed + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed $as_unset ac_script || ac_script= _AC_PATH_PROG_FEATURE_CHECK(SED, [sed gsed], [_AC_FEATURE_CHECK_LENGTH([ac_path_SED], [ac_cv_path_SED],