[multiple changes]

2002-03-11  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for wctype.h.
	* aclocal.m4: Regenerate.
	* config.h.in: Regenerate.
	* configure: Regenerate.
	* include/c_std/std_cwctype.h: Guard.

2002-03-11  Chris Demetriou  <cgd@broadcom.com>

	* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Enhance check for
	whether GLIBCPP_CHECK_LINKER_FEATURES has been used.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

From-SVN: r50717
This commit is contained in:
Benjamin Kosnik 2002-03-13 06:25:50 +00:00
parent 6ec9a3310c
commit 3fc5a6b005
6 changed files with 1025 additions and 969 deletions

View File

@ -1,9 +1,23 @@
2002-03-12 Loren Rittle <ljrittle@acm.org>
reported by Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* testsuite/thread/pthread4.cc: Lower nominal iteration counter.
2002-03-11 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for wctype.h.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/c_std/std_cwctype.h: Guard.
2002-03-11 Chris Demetriou <cgd@broadcom.com>
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Enhance check for
whether GLIBCPP_CHECK_LINKER_FEATURES has been used.
* aclocal.m4: Regenerate.
* configure: Regenerate.
2002-03-11 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_bvector.h: Fix warning.

View File

@ -356,8 +356,7 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
fi
# Set linker optimization flags.
if test x"$with_gnu_ld" = x"yes" &&
test x"$enable_debug" = x"no"; then
if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
fi
@ -870,7 +869,7 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [
dnl Sanity check for existence of ISO C99 headers for extended encoding.
AC_CHECK_HEADERS(wchar.h, ac_has_wchar_h=yes, ac_has_wchar_h=no)
AC_CHECK_HEADER(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
AC_CHECK_HEADERS(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
dnl Only continue checking if the ISO C99 headers exist and support is on.
if test x"$ac_has_wchar_h" = xyes &&
@ -2062,7 +2061,9 @@ enable_symvers=GLIBCPP_ENABLE_SYMVERS_DEFAULT)dnl
# If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
# don't know enough about $LD to do tricks...
if test $enable_shared = no || test x$LD = x ; then
if test x$enable_shared = xno ||
test x$LD = x ||
test x$glibcpp_gnu_ld_version = x; then
enable_symvers=no
fi
@ -2125,4 +2126,3 @@ AC_MSG_CHECKING([versioning on shared library symbols])
AC_MSG_RESULT($enable_symvers)
])

View File

@ -368,8 +368,7 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
fi
# Set linker optimization flags.
if test x"$with_gnu_ld" = x"yes" &&
test x"$enable_debug" = x"no"; then
if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
fi
@ -882,7 +881,7 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [
dnl Sanity check for existence of ISO C99 headers for extended encoding.
AC_CHECK_HEADERS(wchar.h, ac_has_wchar_h=yes, ac_has_wchar_h=no)
AC_CHECK_HEADER(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
AC_CHECK_HEADERS(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
dnl Only continue checking if the ISO C99 headers exist and support is on.
if test x"$ac_has_wchar_h" = xyes &&
@ -2074,7 +2073,9 @@ enable_symvers=GLIBCPP_ENABLE_SYMVERS_DEFAULT)dnl
# If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
# don't know enough about $LD to do tricks...
if test $enable_shared = no || test x$LD = x ; then
if test x$enable_shared = xno ||
test x$LD = x ||
test x$glibcpp_gnu_ld_version = x; then
enable_symvers=no
fi
@ -2138,7 +2139,6 @@ AC_MSG_RESULT($enable_symvers)
])
#serial 1
# This test replaces the one in autoconf.
# Currently this macro should have the same name as the autoconf macro

View File

@ -723,6 +723,9 @@
/* Define if you have the <wchar.h> header file. */
#undef HAVE_WCHAR_H
/* Define if you have the <wctype.h> header file. */
#undef HAVE_WCTYPE_H
/* Define if you have the m library (-lm). */
#undef HAVE_LIBM

1946
libstdc++-v3/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,7 @@
// -*- C++ -*- forwarding header.
// Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -43,8 +44,12 @@
#ifndef _CPP_CWCTYPE
#define _CPP_CWCTYPE 1
#include <bits/c++config.h>
#if _GLIBCPP_HAVE_WCTYPE_H
#pragma GCC system_header
#include <wctype.h>
#endif
// Get rid of those macros defined in <wctype.h> in lieu of real functions.
#undef iswalnum
@ -67,6 +72,7 @@
#undef wctrans
#undef wctype
#if _GLIBCPP_USE_WCHAR_T
namespace std
{
using ::wint_t; // cwchar
@ -94,5 +100,6 @@ namespace std
using ::wctrans;
using ::wctype;
}
#endif //_GLIBCPP_USE_WCHAR_T
#endif