autoconf command in Linux with examples

autoconf command is used in Linux to generate configuration scripts. Generate a configuration script from a TEMPLATE-FILE if given, or from ‘’ if present, or ‘’. The output is sent to the standard output if TEMPLATE-FILE is given, otherwise, it is sent into ‘configure’. To use autoconf we must install the this on the Linux terminal as follows:

sudo apt get-install autoconf


user/bin/autoconf [OPTION] ... [TEMPLATE-FILE]


  • -h, –help: Display the help message and then exits.
    autoconf -h or autoconf --help

  • -V, –version: Shows the version number and then exits.
    autoconf -V or autoconf --version

  • -v, –verbose: Gives the verbosely report processing.
    autoconf -v filename or autoconf --verbose filename

  • -d, –debug: Makes sure to not remove any files that are temporary.
    autoconf -d filename or autoconf --debug filename

  • -o, –option: Saves the output in the FILE(stdout is default).
    autoconf -o filename or autoconf --option filename

  • -w, –warnings: Reports the warnings falling in the categories
    autoconf -w category or autoconf --warnings category

    The other warning categories are:

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.