From c8d86783686a79db7d02e8dfe460c3ed71feb430 Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Thu, 28 Apr 2016 14:32:05 +0200 Subject: [PATCH] Support for building as dynamic module --- config | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/config b/config index 2420bb6..80de726 100644 --- a/config +++ b/config @@ -1,6 +1,15 @@ ngx_addon_name=ngx_http_auth_ldap_module -HTTP_MODULES="$HTTP_MODULES ngx_http_auth_ldap_module" -NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_auth_ldap_module.c" + +if test -n "$ngx_module_link"; then + ngx_module_type=HTTP + ngx_module_name=ngx_http_auth_ldap_module + ngx_module_srcs="$ngx_addon_dir/ngx_http_auth_ldap_module.c" + + . auto/module +else + HTTP_MODULES="$HTTP_MODULES ngx_http_auth_ldap_module" + NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_auth_ldap_module.c" +fi CORE_LIBS="$CORE_LIBS -lldap"