head	1.3;
access;
symbols
	RELEASE_8_3_0:1.3
	RELEASE_9_0_0:1.3
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3;
locks; strict;
comment	@# @;


1.3
date	2006.07.19.15.31.46;	author rafan;	state Exp;
branches;
next	1.2;

1.2
date	2006.05.23.01.13.40;	author clsung;	state Exp;
branches;
next	1.1;

1.1
date	2006.04.08.18.31.48;	author leeym;	state Exp;
branches;
next	;


desc
@@


1.3
log
@- Update to 0.2.6
- It seems works well on amd64, tested by yinjieh@@csie.nctu.edu.tw
  with chinese/xcin25. Remove amd64 from exclude list.

PR:		ports/97960
Submitted by:	rafan (me)
Approved by:	maintainer timeout (7 weeks)
@
text
@--- configure.orig	Mon Sep 20 01:16:48 2004
+++ configure	Sat Apr 22 01:18:43 2006
@@@@ -18984,6 +18984,10 @@@@
 else
   ac_check_lib_save_LIBS=$LIBS
 LIBS="-l$dbname  $LIBS"
+__db_create="db_create"
+if [ "$dbname" = "db-4.2" ]; then
+  __db_create="db_create_4002"
+fi
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@@@ -18997,11 +19001,11 @@@@
 #endif
 /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
-char db_create ();
+char $__db_create ();
 int
 main ()
 {
-db_create ();
+$__db_create ();
   ;
   return 0;
 }
@@@@ -19253,7 +19257,9 @@@@
 #endif
 if(errno) return errno;
 
-#if DB_VERSION >= 303011
+#if DB_VERSION >= 403000
+errno = dbp->stat(dbp, NULL, &sp, 0);
+#elif DB_VERSION >= 303011
 errno = dbp->stat(dbp, &sp, 0);
 #else
 errno = dbp->stat(dbp, &sp, NULL, 0);
@@@@ -20833,6 +20839,7 @@@@
 s,@@with_db_inc@@,$with_db_inc,;t t
 s,@@with_db_lib@@,$with_db_lib,;t t
 s,@@with_db_bin@@,$with_db_bin,;t t
+s,@@with_db_name@@,$with_db_name,;t t
 s,@@x_includes@@,$x_includes,;t t
 s,@@x_libraries@@,$x_libraries,;t t
 s,@@build_supports@@,$build_supports,;t t
@


1.2
log
@- chinese/xcin25 is updated to use USE_BDB, and supports db4+.
  A warning message is printed if user defines WITH_BDB_VER.
  The db version used for xcin25 and libtabe  MUST  match.
- USE_BDB exists in libtabe, but it may find the wrong version
  if one has more than one bdb version  installed. Thus, configure
  and two source files are patched to use the correct bdb version
  specified in WITH_BDB_VER.
- bump PORTREVISION to encourage updating

PR:		ports/96606
Submitted by:	Rong-En Fan <rafan_AT_infor dot org>
Approved by:	maintainer (Kuang-che Wu)
@
text
@d1 6
a6 33
--- configure.orig	Sat Oct 20 07:03:29 2001
+++ configure	Mon May  1 10:53:24 2006
@@@@ -22,6 +22,8 @@@@
 ac_help="$ac_help
   --with-db-bin=PATH      set the binary dir of Berkeley DB2/3."
 ac_help="$ac_help
+  --with-db-name=NAME     set the library name of Berkeley DB."
+ac_help="$ac_help
   --enable-shared[=PKGS]  build shared libraries [default=yes]"
 ac_help="$ac_help
   --enable-static[=PKGS]  build static libraries [default=yes]"
@@@@ -790,6 +792,14 @@@@
   :
 fi
 
+# Check whether --with-db_name or --without-db_name was given.
+if test "${with_db_name+set}" = set; then
+  withval="$with_db_name"
+    test x$withval != x && with_db_name="$withval"
+else
+    with_db_name='db'
+fi;
+
 
 if test "$program_prefix" != NONE; then
     program_prefix="$program_prefix/"
@@@@ -5315,18 +5325,22 @@@@
   cat conftest.$ac_ext >&5
 fi
 rm -f conftest*
-test "$ac_cv_search_db_create" = "no" && for i in db db3; do
+test "$ac_cv_search_db_create" = "no" && for i in $with_db_name; do
 LIBS="-l$i  $ac_func_search_save_LIBS"
d8 1
a8 1
+if [ "$i" = "db-4.2" ]; then
d11 5
a15 4
 cat > conftest.$ac_ext <<EOF
 #line 5322 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
d17 14
a30 3
     builtin and then its argument prototype would still apply.  */
-char db_create();
+char $__db_create();
d32 15
a46 23
 int main() {
-db_create()
+$__db_create()
 ; return 0; }
 EOF
 if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@@@@ -5385,7 +5399,7 @@@@
   cat conftest.$ac_ext >&5
 fi
 rm -f conftest*
-test "$ac_cv_search_db_open" = "no" && for i in db db2; do
+test "$ac_cv_search_db_open" = "no" && for i in $with_db_name; do
 LIBS="-l$i  $ac_func_search_save_LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 5392 "configure"
@@@@ -6219,6 +6233,7 @@@@
 s%@@with_db_inc@@%$with_db_inc%g
 s%@@with_db_lib@@%$with_db_lib%g
 s%@@with_db_bin@@%$with_db_bin%g
+s%@@with_db_name@@%$with_db_name%g
 s%@@USE_DB@@%$USE_DB%g
 s%@@x_includes@@%$x_includes%g
 s%@@x_libraries@@%$x_libraries%g
@


1.1
log
@- utilize USE_BDB [1]
- support BDB 40+

PR:		89023 [1]
Submitted by:	swhetzel at gmail.com [1]
@
text
@d1 27
a27 3
--- configure.orig	Sat Oct 20 20:03:29 2001
+++ configure	Wed Apr  5 13:26:48 2006
@@@@ -5315,18 +5315,15 @@@@
d32 1
a32 1
+test "$ac_cv_search_db_create" = "no" && for i in db db3 db4 db41 db-4.2 db-4.3 db-4.4; do
d34 4
d41 3
a43 3
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
d45 1
a45 1
+#include "db.h"
d49 1
a49 1
+db_create(0,0,0)
d53 2
a54 2
@@@@ -5726,11 +5723,6 @@@@
   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
d56 14
a69 9
 
-if test x$no_x = xyes; then
-    echo "$ac_t""You need X11R6 header files to compile libtabe." 1>&6
-    echo "$ac_t""Please use --x-includes to configure." 1>&6
-    exit 1
-fi
 
 
 
@

