arabica/m4/has_codecvt.m4

15 lines
599 B
Text
Raw Normal View History

2006-09-12 23:21:48 +02:00
AC_DEFUN([ARABICA_CHECK_CODECVT_SPECIALISATIONS],
[
if test $wchar_t_available = yes; then
AC_MSG_CHECKING([for std::codecvt specialisations])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <codecvt>]],
[[std::codecvt<char, wchar_t, std::mbstate_t> test;]])],
2007-07-19 19:04:18 +02:00
[codecvt_available=yes],
[codecvt_available=no])
AC_MSG_RESULT([$codecvt_available])
2006-09-12 23:21:48 +02:00
if test $codecvt_available = yes; then
AC_DEFINE([NO_CODECVT_SPECIALISATIONS], [], [defined if we don't need extra codecvt template specialisations])
2006-09-12 23:21:48 +02:00
fi
fi
])