diff options
Diffstat (limited to 'newlib/configure')
-rwxr-xr-x | newlib/configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/newlib/configure b/newlib/configure index 4d39bb5a1..991f9e6b5 100755 --- a/newlib/configure +++ b/newlib/configure @@ -817,6 +817,7 @@ enable_newlib_wide_orient enable_newlib_nano_malloc enable_newlib_unbuf_stream_opt enable_lite_exit +enable_newlib_nano_formatted_io enable_multilib enable_target_optspace enable_malloc_debugging @@ -1485,6 +1486,7 @@ Optional Features: --enable-newlib-nano-malloc use small-footprint nano-malloc implementation --disable-newlib-unbuf-stream-opt disable unbuffered stream optimization in streamio --enable-lite-exit enable light weight exit + --enable-newlib-nano-formatted-io Use nano version formatted IO --enable-multilib build many library versions (default) --enable-target-optspace optimize for space --enable-malloc-debugging indicate malloc debugging requested @@ -2474,6 +2476,18 @@ else lite_exit=no fi +# Check whether --enable-newlib_nano_formatted_io was given. +if test "${enable_newlib_nano_formatted_io+set}" = set; then : + enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in + yes) newlib_nano_formatted_io=yes ;; + no) newlib_nano_formatted_io=no ;; + *) as_fn_error $? "bad value ${enableval} for newlib-nano-formatted-io" "$LINENO" 5 ;; + esac +else + newlib_nano_formatted_io=yes +fi + + # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || @@ -12409,6 +12423,13 @@ _ACEOF fi +if test "${newlib_nano_formatted_io}" = "yes"; then +cat >>confdefs.h <<_ACEOF +#define _NANO_FORMATTED_IO 1 +_ACEOF + +fi + if test "x${iconv_encodings}" != "x" \ || test "x${iconv_to_encodings}" != "x" \ |