autoreconf command in Linux with examples Last Updated : 03 Jun, 2021 Comments Improve Suggest changes 5 Likes Like Report 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: configure.ac : Describes configuration for autoreconf.Makefile.am : Describes sources of program files and compiler flags for automake.Step 1: Make a directory and a C program file. Hello, World Program #include void main() { printf("Hello, World"); } Step 2: Make a configure.ac file for autoreconf. # initialize the process AC_INIT([hello], [0.01]) # make config headers AC_CONFIG_HEADERS([config.h]) #Auxiliary files go here AC_CONFIG_AUX_DIR([build-aux]) # init automake AM_INIT_AUTOMAKE([1.11]) #configure and create "Makefile" AC_CONFIG_FILES([Makefile]) #find and probe C compiler AC_PROG_CC #End AC_OUTPUT Step 3: Make a Makefile.am for automake. #list of programs to be installed in bin directory bin_PROGRAMS = hello #sources for targets hello_SOURCES = hello.c Step 4: Run the following commands on terminal. It will give an error because it is for distribution purpose and VCS(Version Control System) should have some standard license files. Step 5: Lets make license files. Step 6: Retry Step 6: Now, Let's run the program. See, now Hello, World is printed on the screen Create Quiz Comment V VivekAgrawal3 Follow 5 Improve V VivekAgrawal3 Follow 5 Improve Article Tags : Linux-Unix Explore Linux/Unix Tutorial 5 min read Getting Started with LinuxWhat is Linux Operating System 8 min read LINUX Full Form - Lovable Intellect Not Using XP 2 min read Difference between Linux and Windows 7 min read What are Linux Distributions ? 8 min read Difference between Unix and Linux 5 min read Installation with LinuxHow to Install Arch Linux in VirtualBox? 7 min read Fedora Linux Operating System 12 min read How to install Ubuntu on VirtualBox? 6 min read How to Install Linux Mint? 3 min read How to Install Kali Linux on Windows? 2 min read How to Install Linux on Windows PowerShell Subsystem? 2 min read How to Find openSUSE Linux Version? 2 min read How to Install CentOS 2 min read Linux CommandsLinux Commands 15+ min read Essential Unix Commands 7 min read Find Command in Linux with Examples 7 min read Linux File SystemLinux File System 12 min read Linux File Hierarchy Structure 5 min read Linux Directory Structure 6 min read Linux KernelLinux Kernel 4 min read Kernel in Operating System 3 min read How Linux Kernel Boots? 11 min read Difference between Operating System and Kernel 3 min read Linux Kernel Module Programming: Hello World Program 7 min read Linux Loadable Kernel Module 7 min read Loadable Kernel Module - Linux Device Driver Development 4 min read Linux Networking ToolsNetwork configuration and troubleshooting commands in Linux 5 min read How to configure network interfaces in CentOS? 5 min read Command-Line Tools and Utilities For Network Management in Linux 8 min read Linux - Network Monitoring Tools 4 min read Linux ProcessProcesses in Linux/Unix 5 min read How to Manage Process in Linux 4 min read Getting System and Process Information Using C Programming and Shell in Linux 2 min read Process states and Transitions in a UNIX Process 4 min read Linux FirewallLINUX Firewall 7 min read iptables command in Linux with Examples 7 min read How to Configure your Linux Firewall - 3 Methods 12 min read Shell Scripting & Bash ScriptingIntroduction to Linux Shell and Shell Scripting 7 min read What is Terminal, Console, Shell and Kernel? 5 min read How to Create a Shell Script in linux 7 min read Shell Scripting - Different types of Variables 4 min read Bash Scripting - Introduction to Bash and Bash Scripting 12 min read Bash Script - Define Bash Variables and its types 12 min read Shell Scripting - Shell Variables 6 min read Bash Script - Difference between Bash Script and Shell Script 4 min read Shell Scripting - Difference between Korn Shell and Bash shell 3 min read Shell Scripting - Interactive and Non-Interactive Shell 3 min read Shell Script to Show the Difference Between echo â$SHELLâ and echo â$SHELLâ 4 min read Like