Make boost base default to yes to make sure we don't get through configure without boost
Fixed configure.ac to add a few missing functions and headers

Reviewed by dcorson


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664918 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/aclocal/ax_boost_base.m4 b/lib/cpp/aclocal/ax_boost_base.m4
index b7ec8b5..f225bff 100644
--- a/lib/cpp/aclocal/ax_boost_base.m4
+++ b/lib/cpp/aclocal/ax_boost_base.m4
@@ -24,7 +24,7 @@
 AC_DEFUN([AX_BOOST_BASE],
 [
 AC_ARG_WITH([boost],
-	AS_HELP_STRING([--with-boost@<:@=DIR@:>@], [use boost (default is No) - it is possible to specify the root directory for boost (optional)]),
+	AS_HELP_STRING([--with-boost@<:@=DIR@:>@], [use boost (default is yes) - it is possible to specify an alternate root directory for boost]),
 	[
     if test "$withval" = "no"; then
 		want_boost="no"
@@ -32,11 +32,11 @@
         want_boost="yes"
         ac_boost_path=""
     else
-	    want_boost="yes"
+        want_boost="yes"
         ac_boost_path="$withval"
 	fi
     ],
-    [want_boost="no"])
+    [want_boost="yes"])
 
 if test "x$want_boost" = "xyes"; then
 	boost_lib_version_req=ifelse([$1], ,1.20.0,$1)
diff --git a/lib/cpp/configure.ac b/lib/cpp/configure.ac
index 2d30c59..d542feb 100644
--- a/lib/cpp/configure.ac
+++ b/lib/cpp/configure.ac
@@ -6,12 +6,22 @@
 
 AM_INIT_AUTOMAKE
 
+AC_FUNC_MALLOC
+
+AC_FUNC_REALLOC
+
+AC_FUNC_SELECT_ARGTYPES
+
+AC_CHECK_FUNCS([bzero])
+
 AC_CHECK_FUNCS([gethostbyname])
 
 AC_CHECK_FUNCS([gettimeofday])
 
 AC_CHECK_FUNCS([memset])
 
+AC_CHECK_FUNCS([select])
+
 AC_CHECK_FUNCS([socket])
 
 AC_CHECK_FUNCS([strtol])
@@ -20,6 +30,8 @@
 
 AC_CHECK_HEADERS([arpa/inet.h])
 
+AC_CHECK_HEADERS([fcntl.h])
+
 AC_CHECK_HEADERS([inttypes.h])
 
 AC_CHECK_HEADERS([netdb.h])
@@ -54,6 +66,10 @@
 
 AC_HEADER_TIME
 
+AC_TYPE_OFF_T
+
+AC_TYPE_MODE_T
+
 AC_TYPE_SIZE_T
 
 AC_TYPE_INT16_T