diff options
author | Paolo Carlini <pcarlini@unitus.it> | 2002-11-15 09:06:35 +0100 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2002-11-15 08:06:35 +0000 |
commit | 74af99e5a2b4e334fded21c997b6422f0502d1c3 (patch) | |
tree | a5b34ca6b5f3cae8764d0aeaf4a20d6f55e91277 /libstdc++-v3/configure.in | |
parent | 90024bdce00c22606c92ecb32070db2986c51ad6 (diff) | |
download | gcc-74af99e5a2b4e334fded21c997b6422f0502d1c3.zip gcc-74af99e5a2b4e334fded21c997b6422f0502d1c3.tar.gz gcc-74af99e5a2b4e334fded21c997b6422f0502d1c3.tar.bz2 |
re PR libstdc++/8399 (sync_with_stdio(false) breaks unformatted input)
2002-11-15 Paolo Carlini <pcarlini@unitus.it>
Loren J. Rittle <ljrittle@acm.org>
PR libstdc++/8399
* acinclude.m4
(GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): New macro to
check for unistd.h functions.
(GLIBCPP_CHECK_UNISTD_SUPPORT): New macro, check for isatty
in unistd.h.
* configure.in: Call here.
* src/ios.cc (ios_base::Init::_S_ios_create(bool)):
Use _GLIBCPP_HAVE_ISATTY: ifdef, in case of interactive
input __in_size = 1 even when sync_with_stdio is false;
otherwise fall back to __in_size = 1.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>
From-SVN: r59118
Diffstat (limited to 'libstdc++-v3/configure.in')
-rw-r--r-- | libstdc++-v3/configure.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/configure.in b/libstdc++-v3/configure.in index 4be7d9d..50b2e89 100644 --- a/libstdc++-v3/configure.in +++ b/libstdc++-v3/configure.in @@ -397,6 +397,7 @@ else GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT GLIBCPP_CHECK_WCHAR_T_SUPPORT GLIBCPP_CHECK_STDLIB_SUPPORT + GLIBCPP_CHECK_UNISTD_SUPPORT AC_LC_MESSAGES AC_TRY_COMPILE([ |