openbsd-ports/chinese/libtabe/patches/patch-script_configure_in
kevlo 8f77fdeb7e Initial import of libtabe-0.2.5.
Libtabe is a library for Chinese language processing.
2004-01-14 05:56:22 +00:00

23 lines
704 B
Plaintext

$OpenBSD: patch-script_configure_in,v 1.1.1.1 2004/01/14 05:56:23 kevlo Exp $
--- script/configure.in.orig 2001-10-20 12:03:29.000000000 +0000
+++ script/configure.in 2004-01-13 17:55:02.000000000 +0000
@@ -178,6 +178,18 @@ AC_CHECK_HEADERS(db.h, ,
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