#!/bin/bash

#Some cleanup
rm -rf install valgrind-3.7.0
mkdir install

#Untar 
tar -jxvf  valgrind-3.7.0.tar.bz2

#Move valgrind into install directory
mv valgrind-3.7.0/* install
rm -rf valgrind-3.7.0

#configure
cd install
./configure  --prefix="$ISSM_DIR/externalpackages/valgrind/install" --enable-only64bit

#Compile valgrind
make  -j 4
make install
