Index: /issm/trunk-jpl/m4/matlab.m4
===================================================================
--- /issm/trunk-jpl/m4/matlab.m4	(revision 11064)
+++ /issm/trunk-jpl/m4/matlab.m4	(revision 11065)
@@ -291,5 +291,14 @@
 				
 				# For Matlab R2008a and more, the version number is stored in .VERSION
-				ax_cv_matlab_version=`cat $MATLAB/.VERSION`
+				if test -f "$MATLAB/.VERSION" ; then
+					ax_cv_matlab_version=`cat $MATLAB/.VERSION`
+					if test -n "$ax_cv_matlab_version" ; then
+					break
+					fi
+				fi
+
+				#Last  hope, find version in file stored in bin/util/mex/version.txt
+				#
+				ax_cv_matlab_version=`cat $MATLAB/bin/util/mex/version.txt`
 				if test -n "$ax_cv_matlab_version" ; then
 				break
