optional_depends  GETTEXT \
                  "--enable-nls" \
                  "--disable-nls" \
                  "for Native Language Support" &&

optional_depends  icu \
                  '--with-icu' \
                  '--without-icu' \
                 'Unicode support' &&
optional_depends  tcl \
                  "--with-tcl" \
                  "--without-tcl" \
                  "for PL/Tcl support" &&

optional_depends  perl \
                  "--with-perl" \
                  "--without-perl" \
                  "for PL/Perl support" &&

optional_depends  python3 \
                  "--with-python" \
                  "--without-python" \
                  "for PL/Python support" &&

optional_depends  linux-pam \
                  "--with-pam" \
                  "--without-pam" \
                  "for PAM authentication" &&

optional_depends  libselinux \
                  "--with-selinux" \
                  "--without-selinux" \
                  "for SELinux support" &&

optional_depends  krb5 \
                  "--with-gssapi" \
                  "--without-gssapi" \
                  "for Kerberos (GSSAPI) authentication" &&

optional_depends  openldap \
                  "--with-ldap" \
                  "--without-ldap" \
                  "for LDAP authentication" &&

optional_depends  readline \
                  "--with-readline" \
                  "--without-readline" \
                  "for Readline support in psql, the command line interface" &&

optional_depends  SSL \
                  "--with-openssl" \
                  "--without-openssl" \
                  "for SSL (encrypted) connection support" &&

optional_depends  libxml2 \
                  "--with-libxml" \
                  "--without-libxml" \
                  "for XML support (XML data type)" &&

if is_depends_enabled $SPELL libxml2; then
  optional_depends  libxslt \
                    "--with-libxslt" \
                    "--without-libxslt" \
                    "for XSLT support"
fi &&

optional_depends  zlib \
                  "--with-zlib" \
                  "--without-zlib" \
                  "for compression support in the pg_dump and pg_restore utilities"
