Configure script
The introduction to this article provides insufficient context for those unfamiliar with the subject. Please help improve the article with a good introductory style. (October 2009) |
This article does not cite any references or sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. (March 2007) |
Configure scripts are an automated method of modifying source code before compilation in order to produce code tailored to the system on which a binary executable is to be compiled and run. Configure scripts are typically run immediately before compilation on the machine on which the software is to be used.
Configure scripts are generated by the Autotools suite of build management tools. These scripts query the system on which they run for environment settings, platform architecture, and the existence and location of required build and runtime dependencies. They then use the gathered information to process and fill out templates, customarily ending in .in
. After successful completion, it is common for configure scripts to print a report to the developer invoking them.
Because of the platform independence and broad developer experience with the configure script interface, many popular pieces of free software and proprietary software use this system during their system detection and makefile generation phase. After configure scripts have been created, building software that makes use of them is as simple as
./configure && make && make install
The reason you type "./configure" (dot slash configure) instead of just "configure" is to indicate explicitly that the script is in the current directory ("."). By default, Unix-type operating systems do not search the current directory for executables (this is a security feature), so you must get around this by giving the full path explicitly. If you don't, you will get an error like "bash: configure: command not found".[1]
Running ./configure --help should give a list of command line arguments accepted by the script, which are usually for enabling or disabling optional features of the software. Typing just ./configure gives the default configuration.[2]
Dependency checking
In new development, library dependency checking has been done in great part using pkg-config via the m4 macro, PKG_CHECK_MODULES. Before pkg-config's gained popularity, separate m4 macros were created to locate files known to be included in the distribution of libraries depended upon.
See also
References
Stub icon | This computer programming-related article is a stub. You can help Wikipedia by expanding it. |
If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...
- Pages with broken file links
- Wikipedia articles needing context from October 2009
- Articles with invalid date parameter in template
- All Wikipedia articles needing context
- Wikipedia introduction cleanup from October 2009
- Articles lacking sources from March 2007
- All articles lacking sources
- Compiling tools
- Unix programming tools
- Build automation
- Computer programming stubs