AUTOCONF(1)
π AUTOCONF(1) π
okay bestie, listen β this is the manual page for autoconf2.13, from the General Commands Manual section. it makes the little scripts that make your source code go brrr. sit down, grab a snack, we're doing this together π
β¨ NAME β¨
autoconf2.13 β creates scripts to configure source code packages using templates
πΈ SYNOPSIS πΈ
autoconf2.13 [ --help | -h ] [ --localdir=dir | -l dir ] [
--macrodir=dir | -m dir ] [ --version ]
π¦ DESCRIPTION π¦
So here's the tea β. You want a configure script, and you've got a configure.in file. Run autoconf2.13 with no arguments at all and it justβ¦ does it. it takes your configure.in and feeds it through the m4 macro processor, using the Autoconf macros, and out comes your config script. iconic behaviour honestly π
But wait, there's more. If you hand autoconf2.13 an argument, it reads that file instead of configure.in β and instead of writing to configure, it writes the configuration script straight to standard output. and if the argument you give it is -? it reads from standard input instead of configure.in, and writes the configuration script to standard output. very demure, very mindful π
Now, the Autoconf macros live in several files. Some of them ship with Autoconf β autoconf2.13 reads those first. Then it goes looking for the optional file acsite.m4 in the directory that holds the distributed Autoconf macro files, and for the optional file aclocal.m4 in the current directory. Those two can hold your site's macros or the package's own Autoconf macro definitions β whatever you need π«Ά
And here's the important bit: if a macro is defined in more than one of the files autoconf2.13 reads, then the last definition it reads overrides the earlier ones. last one wins, no cap.
autoconf2.13 accepts the following options:
π OPTIONS π
--helpβ prints a lil summary of the command line options, then exits. that's it, that's the whole thing β¨-hβ same energy as--help. summary of the command line options, then exit.--localdir=DIRβ look for the package fileaclocal.m4in directory DIR instead of in the current directory.-l DIRβ the short version of--localdir. looks for the package fileaclocal.m4in directory DIR instead of the current directory.--macrodir=DIRβ look for the installed macro files in directory DIR. you can also set theAC_MACRODIRenvironment variable to a directory β but heads up, this option overrides the environment variable. option wins, always π-m DIRβ the short version of--macrodir. look for the installed macro files in DIR. and yeah, same deal: you can setAC_MACRODIRto a directory, but this option overrides the environment variable.--versionβ print the version number of Autoconf and exit. short, sweet, slays π
π SEE ALSO π
go read these next bestie, they're the whole friend group:
π AUTHORS π
This whole thing was written by David MacKenzie, with help from Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor, Roland McGrath, Noah Friedman, David D. Zuhn, and many others. absolute legends, every single one π
And this very manpage? written by Ben Pfaff <pfaffben@debian.org> for the Debian GNU/Linux autoconf2.13 package. give him his flowers π
aaaand that's the whole page babes π this one's from the Autoconf manual, so if you see it floating around in the wilds of your system's man pages, you'll know exactly who wrote it and why. go forth and configure, my main character π¦β¨π
π¦ where this page comes from
- debian bookworm: autoconf2.13 2.13-69
- ubuntu jammy: autoconf2.13 2.13-69
- ubuntu noble: autoconf2.13 2.13-69
- ubuntu resolute: autoconf2.13 2.13-69build1
- ubuntu stonking: autoconf2.13 2.13-69build1
- Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc
- Copyright (C) 1998 Ben Pfaff
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms