autoreconf command in Linux with examples Last Updated : 03 Jun, 2021 Comments Improve Suggest changes Like Article 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 Comment More infoAdvertise with us V VivekAgrawal3 Follow Improve Article Tags : Linux-Unix Similar Reads apt command in linux with examples apt provides a high-level Command Line Interface (CLI) for the APT package management system, offering a user-friendly interface intended for interactive use. It simplifies common tasks like installation, upgrades, and removal, with better defaults than more specialized tools like apt-get and apt-ca 5 min read apt-get command in Linux with Examples The command-line tool `apt-get` is the most popular package management tool used in our Debian-based Linux operating system. This article provides an overview of `apt-get` and its basic syntax. It will include the most commonly used commands, their syntax, description, and examples. It also gives an 15+ min read aptitude command in Linux with examples The aptitude command in Linux provides a user-friendly interface to interact with the machine's package manager. It functions similarly to a control panel, like in Windows, allowing you to install, upgrade, and remove packages. The command can be used in either a visual interface or directly via the 4 min read ar command in Linux with examples The 'ar' command in Linux is a versatile tool used for creating, modifying, and extracting files from archives. An archive is essentially a collection of files bundled together in a specific structure, making it easy to manage multiple files as a single entity. Each file within the archive is referr 5 min read arch command in Linux with examples The arch command is a simple yet powerful utility in Linux used to display the architecture of the system's hardware. By running this command, users can quickly determine the type of processor their system is running on, such as i386, x86_64, or arm. Knowing the architecture is crucial for installin 2 min read arp command in Linux with examples arp command manipulates the System's ARP cache. It also allows a complete dump of the ARP cache. ARP stands for Address Resolution Protocol. The primary function of this protocol is to resolve the IP address of a system to its mac address, and hence it works between level 2(Data link layer) and leve 2 min read aspell command in Linux with examples aspell command is used as a spell checker in Linux. Generally, it will scan the given files or anything from standard input then it check for misspellings. Finally, it allows the user to correct the words interactively. Spell checking is crucial when working with large documents, coding, or writing 3 min read atd command in Linux with examples atd is a job scheduler daemon that runs jobs scheduled for later execution. These jobs are one-time task(not recurring) at a specific time scheduled using 'at' or 'batch' utility. Syntax: atd [-l load_avg] [-b batch_interval] [-d] [-f] [-s] Options: -l : Specifies a limiting load factor, over which 2 min read atrm command in Linux with examples atrm command is used to remove the specified jobs. To remove a job, its job number is passed in the command. A user can only delete jobs that belong to him. Only superuser can delete any job even if that belongs to another user. Syntax: atrm [-V] job [job...] Options: -V : Used to print the version 1 min read atq command in linux with examples atq displays the list of pending jobs which are scheduled by the user. If the user is the superuser then the pending jobs of all the users will be displayed. The output lines display Job number, date, hour, queue, and username for each job. Syntax: atq [-V] [-q queue] Options: -V: It will display th 2 min read Like