Index: /issm/trunk/externalpackages/dakota/configs/astrid/configure.sh
===================================================================
--- /issm/trunk/externalpackages/dakota/configs/astrid/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/dakota/configs/astrid/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./configure --prefix="$ISSM_TIER/externalpackages/dakota/install" --without-graphics  --with-pic --disable-mpi --with-blas=/usr/lib64/libblas.so.3.0.3 --with-lapack=/usr/lib64/liblapack.so.3.0.3
Index: /issm/trunk/externalpackages/dakota/configs/maceric/configure.sh
===================================================================
--- /issm/trunk/externalpackages/dakota/configs/maceric/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/dakota/configs/maceric/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./configure --prefix="$ISSM_TIER/externalpackages/dakota/install" --without-graphics  --with-pic --disable-mpi 
Index: /issm/trunk/externalpackages/graphviz/configs/macmathieu/configure.sh
===================================================================
--- /issm/trunk/externalpackages/graphviz/configs/macmathieu/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/graphviz/configs/macmathieu/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./configure --prefix="$ISSM_TIER/externalpackages/graphviz/install"
Index: /issm/trunk/externalpackages/metis/configs/astrid/Makefile.in.patch
===================================================================
--- /issm/trunk/externalpackages/metis/configs/astrid/Makefile.in.patch	(revision 8164)
+++ /issm/trunk/externalpackages/metis/configs/astrid/Makefile.in.patch	(revision 8164)
@@ -0,0 +1,10 @@
+3,5c3
+< CC = gcc
+< OBJ_EXT=o
+< LIB_EXT=a
+---
+> CC = cc
+8c6
+< OPTFLAGS = -DLINUX -fPIC
+---
+> OPTFLAGS = -O2 
Index: /issm/trunk/externalpackages/metis/configs/cosmos/Makefile.in.patch
===================================================================
--- /issm/trunk/externalpackages/metis/configs/cosmos/Makefile.in.patch	(revision 8164)
+++ /issm/trunk/externalpackages/metis/configs/cosmos/Makefile.in.patch	(revision 8164)
@@ -0,0 +1,10 @@
+3,5c3
+< CC = icc
+< OBJ_EXT=o
+< LIB_EXT=a
+---
+> CC = cc
+8c6
+< OPTFLAGS = -DLINUX -fPIC
+---
+> OPTFLAGS = -O2 
Index: /issm/trunk/externalpackages/metis/configs/macmathieu/Makefile.in.patch
===================================================================
--- /issm/trunk/externalpackages/metis/configs/macmathieu/Makefile.in.patch	(revision 8164)
+++ /issm/trunk/externalpackages/metis/configs/macmathieu/Makefile.in.patch	(revision 8164)
@@ -0,0 +1,10 @@
+3,5c3
+< CC = gcc
+< OBJ_EXT=o
+< LIB_EXT=a
+---
+> CC = cc
+8c6
+< OPTFLAGS = -DLINUX
+---
+> OPTFLAGS = -O2  -m64
Index: /issm/trunk/externalpackages/metis/configs/ogive/Makefile.in.patch
===================================================================
--- /issm/trunk/externalpackages/metis/configs/ogive/Makefile.in.patch	(revision 8164)
+++ /issm/trunk/externalpackages/metis/configs/ogive/Makefile.in.patch	(revision 8164)
@@ -0,0 +1,10 @@
+3,5c3
+< CC = gcc
+< OBJ_EXT=o
+< LIB_EXT=a
+---
+> CC = cc
+8c6
+< OPTFLAGS = -DLINUX
+---
+> OPTFLAGS = -O2 
Index: /issm/trunk/externalpackages/metis/configs/wineric/Makefile.in.patch
===================================================================
--- /issm/trunk/externalpackages/metis/configs/wineric/Makefile.in.patch	(revision 8164)
+++ /issm/trunk/externalpackages/metis/configs/wineric/Makefile.in.patch	(revision 8164)
@@ -0,0 +1,10 @@
+3,5c3
+< CC = icl
+< OBJ_EXT=obj
+< LIB_EXT=lib
+---
+> CC = cc
+8c6
+< OPTFLAGS = -DWIN32 -D__VC__
+---
+> OPTFLAGS = -O2 
Index: /issm/trunk/externalpackages/mpich2/configs/1.3.1/astrid/configure.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/1.3.1/astrid/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/1.3.1/astrid/configure.sh	(revision 8164)
@@ -0,0 +1,4 @@
+#!/bin/bash
+export CFLAGS="$CFLAGS -fPIC"
+export FFLAGS="$FFLAGS -fPIC"
+./configure --prefix="$ISSM_TIER/externalpackages/mpich2/install" --enable-shared --enable-sharedlibs=gcc --enable-f91=gfortran 
Index: /issm/trunk/externalpackages/mpich2/configs/1.3.1/macmathieu/configure.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/1.3.1/macmathieu/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/1.3.1/macmathieu/configure.sh	(revision 8164)
@@ -0,0 +1,19 @@
+#!/bin/bash
+export CFLAGS=" -arch i386"
+export CXXFLAGS=" -arch i386"
+export CPPFLAGS=" -arch i386"
+export FFLAGS=" -arch i386"
+./configure --prefix="$ISSM_TIER/externalpackages/mpich2/install" --enable-f91=gfortran --enable-sharedlibs=osx-gcc --enable-shared --enable-fc=/usr/local/bin/gfortran
+
+#CFLAGS      C compiler flags
+#LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
+#nonstandard directory <lib dir>
+#CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
+#headers in a nonstandard directory <include dir>
+#F77         Fortran 77 compiler command
+#FFLAGS      Fortran 77 compiler flags
+#F90         Fortran 90 compiler command
+#F90FLAGS    Fortran 90 compiler flags
+#CXX         C++ compiler command
+#CXXFLAGS    C++ compiler flags
+#CPP         C preprocessor
Index: /issm/trunk/externalpackages/mpich2/configs/astrid/Examples.Makefile.patch
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/astrid/Examples.Makefile.patch	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/astrid/Examples.Makefile.patch	(revision 8164)
@@ -0,0 +1,6 @@
+72,73c72,73
+< cpi: cpi.o   ../lib/lib${MPILIBNAME}.a
+< 	$(C_LINK) $(LDFLAGS) -o cpi cpi.o  -lm ${LIBS}
+---
+> cpi: cpi.o   ../lib/lib${MPILIBNAME}.a 
+> 	$(C_LINK) $(LDFLAGS) -o cpi cpi.o  -lm ${LIBS} ../lib/libmpich.a
Index: /issm/trunk/externalpackages/mpich2/configs/astrid/configure.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/astrid/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/astrid/configure.sh	(revision 8164)
@@ -0,0 +1,4 @@
+#!/bin/bash
+export CFLAGS="$CFLAGS -fPIC"
+export FFLAGS="$FFLAGS -fPIC"
+./configure --prefix="$ISSM_TIER/externalpackages/mpich2/install" --enable-sharedlibs=gcc --enable-f91=gfortran 
Index: /issm/trunk/externalpackages/mpich2/configs/astrid/mpicxx.h.patch
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/astrid/mpicxx.h.patch	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/astrid/mpicxx.h.patch	(revision 8164)
@@ -0,0 +1,12 @@
+26c26
+< //#error "SEEK_SET is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_SET is #defined but must not be for the C++ binding of MPI"
+30c30
+< //#error "SEEK_CUR is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_CUR is #defined but must not be for the C++ binding of MPI"
+35c35
+< //#error "SEEK_END is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_END is #defined but must not be for the C++ binding of MPI"
Index: /issm/trunk/externalpackages/mpich2/configs/maceric/Examples.Makefile.patch
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/maceric/Examples.Makefile.patch	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/maceric/Examples.Makefile.patch	(revision 8164)
@@ -0,0 +1,6 @@
+72,73c72,73
+< cpi: cpi.o   ../lib/lib${MPILIBNAME}.a
+< 	$(C_LINK) $(LDFLAGS) -o cpi cpi.o  -lm ${LIBS}
+---
+> cpi: cpi.o   ../lib/lib${MPILIBNAME}.a 
+> 	$(C_LINK) $(LDFLAGS) -o cpi cpi.o  -lm ${LIBS} ../lib/libmpich.a
Index: /issm/trunk/externalpackages/mpich2/configs/maceric/configure.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/maceric/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/maceric/configure.sh	(revision 8164)
@@ -0,0 +1,4 @@
+#!/bin/bash
+export CFLAGS=" -arch i386"
+export FFLAGS=" -arch i386"
+./configure --prefix="$ISSM_TIER/externalpackages/mpich2/install" --enable-f91=gfortran --enable-sharedlibs=osx-gcc
Index: /issm/trunk/externalpackages/mpich2/configs/maceric/mpicxx.h.patch
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/maceric/mpicxx.h.patch	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/maceric/mpicxx.h.patch	(revision 8164)
@@ -0,0 +1,12 @@
+26c26
+< //#error "SEEK_SET is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_SET is #defined but must not be for the C++ binding of MPI"
+30c30
+< //#error "SEEK_CUR is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_CUR is #defined but must not be for the C++ binding of MPI"
+35c35
+< //#error "SEEK_END is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_END is #defined but must not be for the C++ binding of MPI"
Index: /issm/trunk/externalpackages/mpich2/configs/ogive/Examples.Makefile.patch
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/ogive/Examples.Makefile.patch	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/ogive/Examples.Makefile.patch	(revision 8164)
@@ -0,0 +1,6 @@
+72,73c72,73
+< cpi: cpi.o   ../lib/lib${MPILIBNAME}.a
+< 	$(C_LINK) $(LDFLAGS) -o cpi cpi.o  -lm ${LIBS}
+---
+> cpi: cpi.o   ../lib/lib${MPILIBNAME}.a 
+> 	$(C_LINK) $(LDFLAGS) -o cpi cpi.o  -lm ${LIBS} ../lib/libmpich.a
Index: /issm/trunk/externalpackages/mpich2/configs/ogive/configure.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/ogive/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/ogive/configure.sh	(revision 8164)
@@ -0,0 +1,3 @@
+#!/bin/bash
+export CFLAGS=" -m32"
+./configure --prefix="$ISSM_TIER/externalpackages/mpich2/install" --enable-f91=gfortran --enable-sharedlibs=osx-gcc
Index: /issm/trunk/externalpackages/mpich2/configs/ogive/mpicxx.h.patch
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/ogive/mpicxx.h.patch	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/ogive/mpicxx.h.patch	(revision 8164)
@@ -0,0 +1,12 @@
+26c26
+< //#error "SEEK_SET is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_SET is #defined but must not be for the C++ binding of MPI"
+30c30
+< //#error "SEEK_CUR is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_CUR is #defined but must not be for the C++ binding of MPI"
+35c35
+< //#error "SEEK_END is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_END is #defined but must not be for the C++ binding of MPI"
Index: /issm/trunk/externalpackages/mpich2/configs/wineric/Examples.Makefile.patch
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/wineric/Examples.Makefile.patch	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/wineric/Examples.Makefile.patch	(revision 8164)
@@ -0,0 +1,6 @@
+72,73c72,73
+< cpi: cpi.o   ../lib/lib${MPILIBNAME}.a
+< 	$(C_LINK) $(LDFLAGS) -o cpi cpi.o  -lm ${LIBS}
+---
+> cpi: cpi.o   ../lib/lib${MPILIBNAME}.a 
+> 	$(C_LINK) $(LDFLAGS) -o cpi cpi.o  -lm ${LIBS} ../lib/libmpich.a
Index: /issm/trunk/externalpackages/mpich2/configs/wineric/configure.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/wineric/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/wineric/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./configure --prefix="$ISSM_TIER/externalpackages/mpich2/install" 
Index: /issm/trunk/externalpackages/mpich2/configs/wineric/mpicxx.h.patch
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/wineric/mpicxx.h.patch	(revision 8164)
+++ /issm/trunk/externalpackages/mpich2/configs/wineric/mpicxx.h.patch	(revision 8164)
@@ -0,0 +1,12 @@
+26c26
+< //#error "SEEK_SET is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_SET is #defined but must not be for the C++ binding of MPI"
+30c30
+< //#error "SEEK_CUR is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_CUR is #defined but must not be for the C++ binding of MPI"
+35c35
+< //#error "SEEK_END is #defined but must not be for the C++ binding of MPI"
+---
+> #error "SEEK_END is #defined but must not be for the C++ binding of MPI"
Index: /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/astrid/configure.sh
===================================================================
--- /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/astrid/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/astrid/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./config/configure.py  --prefix="$ISSM_TIER/externalpackages/petsc/install" --with-mpi-dir=$ISSM_TIER/externalpackages/mpich2/install --PETSC_ARCH=linux-gnu-amd64 --PETSC_DIR="$ISSM_TIER/externalpackages/petsc/install" --with-fc=gfortran --with-debugging=1 --with-shared=0 --download-mumps=yes --download-scalapack=yes --download-blacs=yes --download-blas=yes --download-f-blas-lapack=yes --FFLAGS=-I$ISSM_TIER/externalpackages/mpich2/install/include --download-plapack=yes --COPTFLAGS="-march=opteron -O2" --FOPTFLAGS="-march=opteron -O2" --CXXOPTFLAGS="-march=opteron -O2" 
Index: /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/cosmos/configure.sh
===================================================================
--- /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/cosmos/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/cosmos/configure.sh	(revision 8164)
@@ -0,0 +1,3 @@
+PETSC_DIR=$ISSM_TIER/externalpackages/petsc/install
+
+./config/configure.py  --prefix=$PETSC_DIR --with-batch=1  --ISSM_ARCH=$ISSM_ARCH --PETSC_DIR=$PETSC_DIR   --with-debugging=no COPTFLAGS=-O3 FOPTFLAGS=-O3 --with-blas-lapack-dir=/opt/intel/mkl/10.0.5.025/ --with-mpi-dir=/opt/mpich/gm/intel10.1/  --download-mumps=yes --download-scalapack=yes --download-blacs=yes  --download-plapack=yes --FFLAGS=-I/usr/include  --with-mpi-shared=0
Index: /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/maceric/configure.sh
===================================================================
--- /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/maceric/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/maceric/configure.sh	(revision 8164)
@@ -0,0 +1,6 @@
+#!/bin/bash
+#Before MUMPS crashe with -DWport complaints
+#./config/configure.py  --prefix="$ISSM_TIER/externalpackages/petsc/install" --with-mpi-dir=$ISSM_TIER/externalpackages/mpich2/install --PETSC_ARCH=macosx-gnu --PETSC_DIR="$ISSM_TIER/externalpackages/petsc/install" --with-fc=/usr/local/bin/gfortran --with-debugging=0 --with-shared=0 --download-mumps=yes --download-scalapack=yes --download-blacs=yes --download-blas=yes --download-f-blas-lapack=yes --FFLAGS="-I$ISSM_TIER/externalpackages/mpich2/install/include -L$ISSM_TIER/externalpackages/mpich2/install/lib -L/usr/local/bin -lmpich -lpmpich -lgfortran  -fPIC -arch i386" --download-plapack=yes --CXXFLAGS=" -fPIC -arch i386" --CFLAGS=" -fPIC -arch i386" --with-pic --with-fc="gfortran -arch i386 " --LDFLAGS="-arch i386"
+
+#After you have compiled mumps (see faq on howto)
+./config/configure.py  --prefix="$ISSM_TIER/externalpackages/petsc/install" --with-mpi-dir=$ISSM_TIER/externalpackages/mpich2/install --PETSC_ARCH=macosx-gnu --PETSC_DIR="$ISSM_TIER/externalpackages/petsc/install" --with-fc=/usr/local/bin/gfortran --with-debugging=0 --with-shared=0 --with-mumps-dir=$ISSM_TIER/externalpackages/petsc/install/externalpackages/MUMPS_4.6.3  --download-scalapack=yes --download-blacs=yes --download-blas=yes --download-f-blas-lapack=yes --FFLAGS="-I$ISSM_TIER/externalpackages/mpich2/install/include -L$ISSM_TIER/externalpackages/mpich2/install/lib -L/usr/local/bin -lmpich -lpmpich -lgfortran  -fPIC -arch i386" --download-plapack=yes --CXXFLAGS=" -fPIC -arch i386" --CFLAGS=" -fPIC -arch i386" --with-pic --with-fc="gfortran -arch i386 " --LDFLAGS="-arch i386"
Index: /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/ogive/configure.sh
===================================================================
--- /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/ogive/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/ogive/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./config/configure.py  --prefix="$ISSM_TIER/externalpackages/petsc/install" --with-mpi-dir=$ISSM_TIER/externalpackages/mpich2/install --PETSC_ARCH=macosx-gnu --PETSC_DIR="$ISSM_TIER/externalpackages/petsc/install" --with-fc=/usr/local/bin/gfortran --with-debugging=0 --with-shared=0 --download-mumps=yes --download-scalapack=yes --download-blacs=yes --download-blas=yes --download-f-blas-lapack=yes --FFLAGS="-I$ISSM_TIER/externalpackages/mpich2/install/include -L$ISSM_TIER/externalpackages/mpich2/install/lib -L/usr/local/bin -lmpich -lpmpich -lgfortran" --download-plapack=yes
Index: /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/wineric/configure.sh
===================================================================
--- /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/wineric/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/petsc/configs/2.3.2-p3/wineric/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./config/configure.py  --with-parallel-no --prefix="$ISSM_TIER/externalpackages/petsc/install" --PETSC_ARCH=cygwin-intel --PETSC_DIR="$ISSM_TIER/externalpackages/petsc/install" --with-debugging=0 --with-mpi=0 --download-c-blas-lapack=1
Index: /issm/trunk/externalpackages/petsc/configs/3.1-p7/astrid/configure.sh
===================================================================
--- /issm/trunk/externalpackages/petsc/configs/3.1-p7/astrid/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/petsc/configs/3.1-p7/astrid/configure.sh	(revision 8164)
@@ -0,0 +1,20 @@
+#!/bin/bash
+./config/configure.py \
+ --prefix="$ISSM_TIER/externalpackages/petsc/install" \
+ --with-mpi-dir=$ISSM_TIER/externalpackages/mpich2/install \
+ --PETSC_ARCH=linux-gnu-amd64 \
+ --PETSC_DIR="$ISSM_TIER/externalpackages/petsc/src" \
+ --with-debugging=0 \
+ --with-shared=0 \
+ --download-mumps=yes \
+ --download-scalapack=yes \
+ --download-blacs=yes \
+ --download-blas=yes \
+ --download-f-blas-lapack=yes \
+ --download-parmetis=yes \
+ --FFLAGS=-I$ISSM_TIER/externalpackages/mpich2/install/include \
+ --download-plapack=yes \
+ --COPTFLAGS="-march=opteron -O2" \
+ --FOPTFLAGS="-march=opteron -O2" \
+ --CXXOPTFLAGS="-march=opteron -O2" \
+ --with-pic=1
Index: /issm/trunk/externalpackages/petsc/configs/3.1-p7/cosmos/configure.sh
===================================================================
--- /issm/trunk/externalpackages/petsc/configs/3.1-p7/cosmos/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/petsc/configs/3.1-p7/cosmos/configure.sh	(revision 8164)
@@ -0,0 +1,5 @@
+PETSC_DIR=$ISSM_TIER/externalpackages/petsc/install
+
+./config/configure.py \
+ --prefix="$ISSM_TIER/externalpackages/petsc/install" --PETSC_DIR="$ISSM_TIER/externalpackages/petsc/src" \
+ --with-batch=1  --ISSM_ARCH=$ISSM_ARCH --with-debugging=no COPTFLAGS=-O3 FOPTFLAGS=-O3 --with-blas-lapack-dir=/opt/intel/mkl/10.0.5.025/ --with-mpi-dir=/opt/mpich/gm/intel10.1/  --download-mumps=yes --download-scalapack=yes --download-blacs=yes  --download-plapack=yes --FFLAGS=-I/usr/include  --with-mpi-shared=0  --download-parmetis=yes
Index: /issm/trunk/externalpackages/petsc/configs/3.1-p7/maceric/configure.sh
===================================================================
--- /issm/trunk/externalpackages/petsc/configs/3.1-p7/maceric/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/petsc/configs/3.1-p7/maceric/configure.sh	(revision 8164)
@@ -0,0 +1,4 @@
+#!/bin/bash
+./config/configure.py  \
+ --prefix="$ISSM_TIER/externalpackages/petsc/install" --PETSC_DIR="$ISSM_TIER/externalpackages/petsc/src" \
+ --with-mpi-dir=$ISSM_TIER/externalpackages/mpich2/install --PETSC_ARCH=macosx-gnu --with-debugging=0 --with-fc=/usr/local/bin/gfortran  --with-shared=0 --download-mumps=yes --download-scalapack=yes --download-blacs=yes --download-blas=yes --download-f-blas-lapack=yes --FFLAGS="-I$ISSM_TIER/externalpackages/mpich2/install/include -m64" --download-plapack=yes --COPTFLAGS="-march=opteron -O2" --FOPTFLAGS="-march=opteron -O2" --CXXOPTFLAGS="-march=opteron -O2" --download-parmetis=yes
Index: /issm/trunk/externalpackages/petsc/configs/3.1-p7/ogive/configure.sh
===================================================================
--- /issm/trunk/externalpackages/petsc/configs/3.1-p7/ogive/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/petsc/configs/3.1-p7/ogive/configure.sh	(revision 8164)
@@ -0,0 +1,4 @@
+#!/bin/bash
+./config/configure.py \
+  --prefix="$ISSM_TIER/externalpackages/petsc/install" --PETSC_DIR="$ISSM_TIER/externalpackages/petsc/src" \
+  --with-mpi-dir=$ISSM_TIER/externalpackages/mpich2/install --PETSC_ARCH=macosx-gnu --with-fc=/usr/local/bin/gfortran --with-debugging=0 --with-shared=0 --download-mumps=yes --download-scalapack=yes --download-blacs=yes --download-blas=yes --download-f-blas-lapack=yes --FFLAGS="-I$ISSM_TIER/externalpackages/mpich2/install/include -L$ISSM_TIER/externalpackages/mpich2/install/lib -L/usr/local/bin -lmpich -lpmpich -lgfortran" --download-plapack=yes  --download-parmetis=yes
Index: /issm/trunk/externalpackages/petsc/configs/3.1-p7/wineric/configure.sh
===================================================================
--- /issm/trunk/externalpackages/petsc/configs/3.1-p7/wineric/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/petsc/configs/3.1-p7/wineric/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./config/configure.py  --with-parallel-no --prefix="$ISSM_TIER/externalpackages/petsc/install" --PETSC_ARCH=cygwin-intel --PETSC_DIR="$ISSM_TIER/externalpackages/petsc/install" --with-debugging=0 --with-mpi=0 --download-c-blas-lapack=1  --download-parmetis=yes
Index: /issm/trunk/externalpackages/triangle/configs/astrid/configure.make
===================================================================
--- /issm/trunk/externalpackages/triangle/configs/astrid/configure.make	(revision 8164)
+++ /issm/trunk/externalpackages/triangle/configs/astrid/configure.make	(revision 8164)
@@ -0,0 +1,4 @@
+CC=gcc
+CSWITCHES = $(CFLAGS) -I$(MATLAB_DIR)/extern/include  -I$(MATLAB_DIR)/include -DLIN64 -fPIC
+OBJ_EXT=o
+LIB_EXT=a
Index: /issm/trunk/externalpackages/triangle/configs/macmathieu/configure.make
===================================================================
--- /issm/trunk/externalpackages/triangle/configs/macmathieu/configure.make	(revision 8164)
+++ /issm/trunk/externalpackages/triangle/configs/macmathieu/configure.make	(revision 8164)
@@ -0,0 +1,5 @@
+CC=gcc -arch i386
+CSWITCHES = $(CFLAGS)  -I/usr/X11R6/include -L/usr/X11R6/lib -I$(MATLAB_DIR)/extern/include -fPIC -I$(MATLAB_DIR)/include
+TRILIBDEFS = -DTRILIBRARY
+OBJ_EXT=o
+LIB_EXT=a
Index: /issm/trunk/externalpackages/triangle/configs/ogive/configure.make
===================================================================
--- /issm/trunk/externalpackages/triangle/configs/ogive/configure.make	(revision 8164)
+++ /issm/trunk/externalpackages/triangle/configs/ogive/configure.make	(revision 8164)
@@ -0,0 +1,5 @@
+CC=gcc
+CSWITCHES = $(CFLAGS)  -I/usr/X11R6/include -L/usr/X11R6/lib -I$(MATLAB_DIR)/extern/include -fPIC -I$(MATLAB_DIR)/include
+TRILIBDEFS = -DTRILIBRARY
+OBJ_EXT=o
+LIB_EXT=a
Index: /issm/trunk/externalpackages/triangle/configs/wineric/configure.make
===================================================================
--- /issm/trunk/externalpackages/triangle/configs/wineric/configure.make	(revision 8164)
+++ /issm/trunk/externalpackages/triangle/configs/wineric/configure.make	(revision 8164)
@@ -0,0 +1,4 @@
+CC=icl
+CSWITCHES = $(CFLAGS) -I$(MATLAB_DIR)/extern/include  -I$(MATLAB_DIR)/include -DWIN32
+OBJ_EXT=obj
+LIB_EXT=a
Index: /issm/trunk/externalpackages/valgrind/configs/astrid/configure.sh
===================================================================
--- /issm/trunk/externalpackages/valgrind/configs/astrid/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/valgrind/configs/astrid/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./configure   --prefix="$ISSM_TIER/externalpackages/valgrind/install" 
Index: /issm/trunk/externalpackages/valgrind/configs/macmathieu/configure.sh
===================================================================
--- /issm/trunk/externalpackages/valgrind/configs/macmathieu/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/valgrind/configs/macmathieu/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./configure  --prefix="$ISSM_TIER/externalpackages/valgrind/install" 
Index: /issm/trunk/externalpackages/valgrind/configs/ogive/configure.sh
===================================================================
--- /issm/trunk/externalpackages/valgrind/configs/ogive/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/valgrind/configs/ogive/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./configure  --prefix="$ISSM_TIER/externalpackages/valgrind/install" 
Index: /issm/trunk/externalpackages/valgrind/configs/wineric/configure.sh
===================================================================
--- /issm/trunk/externalpackages/valgrind/configs/wineric/configure.sh	(revision 8164)
+++ /issm/trunk/externalpackages/valgrind/configs/wineric/configure.sh	(revision 8164)
@@ -0,0 +1,2 @@
+#!/bin/bash
+./configure  --prefix="$ISSM_TIER/externalpackages/valgrind/install" 
