3 dnl autoconf tests required for use of mbswidth.c
6 AC_DEFUN([jm_PREREQ_MBSWIDTH],
8 AC_CHECK_HEADERS(wchar.h wctype.h)
9 AC_CHECK_FUNCS(isascii iswcntrl iswprint mbsinit wcwidth)
12 AC_CACHE_CHECK([whether wcwidth is declared], ac_cv_have_decl_wcwidth,
14 /* AIX 3.2.5 declares wcwidth in <string.h>. */
23 char *p = (char *) wcwidth;
25 ], ac_cv_have_decl_wcwidth=yes, ac_cv_have_decl_wcwidth=no)])
26 if test $ac_cv_have_decl_wcwidth = yes; then
31 AC_DEFINE_UNQUOTED(HAVE_DECL_WCWIDTH, $ac_val,
32 [Define to 1 if you have the declaration of wcwidth(), and to 0 otherwise.])