AC_DEFUN([gl_WCTYPE_H],
[
AC_CHECK_FUNCS_ONCE([iswcntrl])
+ if test $ac_cv_func_iswcntrl = yes; then
+ HAVE_ISWCNTRL=1
+ else
+ HAVE_ISWCNTRL=0
+ fi
+ AC_SUBST([HAVE_ISWCNTRL])
AC_CHECK_HEADERS_ONCE([wctype.h])
AC_REQUIRE([AC_C_INLINE])
WCTYPE_H=wctype.h
if test $ac_cv_header_wctype_h = yes; then
- if test "$ac_cv_func_iswcntrl" = yes; then
+ if test $ac_cv_func_iswcntrl = yes; then
WCTYPE_H=
fi
dnl Compute ABSOLUTE_WCTYPE_H even if WCTYPE_H is empty,