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/libc/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/libc/configure.in')
-rw-r--r-- | newlib/libc/configure.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/newlib/libc/configure.in b/newlib/libc/configure.in index f262d7d45..d9df7c5f7 100644 --- a/newlib/libc/configure.in +++ b/newlib/libc/configure.in @@ -27,6 +27,16 @@ AC_ARG_ENABLE(newlib_wide_orient, esac],[newlib_wide_orient=yes]) AM_CONDITIONAL(NEWLIB_WIDE_ORIENT, test x$newlib_wide_orient = xyes) +dnl Support --enable-newlib-nano-malloc used by libc/stdlib +AC_ARG_ENABLE(newlib_nano_malloc, +[ --enable-newlib-nano-malloc Use small-footprint nano-malloc implementation], +[case "${enableval}" in + yes) newlib_nano_malloc=yes ;; + no) newlib_nano_malloc=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for newlib-nano-malloc) ;; + esac],[newlib_nano_malloc=no]) +AM_CONDITIONAL(NEWLIB_NANO_MALLOC, test x$newlib_nano_malloc = xyes) + NEWLIB_CONFIGURE(..) dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and |