Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does a typical ./configure do in Linux?

Why is it necessary though everything is specified in a makefile ?

like image 430
Mask Avatar asked Mar 27 '10 14:03

Mask


People also ask

What does configure do in Linux?

A configuration file, also known as a config file, is a local file that controls the operations of a program, utility or process. Linux configuration files contain the settings and instructions for different systems, utilities, applications and processes.

What does a configure program do?

A configure script is an executable script designed to aid in developing a program to be run on a wide number of different computers. It matches the libraries on the user's computer, with those required by the program before compiling it from its source code.

What does configure do in Unix?

configure is normally a (generated) shell script which is packaged in Unix-based applications and is used to detect certain machine settings and set up needed files for make to do its job. Look for a configure. bat or a file called configure in the QT directory and run it.

What can I do with configure AC?

The configure.ac file is used to create the ./configure script. It consists of a series of macros which are processed and expanded by autoconf . These macros can check for packages and libraries, handle --enable and --with switches, and generate various files.

What does configure && make && make install do?

configure checks the dependencies for building the package and finds out a way to invoke them. make default for make all builds the package by reading configuration template in Makefile / Makefile.in . The process of configure in the first step spits out a custom Makefile specific to your machine.

What is Autoreconf used for?

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.


1 Answers

Typically the configure script when run will:

  • Check some details about the machine on which the software is going to be installed. This script checks for lots of dependencies on your system. For the particular software to work properly, it may be requiring a lot of things to be existing on your machine already. If any of the major requirements are missing on your system, the configure script would exit and you cannot proceed with the installation, until you get those required things.

  • Create the Makefile to be used in the next step.

like image 149
codaddict Avatar answered Sep 20 '22 15:09

codaddict