diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-03-27 13:38:39 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-03-27 13:38:39 +0400 |
commit | 409c27f83478e2962c446be23e104a97b3f5f2e0 (patch) | |
tree | 4548f42d093397fb049fdfae40f28968d59499ab /newlib/configure | |
parent | 1ebc8da242a1e8dd7707f2bcc51c22d4e1e64990 (diff) |
* acconfig.h (_FVWRITE_IN_STREAMIO): Undefine.
* newlib.hin (_FVWRITE_IN_STREAMIO): Undefine.
* configure.in (--disable-newlib-fvwrite-in-streamio): New option.
* configure: Regenerated.
* libc/stdio/fputs.c (_fputs_r): Use _FVWRITE_IN_STREAMIO to
control __sfvwrite_r. Add alternative implementation.
* libc/stdio/fputws.c (_fputws_r): Ditto.
* libc/stdio/fwrite.c (_fwrite_r): Ditto.
* libc/stdio/puts.c (_puts_r): Ditto.
* libc/stdio/vfprintf.c (__ssputs_r, __sfputs_r): New function.
(_VFPRINTF_R): Use _FVWRITE_IN_STREAMIO to control vector buffer.
(__SPRINT): Use _FVWRITE_IN_STREAMIO to control macro definition.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use _FVWRITE_IN_STREAMIO
to control vector buffer.
Diffstat (limited to 'newlib/configure')
-rwxr-xr-x | newlib/configure | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/newlib/configure b/newlib/configure index 7a98e98a7..71499b57f 100755 --- a/newlib/configure +++ b/newlib/configure @@ -789,6 +789,7 @@ enable_newlib_iconv_to_encodings enable_newlib_iconv_external_ccs enable_newlib_atexit_dynamic_alloc enable_newlib_reent_small +enable_newlib_fvwrite_in_streamio enable_multilib enable_target_optspace enable_malloc_debugging @@ -1452,6 +1453,7 @@ Optional Features: --enable-newlib-iconv-external-ccs enable capabilities to load external CCS files for iconv --disable-newlib-atexit-alloc disable dynamic allocation of atexit entries --enable-newlib-reent-small enable small reentrant struct support + --disable-newlib-fvwrite-in-streamio disable iov in streamio --enable-multilib build many library versions (default) --enable-target-optspace optimize for space --enable-malloc-debugging indicate malloc debugging requested @@ -2351,6 +2353,19 @@ else newlib_reent_small= fi +# Check whether --enable-newlib-fvwrite-in-streamio was given. +if test "${enable_newlib_fvwrite_in_streamio+set}" = set; then : + enableval=$enable_newlib_fvwrite_in_streamio; if test "${newlib_fvwrite_in_streamio+set}" != set; then + case "${enableval}" in + yes) newlib_fvwrite_in_streamio=yes ;; + no) newlib_fvwrite_in_streamio=no ;; + *) as_fn_error $? "bad value ${enableval} for newlib-fvwrite-in-streamio option" "$LINENO" 5 ;; + esac + fi +else + newlib_fvwrite_in_streamio=yes +fi + # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || @@ -12232,6 +12247,13 @@ _ACEOF fi +if test "${newlib_fvwrite_in_streamio}" = "yes"; then +cat >>confdefs.h <<_ACEOF +#define _FVWRITE_IN_STREAMIO 1 +_ACEOF + +fi + if test "x${iconv_encodings}" != "x" \ || test "x${iconv_to_encodings}" != "x" \ |