2006-09-12 23:21:48 +02:00
|
|
|
AC_DEFUN([ARABICA_HAS_STD_WSTRING],
|
|
|
|
[
|
|
|
|
AC_MSG_CHECKING([for std::wstring support])
|
2006-12-13 20:19:30 +01:00
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <iostream>]],
|
2007-07-20 22:54:29 +02:00
|
|
|
[[std::wcout << std::wstring(L"test");]])],
|
2007-07-19 19:04:18 +02:00
|
|
|
[wchar_t_available=yes],
|
|
|
|
[wchar_t_available=no])
|
|
|
|
AC_MSG_RESULT([$wchar_t_available])
|
2006-09-12 23:21:48 +02:00
|
|
|
if test $wchar_t_available = no; then
|
2007-07-19 19:04:18 +02:00
|
|
|
AC_DEFINE([ARABICA_NO_WCHAR_T], ,[disables wchar_t])
|
2006-09-12 23:21:48 +02:00
|
|
|
fi
|
2007-07-19 19:04:18 +02:00
|
|
|
AM_CONDITIONAL([HAS_STD_WSTRING], [test "$wchar_t_available" = "yes"])
|
2006-09-12 23:21:48 +02:00
|
|
|
])
|