If none of the header cache backends are requested, don't go into the
hcache dir.
--with-bdb --with-gdbm --with-gnutls --with-gss --with-kyotocabinet \
--with-lmdb --with-qdbm --with-sasl --with-tokyocabinet
-SUBDIRS = m4 contrib hcache imap
+SUBDIRS = m4 contrib imap
+
+if BUILD_HCACHE
+SUBDIRS += hcache
+endif
if BUILD_DOC
SUBDIRS += doc
$(INTLLIBS) $(LIBICONV) $(GPGME_LIBS) $(HCACHE_LIBS)
mutt_DEPENDENCIES = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(LIBIMAPDEPS) \
- $(INTLDEPS)
+ $(INTLDEPS) $(HCACHE_DEPS)
DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
-DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\"
if test -n "$hcache_db_used"; then
AC_DEFINE(USE_HCACHE, 1, [Enable header caching])
HCACHE_LIBS="-Lhcache -lhcache $HCACHE_LIBS"
+ HCACHE_DEPS="hcache/libhcache.a"
else
# For outputting in the summary
hcache_db_used="no"
AC_SUBST(MUTTLIBS)
AC_SUBST(MUTT_LIB_OBJECTS)
AC_SUBST(HCACHE_LIBS)
+AC_SUBST(HCACHE_DEPS)
dnl -- iconv/gettext --