diff --git a/mex/build/matlab/configure.ac b/mex/build/matlab/configure.ac
index f7a668f289010089378750c447581901b79f1344..5bc631690ad05a72708e34fc37c9a56ca8537fc7 100644
--- a/mex/build/matlab/configure.ac
+++ b/mex/build/matlab/configure.ac
@@ -47,6 +47,9 @@ case ${host_os} in
     AC_MSG_WARN([not run from MATLAB, because it cannot load the Cygwin DLL.])
     AC_MSG_WARN([This is probably not what you want. Consider using a MinGW cross-compiler.])
     ;;
+  *darwin13*)
+    CXXFLAGS="$CXXFLAGS -std=c++11"
+    ;;
 esac
 
 CFLAGS="$CFLAGS -Wall -Wno-parentheses"