]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Refuse to setup if ldap is required but not found
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 24 Jan 2025 15:05:55 +0000 (16:05 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 24 Jan 2025 15:05:55 +0000 (16:05 +0100)
meson/ldap/meson.build

index d7e637c14d42c6be8fb98d95a666040bbbfbbcf9..4a02110fb1b0f169baffc7d51763f2d251074a3a 100644 (file)
@@ -21,7 +21,10 @@ if get_option('module-ldap') != 'disabled'
       endif
     endif
   endif
+
+  if not dep_ldap_internal.found()
+    error('module-ldap enabled but libldap not found')
+  endif
 
   conf.set('HAVE_LIBLDAP', dep_ldap_internal.found(), description: 'Have libldap')