TEST_WITH(libunwind, $withval),
want_libunwind=auto)
-# Berkeley DB support is more or less broken. Disabled for now.
-#AC_ARG_WITH(db,
-#AS_HELP_STRING([--with-db], [Build with Berkeley DB support]),
-# TEST_WITH(db, $withval),
-# want_db=no)
-want_db=no
-
AC_ARG_WITH(cdb,
AS_HELP_STRING([--with-cdb], [Build with CDB support]),
TEST_WITH(cdb, $withval),
DOVECOT_WANT_BSDAUTH
DOVECOT_WANT_GSSAPI
DOVECOT_WANT_LDAP
-DOVECOT_WANT_DB
DOVECOT_WANT_CDB
DOVECOT_WANT_PGSQL
DOVECOT_WANT_MYSQL
+++ /dev/null
-AC_DEFUN([DOVECOT_WANT_DB], [
- AS_IF([test $want_db != no], [
- AC_CACHE_CHECK([db_env_create in -ldb],i_cv_have_db_env_create,[
- old_LIBS=$LIBS
- LIBS="$LIBS -ldb"
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
- #include <db.h>
- ]], [[
- db_env_create(0, 0);
- ]])],[
- i_cv_have_db_env_create=yes
- ], [
- i_cv_have_db_env_create=no
- ])
- LIBS=$old_LIBS
- ])
- AS_IF([test $i_cv_have_db_env_create = yes], [
- AC_CHECK_HEADER(db.h, [
- DICT_LIBS="$DICT_LIBS -ldb"
- dict_drivers="$dict_drivers db"
- AC_DEFINE(BUILD_DB,, [Build with Berkeley DB support])
- ], [
- AS_IF([test $want_db = yes], [
- AC_MSG_ERROR(cannot build with db support: db.h not found)
- ])
- ])
- ], [
- AS_IF([test $want_db = yes], [
- AC_MSG_ERROR(cannot build with db support: libdb not found)
- ])
- ])
- ])
-])
sets = master_service_settings_get_others(master_service);
dict_settings = sets[0];
- if (*dict_settings->dict_db_config != '\0') {
- /* for berkeley db library */
- env_put("DB_CONFIG", dict_settings->dict_db_config);
- }
-
i_zero(&mod_set);
mod_set.abi_version = DOVECOT_ABI_VERSION;
mod_set.require_init_funcs = TRUE;
static const struct setting_define dict_setting_defines[] = {
DEF(STR, base_dir),
DEF(BOOL, verbose_proctitle),
-
- DEF(STR, dict_db_config),
{ .type = SET_STRLIST, .key = "dict",
.offset = offsetof(struct dict_server_settings, dicts) },
const struct dict_server_settings dict_default_settings = {
.base_dir = PKG_RUNDIR,
.verbose_proctitle = FALSE,
-
- .dict_db_config = "",
.dicts = ARRAY_INIT
};
struct dict_server_settings {
const char *base_dir;
bool verbose_proctitle;
-
- const char *dict_db_config;
ARRAY(const char *) dicts;
};
sets = master_service_settings_get_others(master_service);
dict_settings = sets[0];
- if (*dict_settings->dict_db_config != '\0') {
- /* for berkeley db library */
- env_put("DB_CONFIG", dict_settings->dict_db_config);
- }
-
i_zero(&mod_set);
mod_set.abi_version = DOVECOT_ABI_VERSION;
mod_set.require_init_funcs = TRUE;