From 0048e2bb6717ce336ec9f91820bd86359b8bb26a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 17 Feb 2001 09:33:25 +0000 Subject: New file, defining jm_FUNC_MBRTOWC. --- m4/mbrtowc.m4 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 m4/mbrtowc.m4 (limited to 'm4') diff --git a/m4/mbrtowc.m4 b/m4/mbrtowc.m4 new file mode 100644 index 000000000..f15bb2214 --- /dev/null +++ b/m4/mbrtowc.m4 @@ -0,0 +1,19 @@ +#serial 1 + +dnl From Paul Eggert + +AC_DEFUN(jm_FUNC_MBRTOWC, +[ + AC_MSG_CHECKING([whether mbrtowc and mbstate_t are properly declared]) + AC_CACHE_VAL(jm_cv_func_mbrtowc, + [AC_TRY_LINK( + [#include ], + [mbstate_t state; return ! (sizeof state && mbrtowc);], + [jm_cv_func_mbrtowc=yes], + [jm_cv_func_mbrtowc=no])]) + if test $jm_cv_func_mbrtowc = yes; then + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_MBRTOWC, 1, + [Define to 1 if mbrtowc and mbstate_t are properly declared.]) + fi +]) -- cgit v1.2.3-70-g09d2