#!/bin/sh

#mpich  1.5
#petsc  3.3
#python 2.7

./configure \
	--prefix="$ISSM_DIR" \
	--with-matlab-dir="$ISSM_DIR/externalpackages/matlab/install" \
	--with-triangle-dir="$ISSM_DIR/externalpackages/triangle/install" \
	--with-python-dir="$ISSM_DIR/externalpackages/python/install" \
	--with-python-numpy-dir="$ISSM_DIR/externalpackages/python/install/lib/python2.7/site-packages/numpy/core/include/numpy" \
	--with-mpi-include="$ISSM_DIR/externalpackages/mpich2/install/include"  \
	--with-mpi-lib="$ISSM_DIR/externalpackages/mpich2/install/lib/libpmpich.a $ISSM_DIR/externalpackages/mpich2/install/lib/libmpich.a $ISSM_DIR/externalpackages/mpich2/install/lib/libmpl.a " \
	--with-chaco-dir="$ISSM_DIR/externalpackages/chaco/install" \
	--with-fortran-lib="/usr/local/gfortran/lib/libgfortran.a" \
	--with-graphics-lib="-L/usr/X11R6/lib -lX11" \
	--with-petsc-dir="$ISSM_DIR/externalpackages/petsc/install" \
	--with-petsc-arch="$ISSM_ARCH" \
	--with-blas-lapack-dir="$ISSM_DIR/externalpackages/petsc/install" \
	--with-blacs-dir="$ISSM_DIR/externalpackages/petsc/install/" \
	--with-scalapack-dir="$ISSM_DIR/externalpackages/petsc/install/" \
	--with-mumps-dir="$ISSM_DIR/externalpackages/petsc/install/" \
	--with-metis-dir="$ISSM_DIR/externalpackages/petsc/src/externalpackages/metis-5.0.2-p3" \
	--with-numthreads=16
