Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 94 lines (84 sloc) 2.25 KB
#!/bin/bash
set -x
topdir=`pwd`
# if EA is set to true then add configure option
EA=false
build_type=""
if $EA ; then
# build line option required if building for EA systems
build_type="powerpc64le-redhat-linux-gnu"
fi
## create directory to download and build autotools
mkdir autotools
pushd autotools
# clean out our autotools install directory
toolsinstalldir=${topdir}/autotools/install
rm -rf $toolsinstalldir
# add autotools install bin to our path
export PATH=${toolsinstalldir}/bin:$PATH
# build autoconf
if [ ! -f autoconf-2.69.tar.gz ] ; then
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
fi
rm -rf autoconf-2.69
tar -zxf autoconf-2.69.tar.gz
pushd autoconf-2.69
./configure --build=${build_type} \
--prefix=$toolsinstalldir && \
make && \
make install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install autoconf"
exit 1
fi
popd
# build automake
if [ ! -f automake-1.13.tar.gz ] ; then
wget http://ftp.gnu.org/gnu/automake/automake-1.13.tar.gz
fi
rm -rf automake-1.13
tar -zxf automake-1.13.tar.gz
pushd automake-1.13
./configure --build=${build_type} \
--prefix=$toolsinstalldir && \
make && \
make install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install automake"
exit 1
fi
popd
# build libtool
if [ ! -f libtool-2.4.tar.gz ] ; then
wget http://mirror.team-cymru.org/gnu/libtool/libtool-2.4.tar.gz
fi
rm -rf libtool-2.4
tar -zxf libtool-2.4.tar.gz
pushd libtool-2.4
./configure --build=${build_type} \
--prefix=$toolsinstalldir && \
make && \
make install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install libtool"
exit 1
fi
popd
# build pkg-config
if [ ! -f pkg-config-0.28.tar.gz ] ; then
wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
fi
rm -rf pkg-config-0.28
tar -zxf pkg-config-0.28.tar.gz
pushd pkg-config-0.28
./configure --with-internal-glib \
--build=${build_type} \
--prefix=$toolsinstalldir && \
make && \
make install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install pkg-config"
exit 1
fi
popd
popd