aclocal
Quick Reference
Command Name:
aclocal
Category:
development
Platform:
linux
Basic Usage:
Common Use Cases
- 1
Autotools setup
Generate aclocal.m4 files containing needed macro definitions for autoconf
- 2
Open source development
Prepare the build system for C/C++ projects that use the GNU Autotools
- 3
Custom macro integration
Include project-specific macros from m4 directories into the build system
- 4
Cross-platform compatibility
Collect platform detection and feature testing macros for configure scripts
Syntax
aclocal [OPTION]...
Options
| Option | Description |
|---|---|
| -I DIR, --acdir=DIR | Add directory DIR to the list of directories to search for .m4 macro files |
| --automake-acdir=DIR | Directory holding automake-provided .m4 macro files |
| --system-acdir=DIR | Directory holding system-wide third-party .m4 macro files |
| -o FILE, --output=FILE | Write output to FILE instead of aclocal.m4 |
| --print-ac-dir | Print the directory where the system-wide third-party .m4 files are stored |
| --print-automake-acdir | Print the directory where automake's .m4 files are stored |
| --verbose, -v | Print names of files being processed and macro definitions found |
| --force, -f | Always overwrite output file |
| --install | Copy third-party files to a local directory |
| --dry-run | Only pretend to do actions |
| --warnings=CATEGORY | Report warnings falling in CATEGORY [syntax] |
| --help | Display help information and exit |
| --version | Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the aclocal command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
aclocal
aclocal -I /usr/local/share/aclocal
aclocal --system-acdir=/usr/share/aclocal
aclocal -I m4