Skip to content

Commit

Permalink
ldap: Fix cyclic dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and sirainen committed Jun 14, 2016
1 parent dda8a31 commit cecf8cf
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 18 deletions.
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -2929,6 +2929,7 @@ src/plugins/Makefile
src/plugins/acl/Makefile
src/plugins/imap-acl/Makefile
src/plugins/autocreate/Makefile
src/plugins/dict-ldap/Makefile
src/plugins/expire/Makefile
src/plugins/fs-compress/Makefile
src/plugins/fts/Makefile
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Expand Up @@ -23,9 +23,9 @@ LIBDOVECOT_SUBDIRS = \

SUBDIRS = \
$(LIBDOVECOT_SUBDIRS) \
$(LIB_LDAP) \
lib-dict-extra \
lib-dovecot \
$(LIB_LDAP) \
lib-fts \
lib-imap-client \
lib-imap-urlauth \
Expand Down
17 changes: 0 additions & 17 deletions src/lib-dict-extra/Makefile.am
Expand Up @@ -6,27 +6,10 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-dict \
-I$(top_srcdir)/src/lib-fs \
-I$(top_srcdir)/src/lib-ldap \
-I$(top_srcdir)/src/lib-settings

libdict_extra_la_SOURCES = \
dict-fs.c \
dict-register.c

NOPLUGIN_LDFLAGS =

if HAVE_LDAP
LIBDICT_LDAP = libdict_ldap.la
endif
libdict_ldap_la_LDFLAGS = -module -avoid-version $(LIBDOVECOT_LDAP)

module_dictdir = $(moduledir)/dict
module_dict_LTLIBRARIES = \
$(LIBDICT_LDAP)

libdict_ldap_la_SOURCES = \
dict-ldap.c \
dict-ldap-settings.c

noinst_HEADERS = \
dict-ldap-settings.h
5 changes: 5 additions & 0 deletions src/plugins/Makefile.am
Expand Up @@ -10,6 +10,10 @@ if BUILD_SOLR
FTS_SOLR = fts-solr
endif

if HAVE_LDAP
DICT_LDAP = dict-ldap
endif

SUBDIRS = \
acl \
imap-acl \
Expand Down Expand Up @@ -38,4 +42,5 @@ SUBDIRS = \
$(ZLIB) \
$(FTS_LUCENE) \
$(FTS_SOLR) \
$(DICT_LDAP) \
fs-compress
21 changes: 21 additions & 0 deletions src/plugins/dict-ldap/Makefile.am
@@ -0,0 +1,21 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-dict \
-I$(top_srcdir)/src/lib-ldap \
-I$(top_srcdir)/src/lib-settings

LIBDICT_LDAP = libdict_ldap.la
libdict_ldap_la_DEPENDENCIES = $(LIBDOVECOT_LDAP)
libdict_ldap_la_LDFLAGS = -module -avoid-version
libdict_ldap_la_LIBADD = $(LIBDOVECOT_LDAP)

module_dictdir = $(moduledir)/dict
module_dict_LTLIBRARIES = \
$(LIBDICT_LDAP)

libdict_ldap_la_SOURCES = \
dict-ldap.c \
dict-ldap-settings.c

noinst_HEADERS = \
dict-ldap-settings.h
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit cecf8cf

Please sign in to comment.