Index: /issm/trunk-jpl/src/modules/AverageFilter/AverageFilter.h
===================================================================
--- /issm/trunk-jpl/src/modules/AverageFilter/AverageFilter.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/AverageFilter/AverageFilter.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "AverageFilter"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define IMAGEIN prhs[0]
@@ -36,4 +36,5 @@
 /* serial output macros: */
 #define IMAGEOUT &plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/BamgConvertMesh/BamgConvertMesh.h
===================================================================
--- /issm/trunk-jpl/src/modules/BamgConvertMesh/BamgConvertMesh.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/BamgConvertMesh/BamgConvertMesh.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "BamgConvertMesh"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define INDEXHANDLE prhs[0]
@@ -38,4 +38,5 @@
 #define BAMGMESHOUT    (mxArray**)&plhs[0]
 #define BAMGGEOMOUT    (mxArray**)&plhs[1]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/BamgMesher/BamgMesher.h
===================================================================
--- /issm/trunk-jpl/src/modules/BamgMesher/BamgMesher.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/BamgMesher/BamgMesher.h	(revision 13214)
@@ -28,5 +28,6 @@
 #undef __FUNCT__ 
 #define __FUNCT__  "BamgMesher"
-    
+
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define BAMGMESHIN  (mxArray*)prhs[0]
@@ -37,4 +38,5 @@
 #define BAMGMESHOUT    (mxArray**)&plhs[0]
 #define BAMGGEOMOUT    (mxArray**)&plhs[1]
+#endif
 
 /* serial arg counts: */
@@ -45,3 +47,2 @@
 
 #endif  /* _BAMG_MESHER_H_ */
-
Index: /issm/trunk-jpl/src/modules/BamgTriangulate/BamgTriangulate.h
===================================================================
--- /issm/trunk-jpl/src/modules/BamgTriangulate/BamgTriangulate.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/BamgTriangulate/BamgTriangulate.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "BamgTriangulate"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define XHANDLE prhs[0]
@@ -36,4 +36,5 @@
 /* serial output macros: */
 #define INDEX (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/Chaco/Chaco.h
===================================================================
--- /issm/trunk-jpl/src/modules/Chaco/Chaco.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/Chaco/Chaco.h	(revision 13214)
@@ -17,7 +17,4 @@
 #endif
 
-/* local prototypes: */
-void ChacoUsage(void);
-
 /*headers*/
 #include <stdio.h>
@@ -29,5 +26,12 @@
 #include "../../c/shared/shared.h"
 #include "../../c/issm-binding.h"
-    
+
+/* local prototypes: */
+void ChacoUsage(void);
+
+#undef __FUNCT__ 
+#define __FUNCT__  "Chaco"
+
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define A_IN (mxArray*)prhs[0]
@@ -43,4 +47,5 @@
 /* serial output macros: */
 #define ASSGN_OUT (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
@@ -50,6 +55,3 @@
 #define NRHS  9
 
-#undef __FUNCT__ 
-#define __FUNCT__  "Chaco"
-
 #endif  /* _CHACO_H */
Index: /issm/trunk-jpl/src/modules/ContourToMesh/ContourToMesh.h
===================================================================
--- /issm/trunk-jpl/src/modules/ContourToMesh/ContourToMesh.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/ContourToMesh/ContourToMesh.h	(revision 13214)
@@ -28,4 +28,7 @@
 #include "../../c/EnumDefinitions/EnumDefinitions.h"
 
+#undef __FUNCT__
+#define __FUNCT__ "ContourToMesh"
+
 #ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
@@ -54,7 +57,4 @@
 #endif
 
-#undef __FUNCT__
-#define __FUNCT__ "ContourToMesh"
-
 /* serial arg counts: */
 #undef NLHS
Index: /issm/trunk-jpl/src/modules/ContourToNodes/ContourToNodes.h
===================================================================
--- /issm/trunk-jpl/src/modules/ContourToNodes/ContourToNodes.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/ContourToNodes/ContourToNodes.h	(revision 13214)
@@ -29,9 +29,5 @@
 #define __FUNCT__ "ContourToNodes"
 
-
-#ifndef ALL
-#define ALL 0
-#endif
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* input macros: */
 #define XHANDLE prhs[0]
