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

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

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

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

optional_depends  krb5 \
                  "--with-krb5" \
                  "--without-krb5" \
                  "for Kerberos 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  openssl \
                  "--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"
