diff options
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 |