1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00
Files
gnulib/modules/uchar-h-c++-tests
Bruno Haible 431281765f Rename module uchar to uchar-h.
* modules/uchar-h: Renamed from modules/uchar.
* modules/uchar-h-tests: Renamed from modules/uchar-tests.
* modules/uchar-h-c++-tests: Renamed from modules/uchar-c++-tests.
* tests/test-uchar-h.c: Renamed from tests/test-uchar.c.
* tests/test-uchar-h-c++.cc: Renamed from tests/test-uchar-c++.cc.
* tests/test-uchar-h-c++2.cc: Renamed from tests/test-uchar-c++2.cc.
* doc/posix-headers/uchar.texi: Update.
* modules/* (Depends-on): Update.
* modules/uchar: New file.
2024-12-27 23:41:50 +01:00

44 lines
1.0 KiB
Plaintext

Files:
tests/test-uchar-h-c++.cc
tests/test-uchar-h-c++2.cc
tests/signature.h
Status:
c++-test
Depends-on:
ansi-c++-opt
configure.ac:
AC_REQUIRE([gl_ANSI_CXX])
if test "$CXX" != no; then
dnl On FreeBSD 12, 'c++' defines __cplusplus to 201402, although it does not
dnl have the <cuchar> header file from C++11.
AC_CACHE_CHECK([whether the C++ compiler has <cuchar>],
[gl_cv_cxxheader_cuchar],
[AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <cuchar>]],
[[]])
],
[gl_cv_cxxheader_cuchar=yes],
[gl_cv_cxxheader_cuchar=no])
AC_LANG_POP([C++])
])
else
gl_cv_cxxheader_cuchar=no
fi
gl_CONDITIONAL([CXX_HAVE_CUCHAR], [test $gl_cv_cxxheader_cuchar != no])
Makefile.am:
if ANSICXX
TESTS += test-uchar-h-c++
check_PROGRAMS += test-uchar-h-c++
test_uchar_h_c___SOURCES = test-uchar-h-c++.cc
if CXX_HAVE_CUCHAR
test_uchar_h_c___SOURCES += test-uchar-h-c++2.cc
endif
test_uchar_h_c___LDADD = $(LDADD) $(LIBUNISTRING) $(MBRTOWC_LIB) $(LIBC32CONV)
endif