← 返回命令列表

Linux command

autoconf 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Generate

autoconf

Example

autoconf -o [configure] [configure.ac]

Trace

autoconf --trace=[AC_CHECK_LIB]

Example

autoconf --version

说明

autoconf generates configure scripts from templates (configure.ac or configure.in). These scripts probe the system for available features, libraries, and tools, producing Makefiles tailored to the build environment. Autoconf is part of the GNU Build System (autotools), used by thousands of open source projects.

参数

-o _file_
Output file (default: configure)
-W _category_
Warning category
-I _dir_
Add directory to search path
-f, --force
Force regeneration
-v, --verbose
Verbose output
--trace=_macro_
Trace macro calls in configure.ac
-B _dir_
Prepend directory to search path

FAQ

What is the autoconf command used for?

autoconf generates configure scripts from templates (configure.ac or configure.in). These scripts probe the system for available features, libraries, and tools, producing Makefiles tailored to the build environment. Autoconf is part of the GNU Build System (autotools), used by thousands of open source projects.

How do I run a basic autoconf example?

Run `autoconf` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o _file_ do in autoconf?

Output file (default: configure)