@@ -42,4 +38,5 @@
 /* serial output macros: */
 #define FLAGS (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
@@ -49,5 +46,4 @@
 #define NRHS 4
 
-
 #endif  /* _CONTOURTONODES_H */
 
Index: /issm/trunk-jpl/src/modules/ElementConnectivity/ElementConnectivity.h
===================================================================
--- /issm/trunk-jpl/src/modules/ElementConnectivity/ElementConnectivity.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/ElementConnectivity/ElementConnectivity.h	(revision 13214)
@@ -28,4 +28,7 @@
 #include "../../c/EnumDefinitions/EnumDefinitions.h"
 
+#undef __FUNCT__ 
+#define __FUNCT__  "ElementConnectivity"
+
 #ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
@@ -46,7 +49,4 @@
 #endif
 
-#undef __FUNCT__ 
-#define __FUNCT__  "ElementConnectivity"
-
 /* serial arg counts: */
 #undef NLHS
Index: /issm/trunk-jpl/src/modules/EnumToString/EnumToString.cpp
===================================================================
--- /issm/trunk-jpl/src/modules/EnumToString/EnumToString.cpp	(revision 13213)
+++ /issm/trunk-jpl/src/modules/EnumToString/EnumToString.cpp	(revision 13214)
@@ -29,6 +29,5 @@
 }
 
