diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2010-06-08 22:44:14 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2010-06-08 22:44:14 +0400 |
commit | 58d6976a6e8cf1af0cf2747d5b8caa05eb765487 (patch) | |
tree | 55c09d25adf7f8c38319ae98ebc73b139d7b33be /newlib/configure.in | |
parent | b7d3e6d7d23d74a3b99e3a55a8d982d382f3930f (diff) |
2010-06-08 Jeff Johnston <jjohnstn@redhat.com>
* configure.in: Add test for enable-newlib-register-fini
to set the _WANT_REGISTER_FINI flag.
* configure: Regenerated.
* Makefile.in: Ditto.
* newlib.hin: Add _WANT_REGISTER_FINI flag.
* libc/stdlib/__call_atexit.c: Add test for
_WANT_REGISTER_FINI to enable the register_fini function.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r-- | newlib/configure.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/newlib/configure.in b/newlib/configure.in index 8fe01f310..b6e5dee3c 100644 --- a/newlib/configure.in +++ b/newlib/configure.in @@ -29,6 +29,15 @@ AC_ARG_ENABLE(newlib-io-c99-formats, *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-c99-formats option) ;; esac], [newlib_io_c99_formats=])dnl +dnl Support --enable-newlib-register-fini +AC_ARG_ENABLE(newlib-register-fini, +[ --enable-newlib-register-fini enable finalization function registration using atexit], +[case "${enableval}" in + yes) newlib_register_fini=yes;; + no) newlib_register_fini=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for newlib-register-fini option) ;; + esac], [newlib_register_fini=])dnl + dnl Support --enable-newlib-io-long-long AC_ARG_ENABLE(newlib-io-long-long, [ --enable-newlib-io-long-long enable long long type support in IO functions like printf/scanf], @@ -244,6 +253,10 @@ if test "${newlib_io_c99_formats}" = "yes"; then AC_DEFINE_UNQUOTED(_WANT_IO_C99_FORMATS) fi +if test "${newlib_register_fini}" = "yes"; then +AC_DEFINE_UNQUOTED(_WANT_REGISTER_FINI) +fi + if test "${newlib_io_long_long}" = "yes"; then AC_DEFINE_UNQUOTED(_WANT_IO_LONG_LONG) fi |