From: Paul Eggert Date: Sat, 17 Feb 2001 00:35:11 +0000 (+0000) Subject: Check for mbstate_t, too. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=01a51971db62a4cc1f80cc389bfe38d73291b85c;p=chaz%2Ftar Check for mbstate_t, too. --- diff --git a/m4/mbrtowc.m4 b/m4/mbrtowc.m4 index 5982f2c..3eb882e 100644 --- a/m4/mbrtowc.m4 +++ b/m4/mbrtowc.m4 @@ -4,16 +4,16 @@ dnl From Paul Eggert AC_DEFUN(jm_FUNC_MBRTOWC, [ - AC_MSG_CHECKING([for mbrtowc]) + AC_MSG_CHECKING([whether mbrtowc and mbstate_t are declared]) AC_CACHE_VAL(jm_cv_func_mbrtowc, [AC_TRY_LINK( [#include ], - [return !mbrtowc;], + [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 exists and is properly declared.]) + [Define to 1 if mbrtowc and mbstate_t are properly declared.]) fi ])