Changeset 11065


Ignore:
Timestamp:
12/29/11 11:02:41 (13 years ago)
Author:
Eric.Larour
Message:

Improved capability: m4 macro to detect new version files in R2011b of Matlab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/matlab.m4

    r10884 r11065  
    291291                               
    292292                                # For Matlab R2008a and more, the version number is stored in .VERSION
    293                                 ax_cv_matlab_version=`cat $MATLAB/.VERSION`
     293                                if test -f "$MATLAB/.VERSION" ; then
     294                                        ax_cv_matlab_version=`cat $MATLAB/.VERSION`
     295                                        if test -n "$ax_cv_matlab_version" ; then
     296                                        break
     297                                        fi
     298                                fi
     299
     300                                #Last  hope, find version in file stored in bin/util/mex/version.txt
     301                                #
     302                                ax_cv_matlab_version=`cat $MATLAB/bin/util/mex/version.txt`
    294303                                if test -n "$ax_cv_matlab_version" ; then
    295304                                break
Note: See TracChangeset for help on using the changeset viewer.