From e4aa6ea1121d24409f9fd5068ce4d3823d4eafc1 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 18 Oct 2013 08:43:05 +0000 Subject: * configure.in (enable-newlib-global-atexit): New option. * configure: Regenerated. * newlib.hin (_REENT_GLOBAL_ATEXIT): Place-holder. * README (enable-newlib-global-atexit): Description for new option. --- newlib/configure.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'newlib/configure.in') diff --git a/newlib/configure.in b/newlib/configure.in index 8e742f786..d260815c1 100644 --- a/newlib/configure.in +++ b/newlib/configure.in @@ -115,6 +115,19 @@ AC_ARG_ENABLE(newlib-atexit-dynamic-alloc, esac fi], [newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc}])dnl +dnl Support --enable-newlib-global-atexit +dnl Enable atexit data structure as global variables to save memory usage in +dnl _reent. +AC_ARG_ENABLE(newlib-global-atexit, +[ --enable-newlib-global-atexit enable atexit data structure as global], +[if test "${newlib_global_atexit+set}" != set; then + case "${enableval}" in + yes) newlib_global_atexit=yes ;; + no) newlib_global_atexit=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for newlib-global-atexit option) ;; + esac + fi], [newlib_global_atexit=no])dnl + dnl Support --enable-newlib-reent-small AC_ARG_ENABLE(newlib-reent-small, [ --enable-newlib-reent-small enable small reentrant struct support], @@ -383,6 +396,10 @@ if test "${newlib_atexit_dynamic_alloc}" = "yes"; then AC_DEFINE_UNQUOTED(_ATEXIT_DYNAMIC_ALLOC) fi +if test "${newlib_global_atexit}" = "yes"; then +AC_DEFINE_UNQUOTED(_REENT_GLOBAL_ATEXIT) +fi + if test "${newlib_fvwrite_in_streamio}" = "yes"; then AC_DEFINE_UNQUOTED(_FVWRITE_IN_STREAMIO) fi -- cgit v1.2.3