Re: mutt/2003: request: QDBM cache
The following reply was made to PR mutt/2003; it has been noted by GNATS.
From: TAKAHASHI Tamotsu <ttakah@xxxxxxxxxxxxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc: brendan@xxxxxxxxxx
Subject: Re: mutt/2003: request: QDBM cache
Date: Fri, 23 Sep 2005 22:59:12 +0900
* Thu Sep 22 2005 Brendan Cully <brendan@xxxxxxxxxx>
> Synopsis: request: QDBM cache
>
> State-Changed-From-To: open->closed
> State-Changed-By: brendan
> State-Changed-When: Thu, 22 Sep 2005 18:39:12 +0200
> State-Changed-Why:
> Applied, thanks.
Thanks!
But I'm very sorry. I introduced another bug.
Please quote AC_MSG_ERROR.
==================================================
--- a/configure.in Fri Sep 23 12:30:58 2005
+++ b/configure.in Fri Sep 23 22:27:11 2005
@@ -825,7 +829,7 @@
LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
AC_DEFINE(HAVE_DB4, 1, [Sleepycat DB4 Support])
else
- AC_MSG_ERROR(You need QDBM, Sleepycat DB4 or GDBM for --enable-hcache)
+ AC_MSG_ERROR([You need QDBM, GDBM or Sleepycat DB4 for
--enable-hcache])
fi
fi])
dnl -- end cache --
==================================================
BTW here is a workaround for "libqdbm-may-require-libiconv" problem.
(Usage: env QDBM_LIBS="-L/path/to/iconv -liconv" ./configure
--with-qdbm=/prefix/of/qdbm)
Without this patch, I have to set global CPPFLAGS/LDFLAGS or modify configure
in my environment (QDBM is installed in $HOME and linked with libiconv,
and libiconv is installed in /usr/local).
==================================================
--- a/configure.in Fri Sep 23 12:30:58 2005
+++ b/configure.in Fri Sep 23 22:27:11 2005
@@ -743,8 +743,12 @@
AC_ARG_WITH(qdbm, AC_HELP_STRING([--without-qdbm], [Don't use qdbm even
if it is available]),
ac_prefer_qdbm=$withval)
if test x$ac_prefer_qdbm != xno; then
- CPPFLAGS="$OLDCPPFLAGS"
- LIBS="$OLDLIBS -lqdbm";
+ if test x$ac_prefer_qdbm != x; then
+ QDBM_CPPFLAGS="$QDBM_CPPFLAGS -I$ac_prefer_qdbm/include"
+ QDBM_LIBS="$QDBM_LIBS -L$ac_prefer_qdbm/lib"
+ fi
+ CPPFLAGS="$OLDCPPFLAGS $QDBM_CPPFLAGS"
+ LIBS="$OLDLIBS -lqdbm $QDBM_LIBS";
AC_CACHE_CHECK(for vlopen, ac_cv_vlopen,[
ac_cv_vlopen=no
AC_TRY_LINK([#include
<villa.h>],[vlopen(0,0,0);],[ac_cv_vlopen=yes])
@@ -813,8 +817,8 @@
fi
if test x$ac_cv_vlopen = xyes; then
- CPPFLAGS="$OLDCPPFLAGS"
- LIBS="$OLDLIBS -lqdbm";
+ CPPFLAGS="$OLDCPPFLAGS $QDBM_CPPFLAGS"
+ LIBS="$OLDLIBS -lqdbm $QDBM_LIBS";
AC_DEFINE(HAVE_QDBM, 1, [QDBM Support])
elif test x$ac_cv_gdbmopen = xyes; then
CPPFLAGS="$OLDCPPFLAGS"
==================================================
--
tamo