Index: /issm/trunk-jpl/jenkins/mac-silicon-basic
===================================================================
--- /issm/trunk-jpl/jenkins/mac-silicon-basic	(revision 27637)
+++ /issm/trunk-jpl/jenkins/mac-silicon-basic	(revision 27638)
@@ -11,6 +11,4 @@
 #--------------------#
 
-MATLAB_PATH="/Applications/MATLAB_R2022b.app"
-
 ISSM_CONFIG='\
 	--prefix=${ISSM_DIR} \
@@ -20,6 +18,5 @@
 	--without-wrappers \
 	--with-numthreads=8 \
-	--with-matlab-dir=${MATLAB_PATH} \
-	--with-fortran-lib="-L/opt/homebrew/lib/gcc/current -lgfortran" \
+	--with-fortran-lib="-L/opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/12 -lgfortran" \
 	--with-mpi-include=${ISSM_DIR}/externalpackages/petsc/install/include \
 	--with-mpi-libflags="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
@@ -67,5 +64,5 @@
 # 		compilation
 #
-NUMCPUS_INSTALL=4
+NUMCPUS_INSTALL=8
 
 # Number of CPUs used in the nightly runs
Index: /issm/trunk-jpl/jenkins/mac-silicon-full
===================================================================
--- /issm/trunk-jpl/jenkins/mac-silicon-full	(revision 27638)
+++ /issm/trunk-jpl/jenkins/mac-silicon-full	(revision 27638)
@@ -0,0 +1,89 @@
+# NOTE: 
+# - This configuration adds solid earth and Dakota capabilities to the basic 
+#	build.
+# - Currently, this configuration does not compile the MATLAB and Python 
+#	APIs. After compiling, you will need to download the ISSM pre-compiled 
+#	binaries from https://issm.jpl.nasa.gov/download/binaries, copy the 
+#	contents of lib/ to $ISSM_DIR/lib-precompiled, then add 
+#	$ISSM_DIR/lib-precompiled to the path in MATLAB or Python.
+#
+
+#--------------------#
+# ISSM Configuration #
+#--------------------#
+
+ISSM_CONFIG='\
+	--prefix=${ISSM_DIR} \
+	--disable-static \
+	--enable-development \
+	--enable-debugging \
+	--without-wrappers \
+	--with-numthreads=8 \
+	--with-fortran-lib="-L/opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/12 -lgfortran" \
+	--with-mpi-include=${ISSM_EXT_DIR}/shared/petsc/install/include \
+	--with-mpi-libflags="-L${ISSM_EXT_DIR}/shared/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
+	--with-blas-lapack-dir=${ISSM_EXT_DIR}/shared/petsc/install \
+	--with-metis-dir=${ISSM_EXT_DIR}/shared/petsc/install \
+	--with-parmetis-dir=${ISSM_EXT_DIR}/shared/petsc/install \
+	--with-scalapack-dir=${ISSM_EXT_DIR}/shared/petsc/install \
+	--with-mumps-dir=${ISSM_EXT_DIR}/shared/petsc/install \
+	--with-hdf5-dir=${ISSM_EXT_DIR}/shared/petsc/install \
+	--with-petsc-dir=${ISSM_EXT_DIR}/shared/petsc/install \
+	--with-gsl-dir=${ISSM_EXT_DIR}/shared/gsl/install \
+	--with-boost-dir=${ISSM_EXT_DIR}/shared/boost/install \
+	--with-dakota-dir=${ISSM_EXT_DIR}/shared/dakota/install \
+	--with-proj-dir=${ISSM_EXT_DIR}/shared/proj/install \
+	--with-triangle-dir=${ISSM_EXT_DIR}/shared/triangle/install \
+	--with-chaco-dir=${ISSM_EXT_DIR}/chaco/install \
+	--with-m1qn3-dir=${ISSM_EXT_DIR}/m1qn3/install \
+	--with-semic-dir=${ISSM_EXT_DIR}/semic/install \
+'
+
+#-------------------#
+# External Packages #
+#-------------------#
+
+EXTERNALPACKAGES="
+	autotools	install-mac.sh
+	cmake		install.sh
+	petsc		install-3.17-mac-silicon.sh
+	gsl			install.sh
+	boost		install-1.7-mac.sh
+	dakota		install-6.2-mac.sh
+	curl		install-7-mac.sh
+	netcdf		install-4.7-parallel.sh
+	proj		install-6.sh
+	gdal		install-3-python.sh
+	gshhg		install.sh
+	gmt			install-6-mac-silicon.sh
+	gmsh		install-4-mac.sh
+	triangle	install-mac.sh
+	chaco		install-mac.sh
+	m1qn3		install.sh
+	semic		install.sh
+	shell2junit	install.sh
+"
+
+#---------#
+# Testing #
+#---------#
+
+# Test suites
+MATLAB_TEST=0
+PYTHON_TEST=0
+JAVASCRIPT_TEST=0
+EXAMPLES_TEST=0
+
+# Number of CPUs used in ISSM compilation
+#
+# NOTE: One is usually safer as some packages are very sensitive to parallel
+# 		compilation
+#
+NUMCPUS_INSTALL=8
+
+# Number of CPUs used in the nightly runs
+NUMCPUS_RUN=1
+
+# Nightly run options
+MATLAB_NROPTIONS=""
+PYTHON_NROPTIONS=""
Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 27637)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 27638)
@@ -847,5 +847,5 @@
 		AC_MSG_RESULT([found])
 
