Autotools

From Parts
Revision as of 13:10, 15 March 2012 by Jhammond (talk | contribs) (Created page with "Some people need special versions of autotools (autoconf, automake, libtool) because they work on a code that is obtained from a source repository or for whatever reason does not…")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Some people need special versions of autotools (autoconf, automake, libtool) because they work on a code that is obtained from a source repository or for whatever reason does not have configure already.

The default versions of autoconf and automake may not work for all codes, e.g. MPICH2. The following script solves this problem, once you modify DIR, of course.

#!/bin/bash -v

DIR=/dev/null

cd ${DIR}
wget http://ftp.gnu.org/gnu/m4/m4-1.4.12.tar.gz
tar -xzf m4-1.4.12.tar.gz
cd $DIR/m4-1.4.12/
./configure --prefix=$DIR CC=/usr/bin/gcc && make -j4 && make install

cd ${DIR}
wget http://ftp.gnu.org/gnu/libtool/libtool-2.2.8.tar.gz
tar -xzf libtool-2.2.8.tar.gz
cd $DIR/libtool-2.2.8/
./configure --prefix=$DIR CC=/usr/bin/gcc M4=$DIR/bin/m4 && make -j4 && make install

cd ${DIR}
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz
tar -xzf autoconf-2.68.tar.gz
cd $DIR/autoconf-2.68/
./configure --prefix=$DIR CC=/usr/bin/gcc M4=$DIR/bin/m4 && make -j4 && make install

cd ${DIR}
wget http://ftp.gnu.org/gnu/automake/automake-1.11.1.tar.gz
tar -xzf automake-1.11.1.tar.gz
cd $DIR/automake-1.11.1/
./configure --prefix=$DIR CC=/usr/bin/gcc M4=$DIR/bin/m4 && make -j4 && make install

cd ${DIR}
rm -f autoconf-2.68.tar.gz automake-1.11.1.tar.gz libtool-2.2.8.tar.gz m4-1.4.12.tar.gz
rm -rf autoconf-2.68 automake-1.11.1 libtool-2.2.8 m4-1.4.12