16.9 configure Invocation

configure recognizes the following options to control how it operates.

--help
-h

Print a summary of all of the options to configure, and exit.

--help=short
--help=recursive

Print a summary of the options unique to this package’s configure, and exit. The short variant lists options used only in the top level, while the recursive variant lists options also present in any nested packages.

--version
-V

Print the version of Autoconf used to generate the configure script, and exit.

--cache-file=file

Enable the cache: use and save the results of the tests in file, traditionally config.cache. file defaults to /dev/null to disable caching.

--config-cache
-C

Alias for --cache-file=config.cache.

--srcdir=dir

Look for the package’s source code in directory dir. Usually configure can determine that directory automatically.

--prefix=dir

Use dir as the installation prefix. Installation Names for more details, including other options available for fine-tuning the installation locations.

--host=type

Build binaries for system type. See Specifying a System Type.

--enable-feature
--disable-feature

Enable or disable the optional feature. See Optional Features.

--with-package
--without-package

Use or omit package when building. See Optional Features.

--quiet
--silent
-q

Do not print messages saying which checks are being made. To suppress all normal output, redirect it to /dev/null (any error messages will still be shown).

--no-create
-n

Run the configure checks, but stop before creating any output files.

configure also recognizes several environment variables, and accepts some other, less widely useful, options. Run ‘configure --help’ for more details.