LinuxCommandLibrary

autoreconf

Regenerate autotools build system files

TLDR

Regenerate all autotools files

$ autoreconf
copy
Regenerate with install of missing files
$ autoreconf --install
copy
Force regeneration
$ autoreconf --force --install
copy
Regenerate verbosely
$ autoreconf --install --verbose
copy

SYNOPSIS

autoreconf [-f] [-i] [-v] [options]

DESCRIPTION

autoreconf runs autoconf, autoheader, automake, and related tools in the correct order. It's the recommended way to regenerate configure scripts and related files in autotools projects.
The tool automatically determines which programs to run based on project configuration.

PARAMETERS

-i, --install

Add missing auxiliary files
-f, --force
Force regeneration even if files are current
-v, --verbose
Verbose output
-s, --symlink
Use symlinks instead of copies for auxiliary files
-W category
Warning level
--no-recursive
Don't recurse into subdirectories

WORKFLOW

Typical usage when building from git:

$ autoreconf --install
./configure
make
copy

CAVEATS

Requires autoconf, automake, and related tools installed. Can be slow on large projects. Modern alternatives (CMake, Meson) are often easier.

HISTORY

autoreconf was added to autoconf to simplify the complex process of regenerating autotools files in the correct order.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community