mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-16 15:41:18 +01:00
15 lines
629 B
Text
15 lines
629 B
Text
|
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;]])],
|
||
|
[AS_VAR_SET(codecvt_available, yes)],
|
||
|
[AS_VAR_SET(codecvt_available, no)])
|
||
|
AC_MSG_RESULT($codecvt_available)
|
||
|
if test $codecvt_available = yes; then
|
||
|
AC_DEFINE(ARABICA_NO_CODECVT_SPECIALISATIONS, [], [defined if we don't need extra codecvt template specialisations])
|
||
|
fi
|
||
|
fi
|
||
|
])
|