diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-05-29 16:37:59 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-05-29 16:37:59 +0400 |
commit | a83263b981a6b222d6305023682e57e4a0f387c4 (patch) | |
tree | 5683cc14f025673fa879c8734855e8ef0a848afe /newlib/configure.in | |
parent | 6b6cafe9330dbd629ac9ba7f893d15795ee17320 (diff) |
* configure.in (--enable-newlib-nano-malloc): New option.
* configure: Regenerated.
* libc/configure.in (--enable-newlib-nano-malloc): New option.
* libc/configure: Regenerated.
* libc/stdlib/Makefile.am (NEWLIB_NANO_MALLOC): Use.
* libc/stdlib/Makefile.in: Regenerated.
* libc/stdlib/nano-mallocr.c: New file, implementing nano
version malloc family functions.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r-- | newlib/configure.in | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/newlib/configure.in b/newlib/configure.in index 95025fe88..5646d64d0 100644 --- a/newlib/configure.in +++ b/newlib/configure.in @@ -157,6 +157,19 @@ AC_ARG_ENABLE(newlib_wide_orient, *) AC_MSG_ERROR(bad value ${enableval} for newlib-wide-orient) ;; esac],[newlib_wide_orient=yes]) +dnl Support --enable-newlib-nano-malloc +dnl This option is also read in libc/configure.in. It is repeated +dnl here so that it shows up in the help text. +AC_ARG_ENABLE(newlib-nano-malloc, +[ --enable-newlib-nano-malloc use small-footprint nano-malloc implementation], +[if test "${newlib_nano_malloc+set}" != set; then + case "${enableval}" in + yes) newlib_nano_malloc=yes ;; + no) newlib_nano_malloc=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for newlib-nano-malloc option) ;; + esac + fi], [newlib_nano_malloc=no])dnl + NEWLIB_CONFIGURE(.) dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and @@ -345,19 +358,23 @@ fi if test "${newlib_atexit_dynamic_alloc}" = "yes"; then AC_DEFINE_UNQUOTED(_ATEXIT_DYNAMIC_ALLOC) fi - + if test "${newlib_fvwrite_in_streamio}" = "yes"; then AC_DEFINE_UNQUOTED(_FVWRITE_IN_STREAMIO) fi - + if test "${newlib_fseek_optimization}" = "yes"; then AC_DEFINE_UNQUOTED(_FSEEK_OPTIMIZATION) fi - + if test "${newlib_wide_orient}" = "yes"; then AC_DEFINE_UNQUOTED(_WIDE_ORIENT) fi +if test "${newlib_nano_malloc}" = "yes"; then +AC_DEFINE_UNQUOTED(_NANO_MALLOC) +fi + dnl dnl Parse --enable-newlib-iconv-encodings option argument dnl |