2008-01-14 Eric Blake <ebb9@byu.net>
+ Touch up previous patch.
+ * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
+ * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
+
Convert strcasestr module to use Two-Way algorithm.
* modules/strcasestr-simple: New module, based on the old
strcasestr, but with Two-Way rather than KMP.
@itemize
@item
This function is missing on some platforms:
-MacOS X 10.3, FreeBSD 5.2.1, OpenBSD 4.0, AIX 4.3.2, HP-UX 11, IRIX
-6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x, mingw, Interix 3.5, BeOS.
+MacOS X 10.3, FreeBSD 5.2.1, AIX 4.3.2, HP-UX 11, IRIX 6.5, OSF/1 5.1,
+Solaris 10, Cygwin 1.5.x, mingw, Interix 3.5, BeOS.
@end itemize
Portability problems fixed by Gnulib module @code{strcasestr}:
@item
This function has quadratic instead of linear worst-case complexity on some
platforms:
-glibc 2.6.1, FreeBSD 6.2, NetBSD 3.0, AIX 5.1.
+glibc 2.6.1, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, AIX 5.1.
@end itemize
Portability problems not fixed by Gnulib:
-# strcasestr.m4 serial 7
+# strcasestr.m4 serial 8
dnl Copyright (C) 2005, 2007, 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
]) # gl_FUNC_STRCASESTR_SIMPLE
dnl Additionally, check that strcasestr is efficient.
-AC_DEFUN([gl_FUNC_STRCASESTR])
+AC_DEFUN([gl_FUNC_STRCASESTR],
[
AC_REQUIRE([gl_FUNC_STRCASESTR_SIMPLE])
if test $ac_cv_func_strcasestr = yes; then