summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-07-23 22:27:49 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-07-23 22:27:49 +0300
commitd28617d1442a7bd21d938edde539b56f3b5e7638 (patch)
tree747a0440b3d3584cc0d3b3acf5cb7098e218fab9 /configure.ac
parentdc27bec824ad13ab33b7681ff217acc9057a94f1 (diff)
downloadmailutils-d28617d1442a7bd21d938edde539b56f3b5e7638.tar.gz
mailutils-d28617d1442a7bd21d938edde539b56f3b5e7638.tar.bz2
Support for Berkeley DB versions 5 and 6
Drop the legacy configure option --with-db2
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac20
1 files changed, 4 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac
index 0da1a9670..97c0bc514 100644
--- a/configure.ac
+++ b/configure.ac
@@ -383,15 +383,6 @@ case "${withval}" in
*) AC_MSG_ERROR(bad value ${withval} for --with-gdbm) ;;
esac])
-## Support --with-db2 for backward compatibility
-if test "${with_db2+set}" = set; then
- case "${with_db2}" in
- yes) enable_dbm="$enable_dbm BDB2";;
- no) disable_dbm="$disable_dbm BDB2";;
- *) AC_MSG_ERROR(bad value ${with_db2} for --with-db2) ;;
- esac
-fi
-
AC_ARG_WITH([berkeley-db],
AC_HELP_STRING([--with-berkeley-db@<:@=LIBDB@:>@],
[use Berkeley DB]),
@@ -510,13 +501,10 @@ check_dbm_impl() {
DBMLIBS="$DBMLIBS -lgdbm"
status_dbm="$status_dbm,GDBM"]);;
- BDB2) check_bdb 2 db db_open
- test -n "$status_bdb" && status_dbm="$status_dbm,Berkeley DB v. $status_bdb";;
-
- BDB) for version in 4 3 2
+ BDB) for version in 6 5 4 3 2
do
case $version in
- 4|3) func=db_create;;
+ 6|5|4|3) func=db_create;;
2) func=db_open;;
esac
check_bdb $version db $func
@@ -530,10 +518,10 @@ check_dbm_impl() {
name=`expr $1 : 'BDB=\(.*\)'`
case $name in
[[0-9]]*) check_slackware_bdb $name;;
- *) for version in 4 3 2
+ *) for version in 6 5 4 3 2
do
case $version in
- 4|3) func=db_create;;
+ 6|5|4|3) func=db_create;;
2) func=db_open;;
esac
check_bdb $version $name $func

Return to:

Send suggestions and report system problems to the System administrator.