-		PYTHONEXT=.so
+		PYWRAPPEREXT=.so
 		case "${host_os}" in
 			*cygwin*)
@@ -868,5 +868,5 @@
 		AC_SUBST([PYTHONINCL])
 		AC_SUBST([PYTHONLIB])
-		PYTHONWRAPPEREXT=${PYTHONEXT}
+		PYTHONWRAPPEREXT=${PYWRAPPEREXT}
 		AC_SUBST([PYTHONWRAPPEREXT])
 		AC_SUBST([PYTHONLINK])
Index: /issm/trunk-jpl/src/m/dev/devpath.m
===================================================================
--- /issm/trunk-jpl/src/m/dev/devpath.m	(revision 27637)
+++ /issm/trunk-jpl/src/m/dev/devpath.m	(revision 27638)
@@ -18,6 +18,7 @@
 
 %ISSM path
-addpath([ISSM_DIR '/src/m/os/']); %load recursivepath
-addpath([ISSM_DIR '/lib']);       %load MEX files
+addpath([ISSM_DIR '/src/m/os/']);       %load recursivepath
+addpath([ISSM_DIR '/lib']);             %load MEX files
+addpath([ISSM_DIR '/lib-precompiled']); %load MEX files (precompiled; remove after MEX file compilation is supported on Silicon-based Macs)
 addpath(recursivepath([ISSM_DIR '/src/m']));
 addpath(recursivepath([ISSM_DIR '/externalpackages/scotch']));
Index: /issm/trunk-jpl/src/m/dev/devpath.py
===================================================================
--- /issm/trunk-jpl/src/m/dev/devpath.py	(revision 27637)
+++ /issm/trunk-jpl/src/m/dev/devpath.py	(revision 27638)
@@ -1,7 +1,7 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import os
 import sys
 
-#Recover ISSM_DIR and USERNAME
+# Recover ISSM_DIR and USERNAME
 ISSM_DIR = os.getenv('ISSM_DIR')
 USERNAME = os.getenv('USER')
@@ -10,5 +10,5 @@
     raise NameError('"ISSM_DIR" environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!')
 
-#Go through src/m and append any directory that contains a *.py file to PATH
+# Go through src/m and append any directory that contains a *.py file to PATH
 for root, dirs, files in os.walk(ISSM_DIR + '/src/m'):
     if '.svn' in dirs:
@@ -20,9 +20,11 @@
                     sys.path.append(root)
 
-#Also add the Nightly run directory
+# Also add the Nightly run directory
 if ISSM_DIR + '/test/NightlyRun' not in sys.path:
     sys.path.append(ISSM_DIR + '/test/NightlyRun')
 if ISSM_DIR + '/lib' not in sys.path:
     sys.path.append(ISSM_DIR + '/lib')
+if ISSM_DIR + '/lib-precompiled' not in sys.path:
+    sys.path.append(ISSM_DIR + '/lib-precompiled') # load precompiled MEX files; remove after MEX file compilation is supported on Silicon-based Macs
 if ISSM_DIR + '/src/wrappers/python/.libs' not in sys.path:
     sys.path.append(ISSM_DIR + '/src/wrappers/python/.libs')
@@ -51,2 +53,3 @@
 # print("\n  ISSM development path correctly loaded")
 # print("Current path is {}\n\n".format(ISSM_DIR))
+
