#!/bin/csh

./configure \
 --prefix=$ISSM_DIR \
 --with-wrappers=no \
 --with-metis-dir=$ISSM_DIR/externalpackages/metis/install \
 --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
 --with-mpi-include=/u/local/intel/11.1/openmpi/1.4.5/include \
 --with-mpi-libflags="-L/u/local/intel/11.1/openmpi/1.4.5/include -lmpi" \
 --with-petsc-arch=$ISSM_ARCH \
 --with-plapack-lib="-L$ISSM_DIR/externalpackages/petsc/install/ -lPLAPACK" \
 --with-plapack-include="-I$ISSM_DIR/externalpackages/petsc/install/externalpackages/PLAPACKR32-hg/INCLUDE" \
 --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
 --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-blacs-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-graphics-lib=/usr/lib64/libX11.so \
 --with-cxxoptflags="-O3 -L/u/local/intel/11.1/openmpi/1.4.5/lib -lmpi -lmpi_f77 -lmpi_cxx"
