From: Fred Morcos Date: Tue, 22 Aug 2023 09:30:15 +0000 (+0200) Subject: Meson: Properly set configuration variables for LDAP X-Git-Tag: rec-5.1.0-alpha1~80^2~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84435f56c9d5b60aa40500940700cec1a2a5f524;p=thirdparty%2Fpdns.git Meson: Properly set configuration variables for LDAP --- diff --git a/meson/ldap/meson.build b/meson/ldap/meson.build index 4a95301be7..8924a44776 100644 --- a/meson/ldap/meson.build +++ b/meson/ldap/meson.build @@ -2,7 +2,21 @@ dep_ldap = dependency('ldap', required: true) dep_lber = dependency('lber', required: true) dep_krb5 = dependency('krb5', required: true) -conf.set('LDAP', dep_ldap.found(), description: 'LDAP') +conf.set('HAVE_LIBLDAP', dep_ldap.found(), description: 'Have libldap') + +have_ldap_initialize = cxx.has_function('ldap_initialize', dependencies: dep_ldap) +conf.set( + 'HAVE_LDAP_INITIALIZE', + have_ldap_initialize, + description: 'Have ldap_initialize', +) + +have_ldap_sasl_bind = cxx.has_function('ldap_sasl_bind', dependencies: dep_ldap) +conf.set( + 'HAVE_LDAP_SASL_BIND', + have_ldap_initialize, + description: 'Have ldap_sasl_bind', +) summary('LDAP', dep_ldap.found(), bool_yn: true, section: 'LDAP') summary('LDAP Name', dep_ldap.name(), section: 'LDAP') @@ -16,6 +30,17 @@ summary('Krb5', dep_krb5.found(), bool_yn: true, section: 'LDAP') summary('Krb5 Name', dep_krb5.name(), section: 'LDAP') summary('Krb5 Version', dep_krb5.version(), section: 'LDAP') +have_krb5_get_init_creds_opt_set_default_flags = \ + cxx.has_function( + 'krb5_get_init_creds_opt_set_default_flags', + dependencies: dep_krb5, + ) +conf.set( + 'HAVE_KRB5_GET_INIT_CREDS_OPT_SET_DEFAULT_FLAGS', + have_krb5_get_init_creds_opt_set_default_flags, + description: 'Have krb5_get_init_creds_opt_set_default_flags', +) + dep_ldap = declare_dependency( dependencies: [ dep_ldap,