Autotools

From ScorecWiki

Jump to: navigation, search

Contents

Download

Check the websites listed in the wget commands for the latest versions.

 mkdir autotools
 cd autotools
 wget http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
 tar -xzf autoconf-latest.tar.gz
 wget http://pogma.com/libtool/libtool-2.4.3a.tar.gz  # supports compiling for shared libraries with Intel 11.1 
 tar -xzf libtool-2.4.3a.tar.gz
 wget http://ftp.gnu.org/gnu/automake/automake-1.12.4.tar.gz
 tar -xzf automake-1.12.4.tar.gz
 wget http://ftp.gnu.org/gnu/m4/m4-latest.tar.gz
 tar -xzf m4-latest.tar.gz

Build

 export INSTALL_DIR=`pwd`/install
 export PATH=$INSTALL_DIR/bin:$PATH
 cd m4-*
 ./configure --prefix=$INSTALL_DIR
 make
 make install
 cd ../autoconf-*
 ./configure --prefix=$INSTALL_DIR
 make
 make install
 cd ../automake-*
 ./configure --prefix=$INSTALL_DIR
 make
 make install
 cd ../libtool-*
 ./configure --prefix=$INSTALL_DIR
 make
 make install

Setup Environment

 export AUTORECONF=`which autoreconf`
 export AUTOCONF=`which autoconf`
 export AUTOHEADER=`which autoheader`
 export AUTOMAKE=`which automake`
 export ACLOCAL=`which aclocal`
 export LIBTOOLIZE=`which libtoolize`

Test

 cd ..
 mkdir test
 cd test  
 svn co http://redmine.scorec.rpi.edu/anonsvn/ipcomman/trunk ipcomman
 cd ipcomman
 svn co http://redmine.scorec.rpi.edu/anonsvn/buildutil/trunk/GNUautoTools/m4Macros m4
 autoreconf -fi

A configure script should be created which can be used towards building IpComMan.

Personal tools