forked from hpc/mpifileutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildme_autotools
executable file
·93 lines (84 loc) · 2.25 KB
/
buildme_autotools
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/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