summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2009-08-19 21:06:55 +0100
committerColin Watson <cjwatson@debian.org>2009-08-19 21:06:55 +0100
commit93f78a9312121ed19c00fd34b9f9bc732620db06 (patch)
tree9678adcd15eb2320be940b0ceaa17ac0532dd705 /m4
parent8199160b42b34c1a7c2b167aeb477a3ad81415a8 (diff)
* src/mandb.c (main): Treat the main configuration file as optional
if we're only producing user databases. This makes testing easier. * configure.ac, m4/man-bdb.m4 (MAN_CHECK_BDB): Define DBTYPE to gdbm, ndbm, or btree, indicating the database type in use. * src/tests/testlib.sh (fake_config, db_ext, accessdb_filter): New functions. * src/tests/mandb-1: New test. * src/tests/Makefile.am (TESTS_ENVIRONMENT): Set DBTYPE appropriately in the test environment. (TESTS): Add mandb-1.
Diffstat (limited to 'm4')
-rw-r--r--m4/man-bdb.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/man-bdb.m4 b/m4/man-bdb.m4
index 49595516..3cf60231 100644
--- a/m4/man-bdb.m4
+++ b/m4/man-bdb.m4
@@ -37,6 +37,7 @@ then
[Define if you have, and want to use, Berkeley database header files.])
AC_DEFINE_UNQUOTED([BTREE], [1],
[Define if you have, and want to use, the Berkeley database library.])
+ AC_SUBST([DBTYPE], [btree])
DBLIBS="-l$lib"
db=yes],
[db=no])