LinuxCommandLibrary

autoheader

Generate template header files for configure

TLDR

Generate config.h.in

$ autoheader
copy
Generate from specific input
$ autoheader [configure.ac]
copy
Force regeneration
$ autoheader --force
copy

SYNOPSIS

autoheader [-f] [-W category] [input]

DESCRIPTION

autoheader creates a template header file (config.h.in) for configure to use. It scans configure.ac for AC_DEFINE macros and generates corresponding #define statements.
This is part of the autotools workflow, typically run before autoconf.

PARAMETERS

-f, --force

Force regeneration even if current
-W category
Warning level
-I dir
Add include directory
-v, --verbose
Verbose output

WORKFLOW

1. Write configure.ac with AC_DEFINE macros
2. Run autoheader to generate config.h.in
3. Run autoconf to generate configure
4. Users run ./configure to generate config.h

CAVEATS

Part of autotools; typically called by autoreconf. Output is template; actual config.h created by configure. Not needed for all projects.

HISTORY

autoheader is part of GNU Autoconf, developed to manage configuration header files in portable software since the early 1990s.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community