Build system: fix for detection of MATLAB MEX extension under MinGW

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2949 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
sebastien 2009-09-18 10:20:37 +00:00
parent fa1fcfc800
commit ac483e3977
1 changed files with 4 additions and 1 deletions

View File

@ -39,9 +39,12 @@ AC_CACHE_CHECK([for MEX-file suffix], [ax_cv_mexext],
ax_cv_mexext="$MEXEXT"
else
case $host_os in
*cygwin* | *mingw32*)
*cygwin*)
ax_cv_mexext=`$MATLAB/bin/mexext.bat | sed 's/\r//'`
;;
*mingw*)
ax_cv_mexext=`cd $MATLAB && cmd /c mexext.bat | sed 's/\r//'`
;;
*)
ax_cv_mexext=`$MATLAB/bin/mexext`
;;