Mail Archives: djgpp-workers/2009/09/13/15:40:11
> Date: Sun, 13 Sep 2009 21:14:27 +0200
> From: Ralf Wildenhues <Ralf DOT Wildenhues AT gmx DOT de>
> Cc: autoconf-patches AT gnu DOT org, Rugxulo <rugxulo AT gmail DOT com>,
> Reuben Thomas <rrt AT sc3d DOT org>
>
> * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): If $DJGPP is
> nonempty, do not dup fd 0 to AS_ORIGINAL_STDIN_FD, do not close
> fd 0.
> ---
>
> * Ralf Wildenhues wrote on Sun, Sep 13, 2009 at 09:12:28PM CEST:
> > -- ./script: redirection error: Bad file descriptor (EBADF) or other I/O error
> > Test failures, untreated: 88 195
> > Test failures due to redirection of fd 1 in configure: many,
> > (worked around with patch)
>
> This patch should be changed to use a more reliable way to detect DJGPP.
>
> lib/autoconf/general.m4 | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
> index 4e5cddb..b82999a 100644
> --- a/lib/autoconf/general.m4
> +++ b/lib/autoconf/general.m4
> @@ -385,7 +385,8 @@ AU_ALIAS([AC_FD_MSG], [AS_MESSAGE_FD])
> m4_define([_AC_INIT_DEFAULTS],
> [m4_divert_push([DEFAULTS])dnl
>
> -exec AS_ORIGINAL_STDIN_FD<&0 </dev/null AS_MESSAGE_FD>&1
> +test -n "$DJGPP" || exec AS_ORIGINAL_STDIN_FD<&0 </dev/null
> +exec AS_MESSAGE_FD>&1
>
> # Name of the host.
> # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
> --
> 1.6.3.3.345.gb7132
Thanks.
- Raw text -