Make boost base default to yes to make sure we don't get through configure without...
authorMarc Slemko <marc@apache.org>
Wed, 17 Jan 2007 07:59:38 +0000 (07:59 +0000)
committerMarc Slemko <marc@apache.org>
Wed, 17 Jan 2007 07:59:38 +0000 (07:59 +0000)
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

lib/cpp/aclocal/ax_boost_base.m4
lib/cpp/configure.ac

index b7ec8b5..f225bff 100644 (file)
@@ -24,7 +24,7 @@ dnl @license AllPermissive
 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 @@ AC_ARG_WITH([boost],
         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)
index 2d30c59..d542feb 100644 (file)
@@ -6,12 +6,22 @@ AC_CONFIG_SRCDIR(src/Thrift.h)
 
 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_FUNCS([strtoul])
 
 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_STDC
 
 AC_HEADER_TIME
 
+AC_TYPE_OFF_T
+
+AC_TYPE_MODE_T
+
 AC_TYPE_SIZE_T
 
 AC_TYPE_INT16_T