The configure script checks its command-line options against a list of known options, like --help or --config-cache. An unknown option ordinarily indicates a mistake by the user and configure halts with an error. However, by default unknown --with-package and --enable-feature options elicit only a warning, to support configuring entire source trees.
Source trees often contain multiple packages with a top-level
configure script that uses the
(see Subdirectories). Because the packages generally support
different --with-package and
--enable-feature options, the GNU Coding
Standards say they must accept unrecognized options without halting.
Even a warning message is undesirable here, so
automatically disables the warnings.
This default behavior may be modified in two ways. First, the installer
configure --disable-option-checking to disable
these warnings, or invoke
options to turn them into fatal errors, respectively. Second, the
maintainer can use
By default, disable warnings related to any unrecognized --with-package or --enable-feature options. This is implied by
The installer can override this behavior by passing --enable-option-checking (enable warnings) or --enable-option-checking=fatal (enable errors) to configure.