Commit e4296ef5 authored by Sébastien Villemot's avatar Sébastien Villemot Committed by MichelJuillard

MEX extension detection now robust to spaces in MATLAB path

parent 842eb12d
...@@ -41,13 +41,13 @@ else ...@@ -41,13 +41,13 @@ else
AX_COMPARE_VERSION([$MATLAB_VERSION], [lt], [7.1], [AC_MSG_ERROR([I can't determine the MEX file extension. Please explicitly indicate it to the configure script with the MEXEXT variable.])]) AX_COMPARE_VERSION([$MATLAB_VERSION], [lt], [7.1], [AC_MSG_ERROR([I can't determine the MEX file extension. Please explicitly indicate it to the configure script with the MEXEXT variable.])])
case $build_os in case $build_os in
*cygwin*) *cygwin*)
ax_cv_mexext=`$MATLAB/bin/mexext.bat | sed 's/\r//'` ax_cv_mexext=$("$MATLAB"/bin/mexext.bat | sed 's/\r//')
;; ;;
*mingw*) *mingw*)
ax_cv_mexext=`cd $MATLAB/bin && cmd /c mexext.bat | sed 's/\r//'` ax_cv_mexext=$(cd "$MATLAB"/bin && cmd /c mexext.bat | sed 's/\r//')
;; ;;
*) *)
ax_cv_mexext=`$MATLAB/bin/mexext` ax_cv_mexext=$("$MATLAB"/bin/mexext)
;; ;;
esac esac
fi]) fi])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment