iswblank: Ensure declaration on glibc systems.
authorBruno Haible <bruno@clisp.org>
Sun, 6 Feb 2011 21:12:25 +0000 (22:12 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 8 Feb 2011 10:28:30 +0000 (11:28 +0100)
* m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
* modules/iswblank (Dependencies): Add 'extensions'.
* doc/posix-functions/iswblank.texi: Document the glibc problem.

ChangeLog
doc/posix-functions/iswblank.texi
m4/iswblank.m4
modules/iswblank

index 6266eaa..6fed235 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-02-06  Bruno Haible  <bruno@clisp.org>
 
+       iswblank: Ensure declaration on glibc systems.
+       * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
+       * modules/iswblank (Dependencies): Add 'extensions'.
+       * doc/posix-functions/iswblank.texi: Document the glibc problem.
+
+2011-02-06  Bruno Haible  <bruno@clisp.org>
+
        New module 'iswblank'.
        * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
        * modules/iswblank: New file.
index 367a5e2..b36e69f 100644 (file)
@@ -15,6 +15,9 @@ AIX 4.3.2, IRIX 6.5, OSF/1 5.1, Solaris 9, mingw.
 This function is declared but not defined on some platforms:
 IRIX 6.5.30.
 @item
+This function is not declared (without @code{-D_GNU_SOURCE}) on some platforms:
+glibc 2.8.
+@item
 This function returns 0 for all possible arguments on some platforms:
 Linux libc5.
 @end itemize
index 8f15f40..38641ff 100644 (file)
@@ -1,4 +1,4 @@
-# iswblank.m4 serial 1
+# iswblank.m4 serial 2
 dnl Copyright (C) 2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,6 +8,8 @@ AC_DEFUN([gl_FUNC_ISWBLANK],
 [
   AC_REQUIRE([gl_WCTYPE_H_DEFAULTS])
   AC_REQUIRE([gl_WCTYPE_H])
+  dnl Persuade glibc <wctype.h> to declare iswblank().
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   AC_CHECK_FUNCS_ONCE([iswblank])
   AC_CHECK_DECLS_ONCE([iswblank])
   if test $ac_cv_func_iswblank = no; then
index 2a4a817..972107e 100644 (file)
@@ -7,6 +7,7 @@ m4/iswblank.m4
 
 Depends-on:
 wctype-h
+extensions
 
 configure.ac:
 gl_FUNC_ISWBLANK