diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-05-26 04:19:14 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-05-26 04:19:14 +0400 |
commit | 227e6ef6c377fb56e871282d3afa2b2454d0e861 (patch) | |
tree | b02327b5118a24892774800c990b80998c26c16e /newlib/configure.in | |
parent | 9178da9597c5c47a9591c44006f42218a351fa8c (diff) |
2004-05-25 Artem B. Bityuckiy <abitytsky@softminecorp.com>
* newlib.hin: (_WANT_IO_POS_ARGS): New define.
(_WANT_IO_LONG_LONG): Ditto.
(_WANT_IO_LONG_DOUBLE): Ditto.
* configure.in: Add new configuration options
--enable-newlib-io-long-long and --enable-newlib-io-long-double
which tie to new defines in newlib.hin.
* configure: Regenerated.
* configure.host: Add checks for new configuration options. Also
fix up check for --enable-newlib-io-pos-args so configuration
option will override any default for a given platform.
Remove defining compiler flags for the _WANT_IO* options.
* libc/stdio/vfprintf.c: Change to use new newlib.hin defines
instead of looking for old compiler flags.
* libc/stdio/vfscanf.c: Ditto.
* libc/stdio/vfieeefp.h: Ditto.
* libc/machine/powerpc/vfprintf.c: Ditto.
* libc/machine/powerpc/vfscanf.c: Ditto.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r-- | newlib/configure.in | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/newlib/configure.in b/newlib/configure.in index 91a21c744..693d092ea 100644 --- a/newlib/configure.in +++ b/newlib/configure.in @@ -17,8 +17,25 @@ AC_ARG_ENABLE(newlib-io-pos-args, yes) newlib_io_pos_args=yes ;; no) newlib_io_pos_args=no ;; *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-pos-args option) ;; - esac], [newlib_io_pos_args=no])dnl + esac], [newlib_io_pos_args=])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], +[case "${enableval}" in + yes) newlib_io_long_long=yes;; + no) newlib_io_long_long=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-long-long option) ;; + esac], [newlib_io_long_long=])dnl + +dnl Support --enable-newlib-io-long-double +AC_ARG_ENABLE(newlib-io-long-double, +[ --enable-newlib-io-long-double enable long double type support in IO functions printf/scanf], +[case "${enableval}" in + yes) newlib_io_long_double=yes;; + no) newlib_io_long_double=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-long-double option) ;; + esac], [newlib_io_long_double=])dnl NEWLIB_CONFIGURE(.) @@ -144,6 +161,18 @@ if test "${newlib_elix_level}" -gt "0"; then AC_DEFINE_UNQUOTED(_ELIX_LEVEL,${newlib_elix_level}) fi +if test "${newlib_io_long_long}" = "yes"; then +AC_DEFINE_UNQUOTED(_WANT_IO_LONG_LONG) +fi + +if test "${newlib_io_long_double}" = "yes"; then +AC_DEFINE_UNQUOTED(_WANT_IO_LONG_DOUBLE) +fi + +if test "${newlib_io_pos_args}" = "yes"; then +AC_DEFINE_UNQUOTED(_WANT_IO_POS_ARGS) +fi + if test "${newlib_mb}" = "yes"; then AC_DEFINE_UNQUOTED(_MB_CAPABLE) AC_DEFINE_UNQUOTED(_MB_LEN_MAX,8) |