]> Dogcows Code - chaz/tar/blob - m4/mbrtowc.m4
Add Lasse Collin and Jean-Pierre Demailly.
[chaz/tar] / m4 / mbrtowc.m4
1 #serial 1
2
3 dnl From Paul Eggert
4
5 AC_DEFUN(jm_FUNC_MBRTOWC,
6 [
7 AC_MSG_CHECKING([whether mbrtowc and mbstate_t are properly declared])
8 AC_CACHE_VAL(jm_cv_func_mbrtowc,
9 [AC_TRY_LINK(
10 [#include <wchar.h>],
11 [mbstate_t state; return ! (sizeof state && mbrtowc);],
12 [jm_cv_func_mbrtowc=yes],
13 [jm_cv_func_mbrtowc=no])])
14 if test $jm_cv_func_mbrtowc = yes; then
15 AC_MSG_RESULT(yes)
16 AC_DEFINE(HAVE_MBRTOWC, 1,
17 [Define to 1 if mbrtowc and mbstate_t are properly declared.])
18 fi
19 ])
This page took 0.036295 seconds and 4 git commands to generate.