* lib/autoconf/status.m4 (_AC_OUTPUT_HEADER):
Use ‘>&1’, which is a no-op, to work around a bug in ksh93
Version JM 93t+ 2010-03-05 as used in OpenIndiana.
The bug causes ‘printf "foo"’ to mistakenly succeed in
some cases even though the underlying ‘write’ syscall fails.
The ‘>&1’ causes the printf to fail, as it should.
#
if test x"$ac_file" != x-; then
{
- AS_ECHO(["/* $configure_input */"]) \
+ AS_ECHO(["/* $configure_input */"]) >&1 \
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
} >"$ac_tmp/config.h" \
|| AC_MSG_ERROR([could not create $ac_file])
|| AC_MSG_ERROR([could not create $ac_file])
fi
else
- AS_ECHO(["/* $configure_input */"]) \
+ AS_ECHO(["/* $configure_input */"]) >&1 \
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|| AC_MSG_ERROR([could not create -])
fi