Content deleted Content added
Stevebroshar (talk | contribs) This is about GNU Build System; not something more general |
Kuromedayo (talk | contribs) m delete unnecessary newline |
||
(5 intermediate revisions by one other user not shown) | |||
Line 1:
{{Short description|
{{Lowercase title}}
Even though there are no standards for such a script, the pattern is so ubiquitous that many developers are familiar with and even expect a script named ''configure'' that has this functionality. The script can be and originally was hand-coded. Today, multiple tools are available for generating a configure script based on special configuration files. One commonly used tool is [[Autotools]] which generates a [[Bash (Unix shell)|Bash]] script.
▲As generated by the [[GNU Build System]], a '''configure script''' is an [[Bash (Unix shell)|Bash shell]] script that generates [[software build|build]] configuration files for a [[codebase]] to facilitate cross-platform support. It matches the [[Library (computer science)|libraries]] on the build host computer with those required by the codebase before the [[source code]] is [[compiler|compiled]].
Obtaining
== Use ==▼
# Generate build configuration files
▲Obtaining software directly from the source code is a common procedure on [[Unix]] and [[Unix-like]] environements. It generally involves the following steps:
▲# Compile the code
# Install the result to an accessible ___location
A configure script accomplishes the first step
▲== Use ==
After navigating a terminal to the directory that contains the source code, the following commands are typically executed:<ref>{{cite web |url=http://www.control-escape.com/linux/lx-swinstall-tar.html |title=Compiling Linux Software from Source Code |publisher=Control-Escape's Linux Help Engine |access-date=20 November 2010}}</ref>▼
▲After navigating a
<syntaxhighlight lang="sh">
Line 23:
</syntaxhighlight>
Often, a document with instructions is included with the codebase; often in a file named <code>INSTALL</code>.
== Generating ==
[[GNU Build System]] simplifies some of the the challenge of [[cross-platform software]] development.<ref>{{cite web |url=https://www.gnu.org/software/autoconf/ |title=Autoconf - GNU Project - Free Software Foundation (FSF) |publisher=GNU Operating System |access-date=20 November 2010}}</ref> These tools query the host system for environment settings, platform architecture, and the existence and ___location of required build and runtime dependencies. They store the gathered information in <code>configure.ac</code> or the now deprecated <code>configure.in</code> to be read by <code>configure</code> during the installation phase.▼
▲
In new development, library dependency checking
== History ==
The first program to come with a configure script was [[rn (newsreader)|rn]] by [[Larry Wall]] in 1984. The script was written by hand and produced a jocular running commentary when executed. It still survives as part of the build system of the '''trn''' program.<ref>{{cite web |url=https://github.com/acli/trn/blob/613a7e97aca06dd807fb225990fa804e8c744574/Configure|title= Configure script of trn |publisher=GitHub |access-date=10 December 2020}}</ref>
Since then, an ecosystem of
== References ==
|