autoreconf command in Linux with examples

autoreconf is a Autotool which is used to create automatically buildable source code for Unix-like systems. Autotool is a common name for autoconf, automake, etc. These all together are termed as Autotools.

Important Points:

  • Provides Portability of source code packages by automatic buildable capability.
  • Provides common build facilities like make install.
  • Automatic dependency generation for C/C++.

Syntax:

autoreconf [OPTION]... [DIRECTORY]...

Options:

  • -h, –help : Print the help message and exit.
  • -V, –version : Used to show the version number, and then exit.
  • -v, –verbose : Verbosely report processing.
  • -d, –debug : Don’t remove temporary files.
  • -f, –force : This option is used to consider all files obsolete.
  • -i, –install : Copy missing auxiliary files.
  • –no-recursive : Don’t rebuild sub-packages.
  • -s, –symlink : With -i option it is used to install symbolic links instead of copies.
  • -m, –make : When applicable, re-run ./configure && make.

Note: Autotools are used to make automatically buildable source code for distribution purpose.

Important Configuration Files: