autom4te - Generate files and scripts thanks to M4
| Use Case | Command | Description |
|---|---|---|
| Generate output from M4 files | autom4te [OPTION]... FILE.m4 | Process FILE.m4 and output to stdout |
| Save output to file | autom4te -o OUTPUT FILE.m4 | Write expansion to OUTPUT file |
| Use frozen state files | autom4te FILE.m4f | Load frozen file to skip reβprocessing |
| Trace macro invocations | autom4te -t MACRO FILE.m4 | Report each call to MACRO with format |
| Force reβrun ignoring cache | autom4te -f FILE.m4 | Do not use cached results |
| Specify macro language | autom4te -l LANG FILE.m4 | Use specified macro set (e.g., Autoconf) |
| Enable warnings | autom4te -W CATEGORY FILE.m4 | Report warnings in CATEGORY |
| Include directory for .m4 files | autom4te -I DIR FILE.m4 | Add DIR to search path for includes |
autom4te [OPTION]... [FILES]
Run GNU M4 on the FILES, avoiding useless runs. Output the traces if tracing, the frozen file if freezing, otherwise the expansion of the FILES.
If some of the FILES are named 'FILE.m4f' they are considered to be M4 frozen files of all the previous files (which are therefore not loaded). If 'FILE.m4f' is not found, then 'FILE.m4' will be used, together with all the previous files.
Some files may be optional, i.e., will only be processed if found in the include path, but then must end in '.m4?'; the question mark is not part of the actual file name.
-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-o, --output=FILE β πΎ save output in FILE (defaults to '-', stdout)-f, --force β πͺ don't rely on cached values-W, --warnings=CATEGORY β β οΈ report the warnings falling in CATEGORY-l, --language=LANG β π specify the set of M4 macros to use-C, --cache=DIRECTORY β ποΈ preserve results for future runs in DIRECTORY--no-cache β π« disable the cache-m, --mode=OCTAL β π’ change the non trace output file mode (0666)-M, --melt β βοΈ don't use M4 frozen filesAutoconf β create Autoconf configure scriptsAutotest β create Autotest test suitesM4sh β create M4sh shell scriptsM4sugar β create M4sugar outputcross β 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 warningserror β treat warnings as errorsThe 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 MACRO invocations-p, --preselect=MACRO β π― prepare to trace MACRO in a future runFORMAT defaults to '$f:$l:$n:$%', and can use the following escapes:
$$ β literal $$f β file where macro was called$l β line where macro was called$d β nesting depth of macro call$n β name of the macro$NUM β argument NUM, unquoted and with newlines$SEP@ β all arguments, with newlines, quoted, and separated by SEP$SEP* β all arguments, with newlines, unquoted, and separated by SEP$SEP% β all arguments, without newlines, unquoted, and separated by SEPSEP can be empty for the default (comma for @ and *, colon for %), a single character for that character, or {STRING} to use a string.
Written by 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 autom4te is maintained as a Texinfo manual. If the info and autom4te programs are properly installed at your site, the command
info autom4te
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-16 09:09 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)