4
0

mbrtowc.m4 519 B

12345678910111213141516171819
  1. #serial 1
  2. dnl From Paul Eggert
  3. AC_DEFUN(jm_FUNC_MBRTOWC,
  4. [
  5. AC_MSG_CHECKING([whether mbrtowc and mbstate_t are properly declared])
  6. AC_CACHE_VAL(jm_cv_func_mbrtowc,
  7. [AC_TRY_LINK(
  8. [#include <wchar.h>],
  9. [mbstate_t state; return ! (sizeof state && mbrtowc);],
  10. [jm_cv_func_mbrtowc=yes],
  11. [jm_cv_func_mbrtowc=no])])
  12. if test $jm_cv_func_mbrtowc = yes; then
  13. AC_MSG_RESULT(yes)
  14. AC_DEFINE(HAVE_MBRTOWC, 1,
  15. [Define to 1 if mbrtowc and mbstate_t are properly declared.])
  16. fi
  17. ])