1 dnl A placeholder for ISO C99 <wctype.h>, for platforms that lack it.
3 dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl Written by Paul Eggert.
10 AC_DEFUN([gl_WCTYPE_H],
12 AC_CHECK_FUNCS_ONCE([iswcntrl])
13 if test $ac_cv_func_iswcntrl = yes; then
18 AC_SUBST([HAVE_ISWCNTRL])
19 AC_CHECK_HEADERS_ONCE([wctype.h])
20 AC_REQUIRE([AC_C_INLINE])
22 AC_REQUIRE([gt_TYPE_WINT_T])
23 if test $gt_cv_c_wint_t = yes; then
28 AC_SUBST([HAVE_WINT_T])
31 if test $ac_cv_header_wctype_h = yes; then
32 if test $ac_cv_func_iswcntrl = yes; then
35 dnl Compute NEXT_WCTYPE_H even if WCTYPE_H is empty,
36 dnl for the benefit of builds from non-distclean directories.
37 gl_CHECK_NEXT_HEADERS([wctype.h])
42 AC_SUBST([HAVE_WCTYPE_H])