e.g.
./configure --prefix=${BASEPREFIX}/`echo "${HOSTS}" --disable-tests | awk '{print $1;}'`
Appreciate your reply, but won't that end up putting the configure flag inside the substitution?
# Extract the release tarball into a dir for each host and build
for i in ${HOSTS}; do
export PATH=${BASEPREFIX}/${i}/native/bin:${ORIGPATH}
mkdir -p distsrc-${i}
cd distsrc-${i}
INSTALLPATH=`pwd`/installed/${DISTNAME}
mkdir -p ${INSTALLPATH}
tar --strip-components=1 -xf ../$SOURCEDIST
./configure --prefix=${BASEPREFIX}/${i} --bindir=${INSTALLPATH}/bin --includedir=${INSTALLPATH}/include --libdir=${INSTALLPATH}/lib --disable-ccache --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS}
Edit: Actually, I don't think you need it in the first configure, you need it in the second. The first one just creates the source tarball, the second one is the one that builds it.