2 tests/test-uchar-c++.cc
3 tests/test-uchar-c++2.cc
13 AC_REQUIRE([gl_ANSI_CXX])
14 if test "$CXX" != no; then
15 dnl On FreeBSD 12, 'c++' defines __cplusplus to 201402, although it does not
16 dnl have the <cuchar> header file from C++11.
17 AC_CACHE_CHECK([whether the C++ compiler has <cuchar>],
18 [gl_cv_cxxheader_cuchar],
22 [[#include <cuchar>]],
25 [gl_cv_cxxheader_cuchar=yes],
26 [gl_cv_cxxheader_cuchar=no])
30 gl_cv_cxxheader_cuchar=no
32 gl_CONDITIONAL([CXX_HAVE_CUCHAR], [test $gl_cv_cxxheader_cuchar != no])
36 TESTS += test-uchar-c++
37 check_PROGRAMS += test-uchar-c++
38 test_uchar_c___SOURCES = test-uchar-c++.cc
40 test_uchar_c___SOURCES += test-uchar-c++2.cc
42 test_uchar_c___LDADD = $(LDADD) $(LIBUNISTRING) $(MBRTOWC_LIB) $(LIBC32CONV)