configure, cmake, lib: more form api deprecation

Introduce a --enable-form-api configure option to control its inclusion
in builds. The condition name defined for it is CURL_DISABLE_FORM_API.

Form api code is dependent of MIME: configure and CMake handle this
dependency automatically: CMake by making it a dependent option
explicitly, configure by inheriting the MIME value by default and
rejecting explicit incompatible values.

"form-api" is now a new hidden test feature.

Update libcurl modules to respect this option and adjust tests
accordingly.

Closes #9621
This commit is contained in:
Patrick Monnerat 2022-11-15 17:50:22 +01:00 committed by Daniel Stenberg
parent 50e563253d
commit 038c46f61f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
18 changed files with 62 additions and 19 deletions

View file

@ -24,6 +24,10 @@ Disable DNS-over-HTTPS
Disable the FILE protocol
## `CURL_DISABLE_FORM_API`
Disable the form API
## `CURL_DISABLE_FTP`
Disable the FTP (and FTPS) protocol