diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2013-04-10 22:47:46 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2013-04-10 22:47:46 +0400 |
commit | 602cec7f1eb17b96525d09752fd1f0ad474e3202 (patch) | |
tree | 32e10a62bf758fcbb8951c4361a974a7066461c3 /newlib/configure.in | |
parent | b49dae4a4443858b2ce51daac3883ad0f1473145 (diff) |
2013-04-10 Bin Cheng <bin.cheng@arm.com>
* acconfig.h (_FSEEK_OPTIMIZATION): Undef
* newlib.hin (_FSEEK_OPTIMIZATION): Undef
* configure.in (--disable-newlib-fseek-optimization): New option.
* configure: Regenerated.
* libc/stdio/fflush.c (__sflush_r): Use _FSEEK_OPTIMIZATION to
control fseek optimization.
* libc/stdio/fseeko.c (_fseeko_r): Ditto.
* libc/stdio/makebuf.c (__smakebuf_r): Ditto.
* libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r-- | newlib/configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/newlib/configure.in b/newlib/configure.in index daabcf276..f4a65c0df 100644 --- a/newlib/configure.in +++ b/newlib/configure.in @@ -135,6 +135,17 @@ AC_ARG_ENABLE(newlib-fvwrite-in-streamio, esac fi], [newlib_fvwrite_in_streamio=yes])dnl +dnl Support --disable-newlib-fseek-optimization +AC_ARG_ENABLE(newlib-fseek-optimization, +[ --disable-newlib-fseek-optimization disable fseek optimization], +[if test "${newlib_fseek_optimization+set}" != set; then + case "${enableval}" in + yes) newlib_fseek_optimization=yes ;; + no) newlib_fseek_optimization=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for newlib-fseek-optimization option) ;; + esac + fi], [newlib_fseek_optimization=yes])dnl + NEWLIB_CONFIGURE(.) dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and @@ -327,6 +338,10 @@ fi if test "${newlib_fvwrite_in_streamio}" = "yes"; then AC_DEFINE_UNQUOTED(_FVWRITE_IN_STREAMIO) fi + +if test "${newlib_fseek_optimization}" = "yes"; then +AC_DEFINE_UNQUOTED(_FSEEK_OPTIMIZATION) +fi dnl dnl Parse --enable-newlib-iconv-encodings option argument |