autoconf - Generate configuration scripts
| Use Case | Command | Description |
|---|---|---|
Generate a configure script from configure.ac | autoconf | Reads configure.ac (or configure.in) and writes configure |
| Generate from a specific template file | autoconf template.m4 | Processes template.m4 and outputs to stdout |
| Trace macro calls (no output file) | autoconf -t AC_INIT | Reports all calls to AC_INIT in the input |
| Include extra directories for M4 macros | autoconf -I /path/to/macros | Appends directory to search path |
| Prepend a directory to the search path | autoconf -B /path/to/macros | Prepends directory to search path |
| Enable verbose output | autoconf -v | Reports processing details |
| Force reβcheck of all files | autoconf -f | Considers all files obsolete |
| Save output to a specific file | autoconf -o output.sh | Writes generated script to output.sh |
| Control warning categories | autoconf -W all | Enables all warnings |
autoconf [OPTION]... [TEMPLATE-FILE]
Generate a configuration script from a TEMPLATE-FILE if given, or configure.ac if present, or else configure.in. Output is sent to the standard output if TEMPLATE-FILE is given, else into configure.
-h, --help β π¨οΈ print this help, then exit-V, --version β βΉοΈ print version number, then exit-v, --verbose β π’ verbosely report processing-d, --debug β π don't remove temporary files-f, --force β πͺ consider all files obsolete-o, --output=FILE β πΎ save output in FILE (stdout is the default)-W, --warnings=CATEGORY β β οΈ report the warnings falling in CATEGORYcross β π cross compilation issuesgnu β π GNU coding standards (default in gnu and gnits modes)obsolete β ποΈ obsolete features or constructions (default)override β βοΈ user redefinitions of Automake rules or variablesportability β π portability issues (default in gnu and gnits modes)portability-recursive β π nested Make variables (default with -Wportability)extra-portability β π¦ extra portability issues related to obscure toolssyntax β π§ dubious syntactic constructs (default)unsupported β π« unsupported or incomplete features (default)all β π all the warningsno-CATEGORY β β turn off warnings in CATEGORYnone β π turn off all the warningsThe environment variables M4 and WARNINGS are honored.
-B, --prepend-include=DIR β β prepend directory DIR to search path-I, --include=DIR β β append directory DIR to search path-t, --trace=MACRO[:FORMAT] β π report the list of calls to MACRO-i, --initialization β π§© also trace Autoconf's initialization processIn tracing mode, no configuration script is created. FORMAT defaults to $f:$l:$n:$%; see autom4te --help for information about FORMAT.
Written by David J. MacKenzie and Akim Demaille.
Report bugs to <bug-autoconf AT gnu.org>.
GNU Autoconf home page: <https://www.gnu.org/software/autoconf/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
Copyright Β© 2021 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>, <https://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
autoconf(1), automake(1), autoreconf(1), autoupdate(1), autoheader(1), autoscan(1), config.guess(1), config.sub(1), ifnames(1), libtool(1).
The full documentation for autoconf is maintained as a Texinfo manual. If the info and autoconf programs are properly installed at your site, the command
info autoconf
should give you access to the complete manual.
Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-14 20:41 @2600:1f28:365:80b0:4d23:66fa:c2bb:7bae
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)