summaryrefslogtreecommitdiffstats
path: root/dirmngr/Makefile.am
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-01-21 11:18:50 +0100
committerWerner Koch <wk@gnupg.org>2020-01-21 11:18:50 +0100
commitd8973975e7636ec0f007575a0bede92147d835f8 (patch)
tree683530a2c38512f1c458cd02581acbe7d20208ae /dirmngr/Makefile.am
parentgpg: Fix printing of keyring name (regression in master) (diff)
downloadgnupg2-d8973975e7636ec0f007575a0bede92147d835f8.tar.xz
gnupg2-d8973975e7636ec0f007575a0bede92147d835f8.zip
dirmngr: Fix building w/o LDAP support
* dirmngr/Makefile.am: Conditionally build dirmngr_ldap. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'dirmngr/Makefile.am')
-rw-r--r--dirmngr/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/dirmngr/Makefile.am b/dirmngr/Makefile.am
index da675cf1e..e812329dc 100644
--- a/dirmngr/Makefile.am
+++ b/dirmngr/Makefile.am
@@ -26,7 +26,11 @@ dist_pkgdata_DATA = sks-keyservers.netCA.pem
bin_PROGRAMS = dirmngr dirmngr-client
+if USE_LDAP
libexec_PROGRAMS = dirmngr_ldap
+else
+libexec_PROGRAMS =
+endif
noinst_PROGRAMS = $(module_tests) $(module_net_tests) $(module_maint_tests)
TESTS = $(module_tests) $(module_net_tests)
@@ -84,12 +88,14 @@ dirmngr_LDADD += $(ldaplibs)
endif
dirmngr_LDFLAGS = $(extra_bin_ldflags)
+if USE_LDAP
dirmngr_ldap_SOURCES = dirmngr_ldap.c $(ldap_url)
dirmngr_ldap_CFLAGS = $(GPG_ERROR_CFLAGS) $(LIBGCRYPT_CFLAGS)
dirmngr_ldap_LDFLAGS =
dirmngr_ldap_LDADD = $(libcommon) \
$(GPG_ERROR_LIBS) $(LIBGCRYPT_LIBS) $(LDAPLIBS) \
$(LBER_LIBS) $(LIBINTL) $(LIBICONV) $(NETLIBS)
+endif
dirmngr_client_SOURCES = dirmngr-client.c
dirmngr_client_LDADD = $(libcommon) \