<!ELEMENT configure ((param | prefix)*)> <!ATTLIST configure base CDATA #IMPLIED command CDATA #IMPLIED>
This element occurs in : Element : <alfs> | Element: <stage>
See also : Element: <param> | Element: <prefix>
The element configure is one of the top-level operation elements. The element configure is used to describe the command configure.
When processing the element, one executes the command ./configure with the parameter(s) and prefix(es) specified.
The attribute base allows you to specify the directory in which the command is executed. See Element : <base>.
The attribute command allows you to specify a custom command if you don't want to use the default ./configure. This is extremely useful when running ./configure in a build directory outside the main source directory. The packages gcc and glibc often require this.
This first example calls configure without any parameters :
<configure base="/usr/src/mypackage/"> </configure>
The equivalent bash script is :
echo Executing configure cd /usr/src/mypackage/ ./configure
This second example calls configure with a parameter :
<configure base="/usr/src/mypackage/"> <prefix>CFLAGS="..."<prefix> <prefix>CXXFLAGS="..."<prefix> <param>--prefix=/opt/mypackage</param> </configure>
The equivalent bash script is :
echo Executing configure cd /usr/src/mypackage/ ./configure --prefix=/opt/mypackage
This third example calls configure with a parameter and uses prefix :
<configure base="/usr/src/mypackage/"> <prefix>PATH=/usr/local/bin</prefix> <param>--prefix=/opt/mypackage</param> </configure>
The equivalent bash script is :
echo Executing configure cd /usr/src/mypackage/ PATH=/usr/local/bin ./configure --prefix=/opt/mypackage
This fourth example calls configure with a parameter and an explicit command (same result as example #3) :
<configure base="/usr/src/mypackage/" command="PATH=/usr/local/bin ./configure"> <param>--prefix=/opt/mypackage</param> </configure>
The equivalent bash script is :
echo Executing configure cd /usr/src/mypackage/ PATH=/usr/local/bin ./configure --prefix=/opt/mypackage