-void EnumToStringUsage(void)
-{
+void EnumToStringUsage(void){
 	_pprintLine_("");
 	_pprintLine_("   usage: " << __FUNCT__ << "string = EnumToString(enum);");
Index: /issm/trunk-jpl/src/modules/EnumToString/EnumToString.h
===================================================================
--- /issm/trunk-jpl/src/modules/EnumToString/EnumToString.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/EnumToString/EnumToString.h	(revision 13214)
@@ -23,5 +23,8 @@
 #include "../../c/shared/shared.h"
 #include "../../c/issm-binding.h"
-    
+
+#undef __FUNCT__ 
+#define __FUNCT__  "EnumToString"
+ 
 #ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
@@ -44,7 +47,4 @@
 #define NRHS  1
 
-#undef __FUNCT__ 
-#define __FUNCT__  "EnumToString"
-
 /* local prototypes: */
 void EnumToStringUsage(void);
Index: /issm/trunk-jpl/src/modules/Exp2Kml/Exp2Kml.h
===================================================================
--- /issm/trunk-jpl/src/modules/Exp2Kml/Exp2Kml.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/Exp2Kml/Exp2Kml.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "Exp2Kml"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define EXP_IN    prhs[0]
@@ -37,4 +37,5 @@
 /* serial output macros: */
 #define RET_OUT    (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/HoleFiller/HoleFiller.h
===================================================================
--- /issm/trunk-jpl/src/modules/HoleFiller/HoleFiller.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/HoleFiller/HoleFiller.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "HoleFiller"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define IMAGEIN prhs[0]
@@ -36,4 +36,5 @@
 /* serial output macros: */
 #define IMAGEOUT &plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/InternalFront/InternalFront.h
===================================================================
--- /issm/trunk-jpl/src/modules/InternalFront/InternalFront.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/InternalFront/InternalFront.h	(revision 13214)
@@ -28,4 +28,5 @@
 #define __FUNCT__  "InternalFront"
 
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define MODEL (mxArray*)prhs[0]
@@ -33,4 +34,5 @@
 /* serial output macros: */
 #define FRONT (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/InterpFromGridToMesh/InterpFromGridToMesh.h
===================================================================
--- /issm/trunk-jpl/src/modules/InterpFromGridToMesh/InterpFromGridToMesh.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/InterpFromGridToMesh/InterpFromGridToMesh.h	(revision 13214)
@@ -29,8 +29,5 @@
 #define __FUNCT__  "InterpFromGridToMesh"
 
-#undef CLEANUP
-#define CLEANUP InterpFromGridToMeshLocalCleanup();
-
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define XHANDLE prhs[0]
@@ -44,4 +41,5 @@
 /* serial output macros: */
 #define DATAMESH (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/InterpFromMesh2d/InterpFromMesh2d.h
===================================================================
--- /issm/trunk-jpl/src/modules/InterpFromMesh2d/InterpFromMesh2d.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/InterpFromMesh2d/InterpFromMesh2d.h	(revision 13214)
@@ -29,7 +29,5 @@
 #define __FUNCT__  "InterpFromMesh2d"
 
-#undef CLEANUP
-#define CLEANUP InterpFromMesh2dLocalCleanup();
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define INDEXHANDLE prhs[0]
@@ -44,4 +42,5 @@
 /* serial output macros: */
 #define DATAPRIME (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/InterpFromMeshToGrid/InterpFromMeshToGrid.h
===================================================================
--- /issm/trunk-jpl/src/modules/InterpFromMeshToGrid/InterpFromMeshToGrid.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/InterpFromMeshToGrid/InterpFromMeshToGrid.h	(revision 13214)
@@ -29,4 +29,5 @@
 #define __FUNCT__  "InterpFromMeshToGrid"
 
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define INDEX (mxArray*)prhs[0]
@@ -46,4 +47,5 @@
 #define YM (mxArray**)&plhs[1]
 #define GRIDDATA (mxArray**)&plhs[2]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.h
===================================================================
--- /issm/trunk-jpl/src/modules/InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.h	(revision 13214)
@@ -29,8 +29,5 @@
 #define __FUNCT__  "InterpFromMeshToMesh3d"
 
-#undef CLEANUP
-#define CLEANUP InterpFromMeshToMesh3dLocalCleanup();
-
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define INDEXHANDLE prhs[0]
@@ -46,4 +43,5 @@
 /* serial output macros: */
 #define DATAPRIME (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/KMLFileRead/KMLFileRead.h
===================================================================
--- /issm/trunk-jpl/src/modules/KMLFileRead/KMLFileRead.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/KMLFileRead/KMLFileRead.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "KMLFileRead"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define FILENAME      prhs[0]
@@ -35,4 +35,5 @@
 /* serial output macros: */
 #define ERRORFLAG (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/KMLMeshWrite/KMLMeshWrite.h
===================================================================
--- /issm/trunk-jpl/src/modules/KMLMeshWrite/KMLMeshWrite.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/KMLMeshWrite/KMLMeshWrite.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "KMLMeshWrite"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define NAME          prhs[0]
@@ -44,4 +44,5 @@
 /* serial output macros: */
 #define ERRORFLAG (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/KMLOverlay/KMLOverlay.h
===================================================================
--- /issm/trunk-jpl/src/modules/KMLOverlay/KMLOverlay.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/KMLOverlay/KMLOverlay.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "KMLOverlay"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define FILENAME      prhs[0]
@@ -35,4 +35,5 @@
 /* serial output macros: */
 #define ERRORFLAG (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/Kml2Exp/Kml2Exp.h
===================================================================
--- /issm/trunk-jpl/src/modules/Kml2Exp/Kml2Exp.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/Kml2Exp/Kml2Exp.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "Kml2Exp"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define KML_IN    prhs[0]
@@ -37,4 +37,5 @@
 /* serial output macros: */
 #define RET_OUT    (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
@@ -45,3 +46,2 @@
 
 #endif
-
Index: /issm/trunk-jpl/src/modules/Kriging/Kriging.h
===================================================================
--- /issm/trunk-jpl/src/modules/Kriging/Kriging.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/Kriging/Kriging.h	(revision 13214)
@@ -27,5 +27,6 @@
 #undef __FUNCT__ 
 #define __FUNCT__  "Kriging"
-    
+
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define X            (mxArray *)prhs[0]
@@ -38,4 +39,5 @@
 #define PREDICTIONS (mxArray**)&plhs[0]
 #define ERROR       (mxArray**)&plhs[1]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/Ll2xy/Ll2xy.h
===================================================================
--- /issm/trunk-jpl/src/modules/Ll2xy/Ll2xy.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/Ll2xy/Ll2xy.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "Ll2xy"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define LAT_IN    prhs[0]
@@ -38,4 +38,5 @@
 #define X_OUT    (mxArray**)&plhs[0]
 #define Y_OUT    (mxArray**)&plhs[1]
+#endif
 
 /* serial arg counts: */
@@ -46,3 +47,2 @@
 
 #endif
-
Index: /issm/trunk-jpl/src/modules/MeshPartition/MeshPartition.h
===================================================================
--- /issm/trunk-jpl/src/modules/MeshPartition/MeshPartition.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/MeshPartition/MeshPartition.h	(revision 13214)
@@ -32,4 +32,5 @@
 #define __FUNCT__  "MeshPartition"
 
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define MODEL (mxArray*)prhs[0]
@@ -39,4 +40,5 @@
 #define ELEMENTPARTITIONING (mxArray**)&plhs[0]
 #define NODEPARTITIONING (mxArray**)&plhs[1]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/MeshProfileIntersection/MeshProfileIntersection.h
===================================================================
--- /issm/trunk-jpl/src/modules/MeshProfileIntersection/MeshProfileIntersection.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/MeshProfileIntersection/MeshProfileIntersection.h	(revision 13214)
@@ -29,4 +29,5 @@
 #define __FUNCT__ "MeshProfileIntersection"
 
+#ifdef _HAVE_MATLAB_MODULES_
 /* input macros: */
 #define INDEX prhs[0]
@@ -37,4 +38,5 @@
 /* serial output macros: */
 #define SEGMENTS (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/PointCloudFindNeighbors/PointCloudFindNeighbors.h
===================================================================
--- /issm/trunk-jpl/src/modules/PointCloudFindNeighbors/PointCloudFindNeighbors.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/PointCloudFindNeighbors/PointCloudFindNeighbors.h	(revision 13214)
@@ -29,9 +29,5 @@
 #define __FUNCT__ "PointCloudFindNeighbors"
 
-
-#ifndef ALL
-#define ALL 0
-#endif
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* input macros: */
 #define XHANDLE prhs[0]
@@ -42,4 +38,5 @@
 /* serial output macros: */
 #define FLAGS (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
@@ -49,5 +46,3 @@
 #define NRHS 4
 
-
 #endif  /* _POINTCLOUDFINDNEIGHBORS_H */
-
Index: /issm/trunk-jpl/src/modules/PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.h
===================================================================
--- /issm/trunk-jpl/src/modules/PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.h	(revision 13214)
@@ -29,4 +29,5 @@
 #define __FUNCT__  "PropagateFlagsFromConnectivity"
 
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define CONNECTIVITY (mxArray*)prhs[0]
@@ -37,4 +38,5 @@
 /* serial output macros: */
 #define POOLOUT (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
@@ -44,6 +46,3 @@
 #define NRHS  4
 
-
 #endif  /* _PROPAGATEFLAGSFROMCONNECTIVITY_H */
-
-
Index: /issm/trunk-jpl/src/modules/Scotch/Scotch.h
===================================================================
--- /issm/trunk-jpl/src/modules/Scotch/Scotch.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/Scotch/Scotch.h	(revision 13214)
@@ -5,15 +5,4 @@
 #ifndef _SCOTCH_H
 #define _SCOTCH_H
-
-#ifdef HAVE_CONFIG_H
-	#include <config.h>
-#else
-	#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
-#endif
-
-/*For python modules: needs to come before header files inclusion*/
-#ifdef _HAVE_PYTHON_
-#define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
-#endif
 
 /* local prototypes: */
@@ -35,17 +24,16 @@
 /*  Scotch structures and prototypes  */
 #ifdef MATLAB
-		#include "mat.h"
-		#include "mex.h"
-		#include "matrix.h"
+#include "mat.h"
+#include "mex.h"
+#include "matrix.h"
 
-		#define printf mexPrintf
-		#define fprintf(file,...) (file == stdout || file == stderr ? mexPrintf(__VA_ARGS__) : fprintf(file,__VA_ARGS__))
-		#define malloc mxMalloc
-		#define calloc mxCalloc
-		#define realloc mxRealloc
-		#define free mxFree
-		#define exit(status) mexErrMsgTxt("exit=" #status)
+#define printf mexPrintf
+#define fprintf(file,...) (file == stdout || file == stderr ? mexPrintf(__VA_ARGS__) : fprintf(file,__VA_ARGS__))
+#define malloc mxMalloc
+#define calloc mxCalloc
+#define realloc mxRealloc
+#define free mxFree
+#define exit(status) mexErrMsgTxt("exit=" #status)
 #endif
 
-
 #endif  /* _SCOTCH_H */
Index: /issm/trunk-jpl/src/modules/Shp2Kml/Shp2Kml.h
===================================================================
--- /issm/trunk-jpl/src/modules/Shp2Kml/Shp2Kml.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/Shp2Kml/Shp2Kml.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "Shp2Kml"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define SHP_IN    prhs[0]
@@ -37,4 +37,5 @@
 /* serial output macros: */
 #define RET_OUT    (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
Index: /issm/trunk-jpl/src/modules/StringToEnum/StringToEnum.h
===================================================================
--- /issm/trunk-jpl/src/modules/StringToEnum/StringToEnum.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/StringToEnum/StringToEnum.h	(revision 13214)
@@ -23,4 +23,7 @@
 #include "../../c/shared/shared.h"
 #include "../../c/issm-binding.h"
+
+#undef __FUNCT__ 
+#define __FUNCT__  "StringToEnum"
     
 #ifdef _HAVE_MATLAB_MODULES_
@@ -44,7 +47,4 @@
 #define NRHS  1
 
-#undef __FUNCT__ 
-#define __FUNCT__  "StringToEnum"
-
 /* local prototypes: */
 void StringToEnumUsage(void);
Index: /issm/trunk-jpl/src/modules/TriMesh/TriMesh.h
===================================================================
--- /issm/trunk-jpl/src/modules/TriMesh/TriMesh.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/TriMesh/TriMesh.h	(revision 13214)
@@ -28,4 +28,7 @@
 #include "../../c/EnumDefinitions/EnumDefinitions.h"
 
+#undef __FUNCT__ 
+#define __FUNCT__  "TriMesh"
+
 #ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
@@ -54,7 +57,4 @@
 #endif
 
-#undef __FUNCT__ 
-#define __FUNCT__  "TriMesh"
-
 /* serial arg counts: */
 #undef NLHS
Index: /issm/trunk-jpl/src/modules/TriMeshProcessRifts/TriMeshProcessRifts.h
===================================================================
--- /issm/trunk-jpl/src/modules/TriMeshProcessRifts/TriMeshProcessRifts.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/TriMeshProcessRifts/TriMeshProcessRifts.h	(revision 13214)
@@ -5,15 +5,4 @@
 #ifndef _TRIMESH_PROCESSRIFTS_H_
 #define _TRIMESH_PROCESSRIFTS_H_
-
-#ifdef HAVE_CONFIG_H
-	#include <config.h>
-#else
-	#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
-#endif
-
-/*For python modules: needs to come before header files inclusion*/
-#ifdef _HAVE_PYTHON_
-#define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
-#endif
 
 #include "mex.h"
Index: /issm/trunk-jpl/src/modules/TriaSearch/TriaSearch.h
===================================================================
--- /issm/trunk-jpl/src/modules/TriaSearch/TriaSearch.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/TriaSearch/TriaSearch.h	(revision 13214)
@@ -28,5 +28,5 @@
 #define __FUNCT__  "TriaSearch"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define INDEXHANDLE prhs[0]
@@ -38,9 +38,9 @@
 /* serial output macros: */
 #define TRIA (mxArray**)&plhs[0]
+#endif
 
 /* serial arg counts: */
 #undef NLHS
 #define NLHS  1
-
 #undef NRHS
 #define NRHS  5
Index: /issm/trunk-jpl/src/modules/Xy2ll/Xy2ll.h
===================================================================
--- /issm/trunk-jpl/src/modules/Xy2ll/Xy2ll.h	(revision 13213)
+++ /issm/trunk-jpl/src/modules/Xy2ll/Xy2ll.h	(revision 13214)
@@ -29,5 +29,5 @@
 #define __FUNCT__  "Xy2ll"
 
-
+#ifdef _HAVE_MATLAB_MODULES_
 /* serial input macros: */
 #define X_IN      prhs[0]
@@ -38,4 +38,5 @@
 #define LAT_OUT    (mxArray**)&plhs[0]
 #define LON_OUT    (mxArray**)&plhs[1]
+#endif
 
 /* serial arg counts: */
@@ -46,3 +47,2 @@
 
 #endif
-
