ngx_feature="MaxmindDB library" ngx_feature_name= ngx_feature_run=no ngx_feature_incs="#include " ngx_feature_libs=-lmaxminddb . auto/feature if [ $ngx_found = yes ]; then ngx_addon_name=ngx_http_geoip2_module module_src="$ngx_addon_dir/ngx_http_geoip2_module.c" if test -n "$ngx_module_link"; then ngx_module_type=HTTP ngx_module_name="$ngx_addon_name" ngx_module_incs= ngx_module_deps= ngx_module_srcs="$module_src" ngx_module_libs="$ngx_feature_libs" . auto/module else HTTP_MODULES="$HTTP_MODULES $ngx_addon_name" NGX_ADDON_SRCS="$NGX_ADDON_SRCS $module_src" CORE_LIBS="$CORE_LIBS $ngx_feature_libs" fi else cat << END $0: error: the geoip2 module requires the maxminddb library. END exit 1 fi