Add warning for C libraries that don't commit to Unicode wchar_t

This commit is contained in:
Keith Winstein
2012-03-31 14:54:16 -04:00
parent edf6ec9052
commit 4f79778ca5
+5
View File
@@ -166,6 +166,11 @@ AC_CHECK_DECL([IP_MTU_DISCOVER],
[Define if IP_MTU_DISCOVER is a valid sockopt.])], [Define if IP_MTU_DISCOVER is a valid sockopt.])],
, [[#include <netinet/ip.h>]]) , [[#include <netinet/ip.h>]])
AC_CHECK_DECL([__STDC_ISO_10646__],
[],
[AC_MSG_WARN([C library doesn't advertise wchar_t is Unicode (OS X works anyway with workaround).])],
[[#include <wchar.h>]])
# Checks for protobuf # Checks for protobuf
PKG_CHECK_MODULES([protobuf], [protobuf]) PKG_CHECK_MODULES([protobuf], [protobuf])