Commit 9a200b0a by Phil Edwards

acinclude.m4 (GLIBCPP_CHECK_CTYPE): Tweaks to message texts for public relations purposes.

2000-10-05  Phil Edwards  <pme@sources.redhat.com>

	* acinclude.m4 (GLIBCPP_CHECK_CTYPE):  Tweaks to message texts
	  for public relations purposes.
	* aclocal.m4:  Regenerated.
	* configure:  Regenerated.

	* docs/ext/howto.html:  Additional explanation about hashing.

From-SVN: r36731
parent 2296d164
2000-10-05 Phil Edwards <pme@sources.redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_CTYPE): Tweaks to message texts
for public relations purposes.
* aclocal.m4: Regenerated.
* configure: Regenerated.
* docs/ext/howto.html: Additional explanation about hashing.
2000-10-05 Benjamin Kosnik <bkoz@cygnus.com> 2000-10-05 Benjamin Kosnik <bkoz@cygnus.com>
* include: New directory. * include: New directory.
......
...@@ -583,7 +583,6 @@ AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [ ...@@ -583,7 +583,6 @@ AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [
dnl keep this sync'd with the one above. And if you add any new symbol, dnl keep this sync'd with the one above. And if you add any new symbol,
dnl please add the corresponding block in the @BOTTOM@ section of acconfig.h. dnl please add the corresponding block in the @BOTTOM@ section of acconfig.h.
dnl Check to see if certain C math functions exist. dnl Check to see if certain C math functions exist.
dnl Check to see if certain C math functions exist.
GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_isinf) GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_isinf)
GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_isnan) GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_isnan)
GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_finite) GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_finite)
...@@ -748,8 +747,8 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -748,8 +747,8 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
dnl If doesn't match any specified, go with defaults. dnl If doesn't match any specified, go with defaults.
ctype_default=yes ctype_default=yes
dnl Test for <ctype> functionality -- gnu-linux dnl Test for <ctype> functionality -- GNU/Linux
AC_MSG_CHECKING([<ctype> for gnu-linux ]) AC_MSG_CHECKING([<ctype> for GNU/Linux])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -765,7 +764,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -765,7 +764,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
dnl Test for <ctype> functionality -- FreeBSD 4.0 dnl Test for <ctype> functionality -- FreeBSD 4.0
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for freebsd 4.0 ]) AC_MSG_CHECKING([<ctype> for FreeBSD 4.0])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -781,7 +780,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -781,7 +780,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
dnl Test for <ctype> functionality -- FreeBSD 3.4 dnl Test for <ctype> functionality -- FreeBSD 3.4
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for freebsd 3.4 ]) AC_MSG_CHECKING([<ctype> for FreeBSD 3.4])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -795,9 +794,9 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -795,9 +794,9 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
fi fi
fi fi
dnl Test for <ctype> functionality -- solaris 2.6 and 2.7 dnl Test for <ctype> functionality -- Solaris 2.6 and up
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for solaris 2.[6,7,8] ]) AC_MSG_CHECKING([<ctype> for Solaris 2.6,7,8])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -816,19 +815,19 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -816,19 +815,19 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
AC_LANG_C AC_LANG_C
if test $ctype_solaris26 = "yes"; then if test $ctype_solaris26 = "yes"; then
ctype_include_dir="config/solaris/solaris2.6" ctype_include_dir="config/solaris/solaris2.6"
AC_MSG_RESULT("solaris2.6") AC_MSG_RESULT([Solaris 2.6])
ctype_default=no ctype_default=no
else else
ctype_include_dir="config/solaris/solaris2.7" ctype_include_dir="config/solaris/solaris2.7"
AC_MSG_RESULT("solaris2.[7,8]") AC_MSG_RESULT([Solaris 7,8])
ctype_default=no ctype_default=no
fi fi
fi fi
fi fi
dnl Test for <ctype> functionality -- solaris 2.5.1 dnl Test for <ctype> functionality -- Solaris 2.5.1
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for solaris 2.5.1 ]) AC_MSG_CHECKING([<ctype> for Solaris 2.5.1])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -842,9 +841,9 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -842,9 +841,9 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
fi fi
fi fi
dnl Test for <ctype> functionality -- aix dnl Test for <ctype> functionality -- AIX
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for aix ]) AC_MSG_CHECKING([<ctype> for AIX])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -861,7 +860,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -861,7 +860,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
dnl Test for <ctype> functionality -- newlib dnl Test for <ctype> functionality -- newlib
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for newlib ]) AC_MSG_CHECKING([<ctype> for newlib])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -1592,3 +1591,4 @@ AC_DEFUN([AM_PROG_LIBTOOL]) ...@@ -1592,3 +1591,4 @@ AC_DEFUN([AM_PROG_LIBTOOL])
AC_DEFUN([AC_LIBTOOL_DLOPEN]) AC_DEFUN([AC_LIBTOOL_DLOPEN])
AC_DEFUN([AC_PROG_LD]) AC_DEFUN([AC_PROG_LD])
]) ])
...@@ -595,7 +595,6 @@ AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [ ...@@ -595,7 +595,6 @@ AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [
dnl keep this sync'd with the one above. And if you add any new symbol, dnl keep this sync'd with the one above. And if you add any new symbol,
dnl please add the corresponding block in the @BOTTOM@ section of acconfig.h. dnl please add the corresponding block in the @BOTTOM@ section of acconfig.h.
dnl Check to see if certain C math functions exist. dnl Check to see if certain C math functions exist.
dnl Check to see if certain C math functions exist.
GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_isinf) GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_isinf)
GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_isnan) GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_isnan)
GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_finite) GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1(_finite)
...@@ -760,8 +759,8 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -760,8 +759,8 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
dnl If doesn't match any specified, go with defaults. dnl If doesn't match any specified, go with defaults.
ctype_default=yes ctype_default=yes
dnl Test for <ctype> functionality -- gnu-linux dnl Test for <ctype> functionality -- GNU/Linux
AC_MSG_CHECKING([<ctype> for gnu-linux ]) AC_MSG_CHECKING([<ctype> for GNU/Linux])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -777,7 +776,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -777,7 +776,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
dnl Test for <ctype> functionality -- FreeBSD 4.0 dnl Test for <ctype> functionality -- FreeBSD 4.0
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for freebsd 4.0 ]) AC_MSG_CHECKING([<ctype> for FreeBSD 4.0])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -793,7 +792,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -793,7 +792,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
dnl Test for <ctype> functionality -- FreeBSD 3.4 dnl Test for <ctype> functionality -- FreeBSD 3.4
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for freebsd 3.4 ]) AC_MSG_CHECKING([<ctype> for FreeBSD 3.4])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -807,9 +806,9 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -807,9 +806,9 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
fi fi
fi fi
dnl Test for <ctype> functionality -- solaris 2.6 and 2.7 dnl Test for <ctype> functionality -- Solaris 2.6 and up
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for solaris 2.[6,7,8] ]) AC_MSG_CHECKING([<ctype> for Solaris 2.6,7,8])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -828,19 +827,19 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -828,19 +827,19 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
AC_LANG_C AC_LANG_C
if test $ctype_solaris26 = "yes"; then if test $ctype_solaris26 = "yes"; then
ctype_include_dir="config/solaris/solaris2.6" ctype_include_dir="config/solaris/solaris2.6"
AC_MSG_RESULT("solaris2.6") AC_MSG_RESULT([Solaris 2.6])
ctype_default=no ctype_default=no
else else
ctype_include_dir="config/solaris/solaris2.7" ctype_include_dir="config/solaris/solaris2.7"
AC_MSG_RESULT("solaris2.[7,8]") AC_MSG_RESULT([Solaris 7,8])
ctype_default=no ctype_default=no
fi fi
fi fi
fi fi
dnl Test for <ctype> functionality -- solaris 2.5.1 dnl Test for <ctype> functionality -- Solaris 2.5.1
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for solaris 2.5.1 ]) AC_MSG_CHECKING([<ctype> for Solaris 2.5.1])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -854,9 +853,9 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -854,9 +853,9 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
fi fi
fi fi
dnl Test for <ctype> functionality -- aix dnl Test for <ctype> functionality -- AIX
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for aix ]) AC_MSG_CHECKING([<ctype> for AIX])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -873,7 +872,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -873,7 +872,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
dnl Test for <ctype> functionality -- newlib dnl Test for <ctype> functionality -- newlib
if test $ctype_default = "yes"; then if test $ctype_default = "yes"; then
AC_MSG_CHECKING([<ctype> for newlib ]) AC_MSG_CHECKING([<ctype> for newlib])
AC_TRY_COMPILE([#include <ctype.h>], AC_TRY_COMPILE([#include <ctype.h>],
[int [int
foo (int a) foo (int a)
...@@ -1605,6 +1604,7 @@ AC_DEFUN([AC_LIBTOOL_DLOPEN]) ...@@ -1605,6 +1604,7 @@ AC_DEFUN([AC_LIBTOOL_DLOPEN])
AC_DEFUN([AC_PROG_LD]) AC_DEFUN([AC_PROG_LD])
]) ])
# Do all the work for Automake. This macro actually does too much -- # Do all the work for Automake. This macro actually does too much --
# some checks are only needed if your package does certain things. # some checks are only needed if your package does certain things.
# But this isn't really a big deal. # But this isn't really a big deal.
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<TITLE>libstdc++-v3 HOWTO: Extensions</TITLE> <TITLE>libstdc++-v3 HOWTO: Extensions</TITLE>
<LINK REL="home" HREF="http://sources.redhat.com/libstdc++/docs/ext/"> <LINK REL="home" HREF="http://sources.redhat.com/libstdc++/docs/ext/">
<LINK REL=StyleSheet HREF="../lib3styles.css"> <LINK REL=StyleSheet HREF="../lib3styles.css">
<!-- $Id: howto.html,v 1.5 2000/09/19 21:54:48 pme Exp $ --> <!-- $Id: howto.html,v 1.1 2000/09/25 21:42:14 pme Exp $ -->
</HEAD> </HEAD>
<BODY> <BODY>
...@@ -84,6 +84,16 @@ ...@@ -84,6 +84,16 @@
functions, as well as some extra constructors specifying the number functions, as well as some extra constructors specifying the number
of buckets, etc. of buckets, etc.
</P> </P>
<P>Why would you want to use a hashing class instead of the
&quot;normal&quot; implementations? Matt Austern writes:
<BLOCKQUOTE><EM>[W]ith a well chosen hash function, hash tables
generally provide much better average-case performance than binary
search trees, and much worse worst-case performance. So if your
implementation has hash_map, if you don't mind using nonstandard
components, and if you aren't scared about the possibility of
pathological cases, you'll probably get better performance from
hash_map.</EM></BLOCKQUOTE>
</P>
<P>(Side note: for those of you wondering, <B>&quot;Why wasn't a hash <P>(Side note: for those of you wondering, <B>&quot;Why wasn't a hash
table included in the Standard in the first #!$@ place?&quot;</B> I'll table included in the Standard in the first #!$@ place?&quot;</B> I'll
give a quick answer: it was proposed, but too late and in too give a quick answer: it was proposed, but too late and in too
...@@ -139,7 +149,7 @@ ...@@ -139,7 +149,7 @@
Comments and suggestions are welcome, and may be sent to Comments and suggestions are welcome, and may be sent to
<A HREF="mailto:pme@sources.redhat.com">Phil Edwards</A> or <A HREF="mailto:pme@sources.redhat.com">Phil Edwards</A> or
<A HREF="mailto:gdr@egcs.cygnus.com">Gabriel Dos Reis</A>. <A HREF="mailto:gdr@egcs.cygnus.com">Gabriel Dos Reis</A>.
<BR> $Id: howto.html,v 1.5 2000/09/19 21:54:48 pme Exp $ <BR> $Id: howto.html,v 1.1 2000/09/25 21:42:14 pme Exp $
</EM></P> </EM></P>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment