. "$GRIMOIRE/FUNCTIONS" &&

depends SSL "--with-http_ssl_module" &&

optional_depends pcre \
                 "--with-pcre" \
                 "--without-pcre --without-http_rewrite_module" \
                 "for PCRE library usage (e.g. http_rewrite module)" &&

optional_depends perl \
                 "--with-http_perl_module" "" \
                 "for embedded Perl support" &&

optional_depends libxslt \
                 "--with-http_xslt_module" "" \
                 "to enable HTTP XSLT module" &&

if is_version_less 1.7.0 $VERSION; then
  suggest_depends SYSTEM-LOGGER "--add-module=${SOURCE_DIRECTORY}/syslog" "" \
                                "to use syslog"
fi &&

if list_find "$NGINX_MODULES" "dav_ext"; then
  depends expat
fi
