Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/configure')
-rwxr-xr-xnewlib/configure28
1 files changed, 25 insertions, 3 deletions
diff --git a/newlib/configure b/newlib/configure
index cf14cd1ae..fe55eb115 100755
--- a/newlib/configure
+++ b/newlib/configure
@@ -792,6 +792,7 @@ enable_newlib_reent_small
enable_newlib_fvwrite_in_streamio
enable_newlib_fseek_optimization
enable_newlib_wide_orient
+enable_newlib_nano_malloc
enable_multilib
enable_target_optspace
enable_malloc_debugging
@@ -1453,11 +1454,12 @@ Optional Features:
--enable-newlib-iconv-from-encodings enable specific comma-separated list of \"from\" iconv encodings to be built-in
--enable-newlib-iconv-to-encodings enable specific comma-separated list of \"to\" iconv encodings to be built-in
--enable-newlib-iconv-external-ccs enable capabilities to load external CCS files for iconv
- --disable-newlib-atexit-alloc disable dynamic allocation of atexit entries
+ --disable-newlib-atexit-dynamic-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
--disable-newlib-fseek-optimization disable fseek optimization
--disable-newlib-wide-orient Turn off wide orientation in streamio
+ --enable-newlib-nano-malloc use small-footprint nano-malloc implementation
--enable-multilib build many library versions (default)
--enable-target-optspace optimize for space
--enable-malloc-debugging indicate malloc debugging requested
@@ -2395,6 +2397,19 @@ else
fi
+# Check whether --enable-newlib-nano-malloc was given.
+if test "${enable_newlib_nano_malloc+set}" = set; then :
+ enableval=$enable_newlib_nano_malloc; if test "${newlib_nano_malloc+set}" != set; then
+ case "${enableval}" in
+ yes) newlib_nano_malloc=yes ;;
+ no) newlib_nano_malloc=no ;;
+ *) as_fn_error $? "bad value ${enableval} for newlib-nano-malloc option" "$LINENO" 5 ;;
+ esac
+ fi
+else
+ newlib_nano_malloc=no
+fi
+
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
@@ -11695,7 +11710,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11684 "configure"
+#line 11698 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11801,7 +11816,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11790 "configure"
+#line 11804 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12297,6 +12312,13 @@ _ACEOF
fi
+if test "${newlib_nano_malloc}" = "yes"; then
+cat >>confdefs.h <<_ACEOF
+#define NEWLIB_NANO_MALLOC 1
+_ACEOF
+
+fi
+
if test "x${iconv_encodings}" != "x" \
|| test "x${iconv_to_encodings}" != "x" \