# install esft ver 1.0.4 in /share/apps/etsf_io/1.0.4 

## execute as su

#! /bin/bash

cd /share/apps/configrepo

mkdir /share/apps/configrepo/install_etsf_io-1.0.4
cd /share/apps/configrepo/install_etsf_io-1.0.4

wget http://www2.fizik.usm.my/configrepo/howto/customise_centos/etsf/etsf_io-1.0.4.tar.gz

tar -zxvf etsf_io-1.0.4.tar.gz

cd etsf_io-1.0.4

./configure --prefix=/share/apps/etsf_io/1.0.4/gnu CC=/share/apps/openmpi-1.8.5/gcc/bin/mpicc CXX=/share/apps/openmpi-1.8.5/gcc/bin/mpic++ FC=/share/apps/openmpi-1.8.5/gcc/bin/mpif90 F77=/share/apps/openmpi-1.8.5/gcc/bin/mpif77 --with-netcdf-libs='-L/share/apps/netcdf/4.3.3.1/lib -lnetcdf -lnetcdff -lpnetcdf' --with-netcdf-incs=-I/share/apps/netcdf/4.3.3.1/include --enable-build-tutorials

make 
make install
