Thrift: Better handling of strerror_r.
Summary:
Someone thought it would be a good idea to have two different signatures
for strerror_r, with subtly different semantics (strlcpy = smart).
We now work properly with either of them.
Also fixed a test to work on 32-bit, you sloppy <expletive>s.
Reviewed By: mcslee
Test Plan:
Rebuild thrift.
Force one of these errors to be thrown.
Revert Plan: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665215 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/configure.ac b/lib/cpp/configure.ac
index a6d61e8..0208f1b 100644
--- a/lib/cpp/configure.ac
+++ b/lib/cpp/configure.ac
@@ -4,6 +4,12 @@
AC_CONFIG_SRCDIR(src/Thrift.h)
+AC_PROG_CC
+
+AC_PROG_CXX
+
+AC_LANG([C++])
+
AM_INIT_AUTOMAKE
AC_FUNC_MALLOC
@@ -12,6 +18,8 @@
AC_FUNC_SELECT_ARGTYPES
+AC_FUNC_STRERROR_R
+
AC_CHECK_FUNCS([bzero])
AC_CHECK_FUNCS([gethostbyname])
@@ -100,10 +108,6 @@
AC_CONFIG_HEADERS(config.h:config.hin)
-AC_PROG_CC
-
-AC_PROG_CXX
-
AC_PROG_INSTALL
AC_PROG_LIBTOOL