1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
ngx_addon_name=ngx_http_set_misc_module
if test -n "$ngx_module_link"; then
if test -n "$NDK_SRCS"; then
echo "found ngx_devel_kit for ngx_set_misc; looks good."
else
echo "error: ngx_devel_kit is required to build ngx_set_misc; please put it before ngx_set_misc." 1>&2
exit 1
fi
else
if echo $HTTP_MODULES | grep " ndk_http_module" > /dev/null; then
echo "found ngx_devel_kit for ngx_set_misc; looks good."
else
echo "error: ngx_devel_kit is required to build ngx_set_misc; please put it before ngx_set_misc." 1>&2
exit 1
fi
fi
SET_MISC_SRCS=" \
$ngx_addon_dir/src/ngx_http_set_base32.c \
$ngx_addon_dir/src/ngx_http_set_default_value.c \
$ngx_addon_dir/src/ngx_http_set_hashed_upstream.c \
$ngx_addon_dir/src/ngx_http_set_quote_sql.c \
$ngx_addon_dir/src/ngx_http_set_quote_json.c \
$ngx_addon_dir/src/ngx_http_set_unescape_uri.c \
$ngx_addon_dir/src/ngx_http_set_misc_module.c \
$ngx_addon_dir/src/ngx_http_set_escape_uri.c \
$ngx_addon_dir/src/ngx_http_set_hash.c \
$ngx_addon_dir/src/ngx_http_set_local_today.c \
$ngx_addon_dir/src/ngx_http_set_hex.c \
$ngx_addon_dir/src/ngx_http_set_base64.c \
$ngx_addon_dir/src/ngx_http_set_base64url.c \
$ngx_addon_dir/src/ngx_http_set_random.c \
$ngx_addon_dir/src/ngx_http_set_secure_random.c \
$ngx_addon_dir/src/ngx_http_set_rotate.c
"
SET_MISC_DEPS=" \
$ngx_addon_dir/src/ddebug.h \
$ngx_addon_dir/src/ngx_http_set_default_value.h \
$ngx_addon_dir/src/ngx_http_set_hashed_upstream.h \
$ngx_addon_dir/src/ngx_http_set_quote_sql.h \
$ngx_addon_dir/src/ngx_http_set_quote_json.h \
$ngx_addon_dir/src/ngx_http_set_unescape_uri.h \
$ngx_addon_dir/src/ngx_http_set_escape_uri.h \
$ngx_addon_dir/src/ngx_http_set_hash.h \
$ngx_addon_dir/src/ngx_http_set_local_today.h \
$ngx_addon_dir/src/ngx_http_set_hex.h \
$ngx_addon_dir/src/ngx_http_set_base64url.h \
$ngx_addon_dir/src/ngx_http_set_base64.h \
$ngx_addon_dir/src/ngx_http_set_random.h \
$ngx_addon_dir/src/ngx_http_set_rotate.h \
$ngx_addon_dir/src/ngx_http_set_secure_random.h \
$ngx_addon_dir/src/ngx_http_set_misc_module.h \
"
if [ $USE_OPENSSL = YES -o $MAIL_SSL = YES ]; then
SET_MISC_DEPS="$SET_MISC_DEPS $ngx_addon_dir/src/ngx_http_set_hmac.h"
SET_MISC_SRCS="$SET_MISC_SRCS $ngx_addon_dir/src/ngx_http_set_hmac.c"
fi
CFLAGS="$CFLAGS -DNDK_SET_VAR -DNDK_UPSTREAM_LIST"
USE_SHA1=YES
USE_MD5=YES
if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name=$ngx_addon_name
ngx_module_incs=
ngx_module_deps="$SET_MISC_DEPS"
ngx_module_srcs="$SET_MISC_SRCS"
ngx_module_libs=
. auto/module
else
HTTP_MODULES="$HTTP_MODULES $ngx_addon_name"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $SET_MISC_SRCS"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $SET_MISC_DEPS"
fi
|