ACLOCAL(1)

โœจ ACLOCAL(1) โ€” aclocal, the aclocal.m4 generator โœจ

๐ŸŽ€ Okay bestie, aclocal is the program that makes the aclocal.m4 file for you by scanning configure.ac or configure.in ๐Ÿ’– Literally the glue that makes your whole build setup come together. It's giving productivity ๐Ÿ’…


๐Ÿ’ซ SYNOPSIS ๐Ÿ’ซ

aclocal [OPTION]...

๐ŸŒธ DESCRIPTION ๐ŸŒธ

Okay so the whole point is this: it generates aclocal.m4 by scanning configure.ac or configure.in โœจ That's the entire vibe, no cap ๐Ÿซถ


๐Ÿฆ‹ OPTIONS ๐Ÿฆ‹

  • --automake-acdir=DIR โ€” the directory that holds the m4 files Automake provides ๐Ÿ’œ
  • --aclocal-path=PATH โ€” a colon-separated list of directories to hunt through for third-party local files ๐Ÿ”
  • --system-acdir=DIR โ€” the directory that holds third-party system-wide files ๐ŸŒˆ
  • --diff[=COMMAND] โ€” runs COMMAND (default diff -u) on the M4 files that would get changed ๐Ÿ‘€ Heads up, this one implies --install and --dry-run ๐Ÿ™ˆ
  • --dry-run โ€” pretends to update things but doesn't actually touch any file ๐Ÿงš
  • --force โ€” always updates the output file, no matter what ๐Ÿ’ช
  • --help โ€” prints this help, then exits ๐Ÿซถ
  • -I DIR โ€” adds DIR to the search list for .m4 files ๐Ÿ“‚
  • --install โ€” copies third-party files into the first -I directory ๐Ÿ“
  • --output=FILE โ€” puts the output in FILE (default is aclocal.m4) โœจ
  • --print-ac-dir โ€” prints the name of the directory holding the system-wide third-party m4 files, then exits ๐ŸŒธ
  • --verbose โ€” don't be silent, bestie, talk to me ๐Ÿ—ฃ๏ธ
  • --version โ€” prints the version number, then exits ๐ŸŽ€
  • -W, --warnings=CATEGORY โ€” reports the warnings that fall in CATEGORY. It defaults to $WARNINGS ๐Ÿšจ

โš ๏ธ Warning categories โš ๏ธ

  • cross โ€” cross compilation issues ๐ŸŒ
  • gnu โ€” GNU coding standards (default in gnu and gnits modes) ๐Ÿ‘‘
  • obsolete โ€” obsolete features or constructions (default) ๐Ÿฆ•
  • override โ€” user redefinitions of Automake rules or variables ๐Ÿ™…โ€โ™€๏ธ
  • portability โ€” portability issues (default in gnu and gnits modes) ๐Ÿข
  • portability-recursive โ€” nested Make variables (default with -Wportability) ๐Ÿช†
  • extra-portability โ€” extra portability issues related to obscure tools ๐Ÿ”ฎ
  • syntax โ€” dubious syntactic constructs (default) ๐Ÿง
  • unsupported โ€” unsupported or incomplete features (default) ๐Ÿฅฒ

๐Ÿ’… -W also understands ๐Ÿ’…

  • all โ€” turns on all the warnings ๐ŸŒŸ
  • none โ€” turns off all the warnings ๐Ÿ™ˆ
  • no-CATEGORY โ€” turns off warnings in CATEGORY ๐Ÿซฅ
  • error โ€” treats all enabled warnings as errors ๐Ÿ’€

๐Ÿ‘ฉโ€๐Ÿ’ป AUTHOR ๐Ÿ‘ฉโ€๐Ÿ’ป

Written by Tom Tromey <tromey@redhat.com> and Alexandre Duret-Lutz <adl@gnu.org> ๐Ÿ’– The legends behind this, iykyk ๐Ÿซถ


๐Ÿ› REPORTING BUGS ๐Ÿ›

Found a bug? Report it to <bug-automake@gnu.org> ๐Ÿ’Œ The GNU Automake home page is <https://www.gnu.org/software/automake/> ๐Ÿ  And for general help using GNU software, check <https://www.gnu.org/gethelp/> ๐Ÿ†˜


Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html> ๐Ÿ“œ This is free software, so you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law ๐Ÿซง


๐Ÿ”— SEE ALSO ๐Ÿ”—

The full documentation for aclocal is maintained as a Texinfo manual ๐Ÿ“š If the info and aclocal programs are properly installed at your site, run this command to get the complete manual:

info automake

๐Ÿฆ‹ Stay iconic, bestie! This page is from GNU automake 1.19, dated September 2026 ๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from