#!/bin/csh

./configure \
 --prefix=$ISSM_DIR \
 --with-modules=no \
 --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
 --with-metis-dir=$ISSM_DIR/externalpackages/petsc/src/externalpackages/metis-5.0.2-p3 \
 --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
 --with-tao-dir=$ISSM_DIR/externalpackages/tao/install \
 --with-mpi-include=/nasa/sgi/mpt/2.04/include \
 --with-mpi-lib="-L/nasa/sgi/mpt/2.04/lib/ -lmpi -lpthread -lgfortran" \
 --with-petsc-arch=$ISSM_ARCH \
 --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install \
 --with-mkl-dir=/nasa/intel/mkl/10.0.011/lib/64/ \
 --with-plapack-lib="-L$ISSM_DIR/externalpackages/petsc/install/ -lPLAPACK" \
 --with-plapack-include="-I$ISSM_DIR/externalpackages/petsc/src/externalpackages/PLAPACKR32-hg/INCLUDE" \
 --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-blacs-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-spai-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-hypre-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-prometheus-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-superlu-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-spooles-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-pastix-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-graphics-lib=/usr/lib64/libX11.so \
 --with-cxxoptflags="-O3 -xS" \
 --with-vendor=intel-pleiades
