source: trunk/third/gettext/m4/mbrtowc.m4 @ 16931

Revision 16931, 480 bytes checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16930, which included commits to RCS files with non-trunk default branches.
Line 
1#serial 2
2
3dnl From Paul Eggert
4
5AC_DEFUN(jm_FUNC_MBRTOWC,
6[
7  AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared],
8    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_DEFINE(HAVE_MBRTOWC, 1,
16      [Define to 1 if mbrtowc and mbstate_t are properly declared.])
17  fi
18])
Note: See TracBrowser for help on using the repository browser.