AUTOM4TE(1)
autom4te(1) β the M4 generator bestie πβ¨
NAME π
autom4te β Generate files and scripts thanks to M4. No cap, that's the whole vibe.
SYNOPSIS π
autom4te [OPTION]... [FILES]
DESCRIPTION π¦
Okay so here's the tea: autom4te runs GNU M4 on the FILES, and it avoids useless runs like a queen who does not do duplicate work. π
If you're tracing, it outputs the traces. If you're freezing, it outputs the frozen file. Otherwise? It gives you the expansion of the FILES, periodt.
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. Fr fr, that's the rule. π«Ά
Some files may be optional, i.e., they will only be processed if found in the include path, but then they must end in .m4?; the question mark is not part of the actual file name. Cute little trap, but iconic. β¨
Operation modes ποΈ
-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 inFILE(defaults to'-', stdout)-f,--forceβ don't rely on cached values-W,--warnings=CATEGORYβ report the warnings falling inCATEGORY-l,--language=LANGβ specify the set of M4 macros to use-C,--cache=DIRECTORYβ preserve results for future runs inDIRECTORY--no-cacheβ disable the cache-m,--mode=OCTALβ change the non trace output file mode (0666)-M,--meltβ don't use M4 frozen files
Languages include π£οΈ
'Autoconf'β create Autoconf configure scripts'Autotest'β create Autotest test suites'M4sh'β create M4sh shell scripts'M4sugar'β create M4sugar output
Warning categories include β οΈ
crossβ 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 inCATEGORYnoneβ turn off all the warningserrorβ treat warnings as errors
The environment variables M4 and WARNINGS are honored. Slay. π
Library directories π
-B,--prepend-include=DIRβ prepend directoryDIRto search path-I,--include=DIRβ append directoryDIRto search path
Tracing π
-t,--trace=MACRO[:FORMAT]β report theMACROinvocations-p,--preselect=MACROβ prepare to traceMACROin a future run
Freezing βοΈ
-F,--freezeβ produce an M4 frozen state file forFILES
FORMAT defaults to '$f:$l:$n:$%', and it can use the following escapes, bestie:
$$β 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β argumentNUM, unquoted and with newlines$SEP@β all arguments, with newlines, quoted, and separated bySEP$SEP*β all arguments, with newlines, unquoted, and separated bySEP$SEP%β all arguments, without newlines, unquoted, and separated bySEP
SEP can be empty for the default (comma for @ and *, colon for %), a single character for that character, or {STRING} to use a string. Obsessed with the flexibility tbh. π
AUTHOR βοΈ
Written by Akim Demaille.
REPORTING BUGS π
Report bugs to <bug-autoconf@gnu.org>.
GNU Autoconf home page: <https://www.gnu.org/software/autoconf/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
COPYRIGHT Β©οΈ
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. Like, none. Zero. Be aware. π
SEE ALSO π
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. Go get that lore. πβ¨
okay bye bestie! π«Ά This absolute icon of a page is GNU Autoconf 2.71, dated January 2021. mwah ππ
π¦ where this page comes from
- epel 9: autoconf2.7x 2.71-1.el9 Β· GPLv2+ and GFDL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms