#!/bin/bash

#version of autoconf
version=`echo *.tar.gz | sed 's/\.tar\.gz//g' | sed 's/autoconf-//g'`
echo $version

#Some cleanup
rm -rf install autoconf-$version src

#Create install directories
mkdir install

#Untar 
tar -zxvf  autoconf-$version.tar.gz

#Move autoconf into src directory
mv autoconf-$version src

#Compile autoconf
cd src 
./configure --prefix="$ISSM_DIR/devpackages/autoconf/install" 
make  
make install
