Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (39 sloc) 1.65 KB
if test -n "$ngx_module_link"; then
if test -n "$NDK_SRCS"; then
echo "found ngx_devel_kit for ngx_encrypted_session; looks good."
else
echo "error: ngx_devel_kit is required to build ngx_encrypted_session; please put it before ngx_encrypted_session." 1>&2
exit 1
fi
else
if echo $HTTP_MODULES | grep " ndk_http_module" > /dev/null; then
echo "found ngx_devel_kit for ngx_encrypted_session; looks good."
else
echo "error: ngx_devel_kit is required to build ngx_encrypted_session; please put it before ngx_encrypted_session." 1>&2
exit 1
fi
fi
ngx_addon_name=ngx_http_encrypted_session_module
HTTP_ENCRYPTED_SESSION_SRCS=" \
$ngx_addon_dir/src/ngx_http_encrypted_session_module.c \
$ngx_addon_dir/src/ngx_http_encrypted_session_cipher.c \
"
HTTP_ENCRYPTED_SESSION_DEPS=" \
$ngx_addon_dir/src/ddebug.h \
$ngx_addon_dir/src/ngx_http_encrypted_session_cipher.h \
"
if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name=$ngx_addon_name
ngx_module_incs=
ngx_module_deps="$HTTP_ENCRYPTED_SESSION_DEPS"
ngx_module_srcs="$HTTP_ENCRYPTED_SESSION_SRCS"
ngx_module_libs=
. auto/module
else
HTTP_MODULES="$HTTP_MODULES $ngx_addon_name"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HTTP_ENCRYPTED_SESSION_SRCS"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $HTTP_ENCRYPTED_SESSION_DEPS"
fi
CFLAGS="$CFLAGS -DNDK_SET_VAR"
#CORE_LIBS="$CORE_LIBS -lssl"