Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-04-12 16:05:31 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-04-12 16:05:31 +0400
commitf7a4b388b0f7c49bc1542ae9829e6fb31bc9c611 (patch)
tree908cbe7edd91e596ad54e9c2b551720df5fc7a33 /newlib/configure.in
parent492ee4ee4b3afe434279078b2796c7233a55a256 (diff)
* acconfig.h (_WCHAR_ORIENT): Undef
* newlib.hin (_WCHAR_ORIENT): Undef * configure.in (--enable-newlib-wchar-orient): New option. * configure: Regenerated. * libc/configure.in (--enable-newlib-wchar-orient): New option. * libc/configure: Regenerated. * libc/stdio/Makefile.am (NEWLIB_WIDE_ORIENT): Use. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/local.h (ORIENT): Use _WCHAR_ORIENT to control the definition. Add alternative definition. * libc/stdio/vfprintf.c (__sfputs_r, __sprint_r): Use _WCHAR_ORIENT to control the wide char output.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r--newlib/configure.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/newlib/configure.in b/newlib/configure.in
index f4a65c0df..58f56b9ad 100644
--- a/newlib/configure.in
+++ b/newlib/configure.in
@@ -145,6 +145,17 @@ AC_ARG_ENABLE(newlib-fseek-optimization,
*) AC_MSG_ERROR(bad value ${enableval} for newlib-fseek-optimization option) ;;
esac
fi], [newlib_fseek_optimization=yes])dnl
+
+dnl Support --enable-newlib-wide-orient
+dnl This option is also read in libc/configure.in. It is repeated
+dnl here so that it shows up in the help text.
+AC_ARG_ENABLE(newlib_wide_orient,
+[ --disable-newlib-wide-orient Turn off wide orientation in streamio],
+[case "${enableval}" in
+ yes) newlib_wide_orient=yes ;;
+ no) newlib_wide_orient=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for newlib-wide-orient) ;;
+ esac],[newlib_wide_orient=yes])
NEWLIB_CONFIGURE(.)
@@ -342,6 +353,10 @@ fi
if test "${newlib_fseek_optimization}" = "yes"; then
AC_DEFINE_UNQUOTED(_FSEEK_OPTIMIZATION)
fi
+
+if test "${newlib_wide_orient}" = "yes"; then
+AC_DEFINE_UNQUOTED(_WIDE_ORIENT)
+fi
dnl
dnl Parse --enable-newlib-iconv-encodings option argument