summaryrefslogtreecommitdiff
path: root/inputmethod/libtabe/patches/patch-ad
blob: f5e58e37aa31b82a62626a5e9076cacaffc4bf7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ad,v 1.1 2005/09/28 17:09:43 rillig Exp $

--- script/configure.in.orig	Tue Dec  4 23:05:00 2001
+++ script/configure.in	Fri Dec  7 23:17:29 2001
@@ -178,6 +178,18 @@
       AC_MSG_RESULT([Please use --with-db-inc to configure.])
       exit 1 ])
 
+AC_MSG_CHECKING([DB3 API])
+if test x$USE_DB = xDB3; then
+    AC_TRY_LINK([
+#include <stdlib.h>
+#include <db.h>], [
+DB dbs;
+dbs.stat(&dbs, NULL, 0); ],
+	[ AC_DEFINE(HAVE_DB3_STAT3)
+	  AC_MSG_RESULT([DB->stat() take 3 arguements.]) ],
+	[ AC_MSG_RESULT([DB->stat() take 4 arguements.]) ])
+fi
+
 if test x$with_db_lib = x; then
     with_db_lib="$test_db_lib"
 else