diff options
author | Bruno Haible <bruno@clisp.org> | 2011-02-06 23:59:34 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-02-09 20:54:31 +0100 |
commit | eb944d1d03d408d829b4fa68eefd3a1ae94f9eb5 (patch) | |
tree | e1a48f744ceb64201641501d99fc987cb8487eb9 /m4 | |
parent | 896cde703cb740a97353474e0156b46119b69640 (diff) | |
download | gnulib-eb944d1d03d408d829b4fa68eefd3a1ae94f9eb5.tar.gz |
New module 'iswctype'.
* modules/iswctype: New file.
* lib/wctype.in.h (iswctype): New declaration.
* lib/iswctype.c: New file.
* lib/iswctype-impl.h: New file.
* m4/iswctype.m4: New file.
* m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
(gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
* modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
* tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
* doc/posix-functions/iswctype.texi: Mention the new module and the
HP-UX 11.00 problem.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/iswctype.m4 | 14 | ||||
-rw-r--r-- | m4/wctype_h.m4 | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/m4/iswctype.m4 b/m4/iswctype.m4 new file mode 100644 index 0000000000..2f0120f161 --- /dev/null +++ b/m4/iswctype.m4 @@ -0,0 +1,14 @@ +# iswctype.m4 serial 1 +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, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_ISWCTYPE], +[ + AC_REQUIRE([gl_WCTYPE_H_DEFAULTS]) + AC_REQUIRE([gl_WCTYPE_H]) + if test $HAVE_WCTYPE_T = 0; then + AC_LIBOBJ([iswctype]) + fi +]) diff --git a/m4/wctype_h.m4 b/m4/wctype_h.m4 index 23f91759cf..584083deee 100644 --- a/m4/wctype_h.m4 +++ b/m4/wctype_h.m4 @@ -146,7 +146,7 @@ AC_DEFUN([gl_WCTYPE_H], #endif #include <wctype.h> ]], - [wctype + [wctype iswctype ]) ]) @@ -163,6 +163,7 @@ AC_DEFUN([gl_WCTYPE_H_DEFAULTS], [ GNULIB_ISWBLANK=0; AC_SUBST([GNULIB_ISWBLANK]) GNULIB_WCTYPE=0; AC_SUBST([GNULIB_WCTYPE]) + GNULIB_ISWCTYPE=0; AC_SUBST([GNULIB_ISWCTYPE]) dnl Assume proper GNU behavior unless another module says otherwise. HAVE_ISWBLANK=1; AC_SUBST([HAVE_ISWBLANK]) HAVE_WCTYPE_T=1; AC_SUBST([HAVE_WCTYPE_T]) |