2008-08-06 23:31:39 +02:00
|
|
|
AC_DEFUN([ARABICA_HAS_MBSTATE_T],
|
|
|
|
[
|
|
|
|
AC_MSG_CHECKING([for std::mbstate_t])
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <cwchar>]],
|
|
|
|
[[std::mbstate_t mb; return sizeof(mb);]])],
|
|
|
|
[mbstate_available=yes],
|
|
|
|
[mbstate_available=no])
|
|
|
|
AC_MSG_RESULT([$mbstate_available])
|
|
|
|
if test $mbstate_available = no; then
|
2011-11-26 00:26:39 +01:00
|
|
|
AC_DEFINE([NO_STD_MBSTATE_T], ,[no std::mbstate_t])
|
2008-08-06 23:31:39 +02:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([for mbstate_t])
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <wchar.h>]],
|
|
|
|
[[mbstate_t mb; return sizeof(mb);]])],
|
|
|
|
[mbstate_available=yes],
|
|
|
|
[mbstate_available=no])
|
|
|
|
AC_MSG_RESULT([$mbstate_available])
|
|
|
|
if test $mbstate_available = no; then
|
2011-11-26 00:26:39 +01:00
|
|
|
AC_DEFINE([NO_MBSTATE_T], ,[no mbstate_t])
|
2008-08-06 23:31:39 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
])
|