depends libdbi &&

optional_depends "FIREBIRD" \
                 "--with-firebird --with-firebird-dir=$INSTALL_ROOT/opt/firebird" \
                 "--without-firebird" \
                 "database support"  &&

optional_depends "postgresql" \
                 "--with-pgsql" \
                 "--without-pgsql" \
                 "database support" &&

optional_depends "MYSQL" \
                 "--with-mysql" \
                 "--without-mysql" \
                 "database support" &&

if is_depends_enabled $SPELL $(get_spell_provider $SPELL MYSQL); then
  config_query_option LIBDBI_DRIVERS_OPTS "Use threadsafe version of libmysqlclient?" y \
                                          "--enable-mysql-threadsafe" \
                                          "--disable-mysql-threadsafe"
fi &&

optional_depends "sqlite2" \
                 "--with-sqlite" \
                 "--without-sqlite" \
                 "database support"  &&

optional_depends "sqlite" \
                 "--with-sqlite3" \
                 "--without-sqlite3" \
                 "database support"  &&

optional_depends openjade \
                 "--enable-docs" \
                 "--disable-docs" \
                 "to build documentation"
