summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-12-06 16:38:06 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-06 22:16:51 -0800
commit3b2c86c8ed77b04cda05b7cbd8e73f6d01db1bed (patch)
tree34a970a12e97fbe879642ca3d981dc9bf8cbdc8d
parent2bee3fb30bb05e5c6b9af9cbbe0b10deba0db790 (diff)
removed every reference to BDB from configure.ac
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 343 (Placeholder bug for adding volgen into rpm, bdb makefile changes, etc) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=343
-rw-r--r--configure.ac69
1 files changed, 0 insertions, 69 deletions
diff --git a/configure.ac b/configure.ac
index 5615234ca..87de6be6f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -284,74 +284,6 @@ AC_SUBST(IBVERBS_SUBDIR)
# end IBVERBS section
-# Berkely-DB section
-# storage/bdb requires Berkeley-DB version 4.6.21 or higher
-_GLFS_DB_VERSION_MAJOR=4
-_GLFS_DB_VERSION_MINOR=6
-_GLFS_DB_VERSION_PATCH=21
-AC_ARG_ENABLE([db],
- AC_HELP_STRING([--disable-bdb],
- [Do not build the Berkeley-DB translator]))
-
-if test "x$enable_bdb" != "xno"; then
- AC_CHECK_HEADERS([db.h],
- [HAVE_BDB="yes"],
- [HAVE_BDB="no"])
- if test "x$HAVE_BDB" = "xyes"; then
- AC_CHECK_LIB([db],
- [db_create],
- [HAVE_BDB="yes"],
- [HAVE_BDB="no"])
- fi
-
- if test "x$HAVE_BDB" = "xyes"; then
- AC_TRY_COMPILE([#include <db.h>],
- #if (DB_VERSION_MAJOR < $_GLFS_DB_VERSION_MAJOR) ||\
- (DB_VERSION_MAJOR == $_GLFS_DB_VERSION_MAJOR && \
- DB_VERSION_MINOR < $_GLFS_DB_VERSION_MINOR) || \
- (DB_VERSION_MAJOR == $_GLFS_DB_VERSION_MAJOR && \
- DB_VERSION_MINOR == $_GLFS_DB_VERSION_MINOR && \
- DB_VERSION_PATCH < $_GLFS_DB_VERSION_PATCH)
- #error "bdb older than required"
- #endif
- ,
- [HAVE_BDB_VERSION="yes"],
- [HAVE_BDB_VERSION="no"])
-
- dnl check for DB->stat having 4 arguments.
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <db.h>]],
- [[DB *bdb; bdb->stat (NULL, NULL, NULL, 0);]])],
- [HAVE_BDB_VERSION=yes], [HAVE_BDB_VERSION=no])
-
- dnl check for DBC->c_get presence.
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <db.h>]],
- [[DBC *cursor; cursor->get (NULL, NULL, NULL, 0);]])],
- [HAVE_BDB_CURSOR_GET=yes], [HAVE_BDB_CURSOR_GET=no])
-
- fi
-fi
-
-if test "x$HAVE_BDB_CURSOR_GET" = "xyes" -a "x$HAVE_BDB_VERSION" = "xyes"; then
- AC_DEFINE(HAVE_BDB_CURSOR_GET, 1, [Berkeley-DB version has cursor->get()])
-fi
-
-if test "x$enable_bdb" = "xyes" -a "x$HAVE_BDB" = "xno" -a "x$HAVE_BDB_VERSION" = "xno" -a "x$HAVE_BDB_CURSOR_GET" = "xno"; then
- echo "Berkeley-DB requested but not found. glusterfs bdb feature requires db version 4.6.21 or higher"
- exit 1
-fi
-
-
-BUILD_BDB=no
-if test "x$enable_bdb" != "xno" -a "x$HAVE_BDB" = "xyes"; then
- BDB_SUBDIR=bdb
- BUILD_BDB=yes
-fi
-
-
-
-AC_SUBST(BDB_SUBDIR)
-# end BDB section
-
dnl FreeBSD > 5 has execinfo as a Ported library for giving a workaround
dnl solution to GCC backtrace functionality
@@ -493,7 +425,6 @@ echo "==========================="
echo "FUSE client : $BUILD_FUSE_CLIENT"
echo "Infiniband verbs : $BUILD_IBVERBS"
echo "epoll IO multiplex : $BUILD_EPOLL"
-echo "Berkeley-DB : $BUILD_BDB"
echo "libglusterfsclient : $BUILD_LIBGLUSTERFSCLIENT"
echo "argp-standalone : $BUILD_ARGP_STANDALONE"
echo "fusermount : $BUILD_FUSERMOUNT"