have_lucene=no
if test "$want_lucene" = "yes"; then
+ PKG_CHECK_MODULES(CLUCENE, libclucene-core,, [
+ # no pkg-config file for clucene. fallback to defaults.
+ # FIXME: we should verify here that this actually works..
+ CLUCENE_LIBS="-lclucene-shared -lclucene-core"
+ ])
if test $want_stemmer != no; then
AC_CHECK_LIB(stemmer, sb_stemmer_new, [
have_lucene_stemmer=yes
-I$(top_srcdir)/src/plugins/fts \
-I$(top_srcdir)/src/doveadm
+AM_CXXFLAGS = \
+ $(CLUCENE_CFLAGS)
+
NOPLUGIN_LDFLAGS =
lib21_fts_lucene_plugin_la_LDFLAGS = -module -avoid-version
lib20_doveadm_fts_lucene_plugin_la_LDFLAGS = -module -avoid-version
endif
lib21_fts_lucene_plugin_la_LIBADD = \
- -lclucene-shared -lclucene-core $(TEXTCAT_LIBS) $(STEMMER_LIBS)
+ $(CLUCENE_LIBS) $(TEXTCAT_LIBS) $(STEMMER_LIBS)
lib21_fts_lucene_plugin_la_SOURCES = \
fts-lucene-plugin.c \