dirmngr: If LDAP is not enable, don't build the LDAP bits.
authorNeal H. Walfield <neal@g10code.com>
Mon, 13 Apr 2015 10:02:40 +0000 (12:02 +0200)
committerNeal H. Walfield <neal@g10code.com>
Mon, 13 Apr 2015 10:02:40 +0000 (12:02 +0200)
commit5cde5bf37339cdeb0bd0a33d39477382eafebede
treeb701d9f8f8a72abe85f3e6130a05291bdd6ed9b5
parent454f60399c7318fffd3de2afadd58c7a490178bd
dirmngr: If LDAP is not enable, don't build the LDAP bits.

* dirmngr/Makefile.am (dirmngr_SOURCES): Only include
ks-engine-ldap.c, ldap-parse-uri.c and ldap-parse-uri.h if USE_LDAP
is TRUE.
(module_tests): Only add t-ldap-parse-uri if USE_LDAP is TRUE.
* dirmngr/ks-action.c: Only include "ldap-parse-uri.h" if USE_LDAP is
TRUE.
(ks_action_help): Don't invoke LDAP functionality if USE_LDAP is not
TRUE.
(ks_action_search): Likewise.
(ks_action_get): Likewise.
(ks_action_put): Likewise.
* dirmngr/server.c: Only include "ldap-parse-uri.h" if USE_LDAP is
TRUE.
(cmd_keyserver): Don't invoke LDAP functionality if USE_LDAP is not
TRUE.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
GnuPG-bug-id: 1949
dirmngr/Makefile.am
dirmngr/ks-action.c
dirmngr/server.c