summaryrefslogtreecommitdiffstats
path: root/newlib/configure
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/configure')
-rwxr-xr-xnewlib/configure26
1 files changed, 24 insertions, 2 deletions
diff --git a/newlib/configure b/newlib/configure
index 7f6155d54..e05a2d3f4 100755
--- a/newlib/configure
+++ b/newlib/configure
@@ -794,6 +794,7 @@ enable_newlib_fseek_optimization
enable_newlib_wide_orient
enable_newlib_nano_malloc
enable_newlib_unbuf_stream_opt
+enable_lite_exit
enable_multilib
enable_target_optspace
enable_malloc_debugging
@@ -1462,6 +1463,7 @@ Optional Features:
--disable-newlib-wide-orient Turn off wide orientation in streamio
--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-multilib build many library versions (default)
--enable-target-optspace optimize for space
--enable-malloc-debugging indicate malloc debugging requested
@@ -2425,6 +2427,19 @@ else
newlib_unbuf_stream_opt=yes
fi
+# Check whether --enable-lite-exit was given.
+if test "${enable_lite_exit+set}" = set; then :
+ enableval=$enable_lite_exit; if test "${lite_exit+set}" != set; then
+ case "${enableval}" in
+ yes) lite_exit=yes ;;
+ no) lite_exit=no ;;
+ *) as_fn_error $? "bad value ${enableval} for lite-exit option" "$LINENO" 5 ;;
+ esac
+ fi
+else
+ lite_exit=no
+fi
+
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
@@ -11725,7 +11740,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11698 "configure"
+#line 11743 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11831,7 +11846,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11804 "configure"
+#line 11849 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12341,6 +12356,13 @@ _ACEOF
fi
+if test "${lite_exit}" = "yes"; then
+cat >>confdefs.h <<_ACEOF
+#define _LITE_EXIT 1
+_ACEOF
+
+fi
+
if test "x${iconv_encodings}" != "x" \
|| test "x${iconv_to_encodings}" != "x" \