diff options
author | Bruno Haible <bruno@clisp.org> | 2011-02-07 00:16:49 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-02-09 20:54:32 +0100 |
commit | 52c4f309aad0bce5307f2cca26b59b76ed7574ab (patch) | |
tree | 3b1a9af98d43ae10a46fb14fb59e0c2795bcf3e8 /m4 | |
parent | eb944d1d03d408d829b4fa68eefd3a1ae94f9eb5 (diff) | |
download | gnulib-52c4f309aad0bce5307f2cca26b59b76ed7574ab.tar.gz |
New module 'wctrans'.
* modules/wctrans: New file.
* lib/wctype.in.h (wctrans): New declaration.
* lib/wctrans.c: New file.
* lib/wctrans-impl.h: New file.
* m4/wctrans.m4: New file.
* m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
(gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
* modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
* tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
* doc/posix-functions/wctrans.texi: Mention the new module.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/wctrans.m4 | 14 | ||||
-rw-r--r-- | m4/wctype_h.m4 | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/m4/wctrans.m4 b/m4/wctrans.m4 new file mode 100644 index 0000000000..f09b3fc243 --- /dev/null +++ b/m4/wctrans.m4 @@ -0,0 +1,14 @@ +# wctrans.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_WCTRANS], +[ + AC_REQUIRE([gl_WCTYPE_H_DEFAULTS]) + AC_REQUIRE([gl_WCTYPE_H]) + if test $HAVE_WCTRANS_T = 0; then + AC_LIBOBJ([wctrans]) + fi +]) diff --git a/m4/wctype_h.m4 b/m4/wctype_h.m4 index 584083deee..a82dec6e6b 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 iswctype + [wctype iswctype wctrans ]) ]) @@ -164,6 +164,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]) + GNULIB_WCTRANS=0; AC_SUBST([GNULIB_WCTRANS]) 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]) |