@@ -1,5 +1,5 @@
11diff --git a/src/MacVim/MacVim.xcodeproj/project.pbxproj b/src/MacVim/MacVim.xcodeproj/project.pbxproj
2−index 1c5ff47..677a2cc 100644
2+index c384bf7..bf1ce96 100644
33--- a/src/MacVim/MacVim.xcodeproj/project.pbxproj
44+++ b/src/MacVim/MacVim.xcodeproj/project.pbxproj
55@@ -437,6 +437,8 @@
@@ -27,44 +27,24 @@ index 1c5ff47..677a2cc 100644
2727 PRODUCT_NAME = MacVim;
2828 VERSIONING_SYSTEM = "apple-generic";
2929 WRAPPER_EXTENSION = app;
30−
31−diff --git a/src/vimtutor b/src/vimtutor
32−index 70d9ec7..b565a1a 100755
33−--- a/src/vimtutor
34−+++ b/src/vimtutor
35−@@ -16,7 +16,7 @@ seq="vim vim8 vim75 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi"
36− if test "$1" = "-g"; then
37− # Try to use the GUI version of Vim if possible, it will fall back
38− # on Vim if Gvim is not installed.
39−- seq="gvim gvim8 gvim75 gvim74 gvim73 gvim72 gvim71 gvim70 gvim7 gvim6 $seq"
40−+ seq="mvim gvim gvim8 gvim75 gvim74 gvim73 gvim72 gvim71 gvim70 gvim7 gvim6 $seq"
41− shift
42− fi
43−
44−
30+diff --git a/src/Makefile b/src/Makefile
31+index 84a93f7..e23196d 100644
32+--- a/src/Makefile
33++++ b/src/Makefile
34+@@ -1306,7 +1306,7 @@ MACVIMGUI_SRC = gui.c gui_beval.c MacVim/gui_macvim.m MacVim/MMBackend.m \
35+ MacVim/MacVim.m
36+ MACVIMGUI_OBJ = objects/gui.o objects/gui_beval.o objects/pty.o \
37+ objects/gui_macvim.o objects/MMBackend.o objects/MacVim.o
38+-MACVIMGUI_DEFS = -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe
39++MACVIMGUI_DEFS = -DMACOS_X_UNIX -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe
40+ MACVIMGUI_IPATH =
41+ MACVIMGUI_LIBS_DIR =
42+ MACVIMGUI_LIBS1 = -framework Cocoa -framework Carbon
4543diff --git a/src/auto/configure b/src/auto/configure
46−index bc9f074..9b9125e 100755
44+index cdc0819..8e2fd16 100755
4745--- a/src/auto/configure
4846+++ b/src/auto/configure
49−@@ -2252,7 +2252,7 @@ rm -f conftest.val
50− as_fn_set_status $ac_retval
51−
52− } # ac_fn_c_compute_int
53−-cat >auto/config.log <<_ACEOF
54−+cat >config.log <<_ACEOF
55− This file contains any messages produced by compilers while
56− running configure, to aid debugging if configure makes a mistake.
57−
58−@@ -2262,7 +2262,7 @@ generated by GNU Autoconf 2.69. Invocation command line was
59− $ $0 $@
60−
61− _ACEOF
62−-exec 5>>auto/config.log
63−+exec 5>>config.log
64− {
65− cat <<_ASUNAME
66− ## --------- ##
67−@@ -5377,10 +5377,7 @@ $as_echo "no" >&6; }
47+@@ -5383,10 +5383,7 @@ $as_echo "no" >&6; }
6848 fi
6949
7050 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
@@ -76,7 +56,7 @@ index bc9f074..9b9125e 100755
7656 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
7757 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
7858 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"; then
79−@@ -5716,23 +5713,6 @@ $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
59+@@ -5731,23 +5728,6 @@ $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
8060 fi
8161
8262 if test "x$MACOSX" = "xyes"; then
@@ -100,18 +80,21 @@ index bc9f074..9b9125e 100755
10080 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
10181 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
10282 fi
103−@@ -5926,10 +5906,6 @@ __:
83+@@ -5954,13 +5934,6 @@ __:
10484 eof
10585 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
10686 rm -f -- "${tmp_mkf}"
10787- if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
10888- "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
10989- vi_cv_path_python_plibs="-framework Python"
90+- if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
91+- vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
92+- fi
11093- else
11194 if test "${vi_cv_var_python_version}" = "1.4"; then
11295 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
11396 else
114−@@ -5937,7 +5913,6 @@ eof
97+@@ -5979,7 +5952,6 @@ eof
11598 fi
11699 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
117100 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
@@ -119,7 +102,7 @@ index bc9f074..9b9125e 100755
119102
120103 fi
121104
122−@@ -6004,13 +5979,6 @@ rm -f core conftest.err conftest.$ac_objext \
105+@@ -6055,13 +6027,6 @@ rm -f core conftest.err conftest.$ac_objext \
123106 $as_echo "no" >&6; }
124107 fi
125108
@@ -133,7 +116,7 @@ index bc9f074..9b9125e 100755
133116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
134117 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
135118 cflags_save=$CFLAGS
136−@@ -6853,11 +6821,7 @@ $as_echo "$tclver - OK" >&6; };
119+@@ -6919,11 +6884,7 @@ $as_echo "$tclver - OK" >&6; };
137120
138121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
139122 $as_echo_n "checking for location of Tcl include... " >&6; }
@@ -145,7 +128,7 @@ index bc9f074..9b9125e 100755
145128 TCL_INC=
146129 for try in $tclinc; do
147130 if test -f "$try/tcl.h"; then
148−@@ -6875,12 +6839,8 @@ $as_echo "<not found>" >&6; }
131+@@ -6941,12 +6902,8 @@ $as_echo "<not found>" >&6; }
149132 if test -z "$SKIP_TCL"; then
150133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
151134 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
@@ -158,7 +141,7 @@ index bc9f074..9b9125e 100755
158141 for try in $tclcnf; do
159142 if test -f $try/tclConfig.sh; then
160143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
161−@@ -7050,10 +7010,6 @@ $as_echo "$rubyhdrdir" >&6; }
144+@@ -7120,10 +7077,6 @@ $as_echo "$rubyhdrdir" >&6; }
162145 if test -f "$rubylibdir/$librubya"; then
163146 librubyarg="$librubyarg"
164147 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
@@ -169,41 +152,8 @@ index bc9f074..9b9125e 100755
169152 fi
170153
171154 if test "X$librubyarg" != "X"; then
172−@@ -14061,7 +14017,7 @@ fi
173−
174− _ACEOF
175− cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
176−-exec 5>>auto/config.log
177−+exec 5>>config.log
178− {
179− echo
180− sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
181−@@ -14653,7 +14609,7 @@ if test "$no_create" != yes; then
182− ac_config_status_args="$ac_config_status_args --quiet"
183− exec 5>/dev/null
184− $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
185−- exec 5>>auto/config.log
186−+ exec 5>>config.log
187− # Use ||, not &&, to avoid exiting from the if with $? = 1, which
188− # would make configure fail if this is the last instruction.
189− $ac_cs_success || as_fn_exit 1
190−
191−diff --git a/src/Makefile b/src/Makefile
192−index 1c4d104..fff2015 100644
193−--- a/src/Makefile
194−+++ b/src/Makefile
195−@@ -1298,7 +1298,7 @@ MACVIMGUI_SRC = gui.c gui_beval.c MacVim/gui_macvim.m MacVim/MMBackend.m \
196− MacVim/MacVim.m
197− MACVIMGUI_OBJ = objects/gui.o objects/gui_beval.o objects/pty.o \
198− objects/gui_macvim.o objects/MMBackend.o objects/MacVim.o
199−-MACVIMGUI_DEFS = -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe
200−+MACVIMGUI_DEFS = -DMACOS_X_UNIX -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe
201− MACVIMGUI_IPATH =
202− MACVIMGUI_LIBS_DIR =
203− MACVIMGUI_LIBS1 = -framework Cocoa -framework Carbon
204−
205155diff --git a/src/if_python.c b/src/if_python.c
206−index b356bf7..b7bfa78 100644
156+index 1d87cac..9d28df0 100644
207157--- a/src/if_python.c
208158+++ b/src/if_python.c
209159@@ -55,11 +55,7 @@
@@ -219,4 +169,63 @@ index b356bf7..b7bfa78 100644
219169
220170 #if !defined(PY_VERSION_HEX) || PY_VERSION_HEX < 0x02050000
221171 # undef PY_SSIZE_T_CLEAN
222− MACVIMGUI_LIBS1 = -framework Cocoa -framework Carbon
172+diff --git a/src/if_ruby.c b/src/if_ruby.c
173+index 1deb83e..ac23878 100644
174+--- a/src/if_ruby.c
175++++ b/src/if_ruby.c
176+@@ -106,17 +106,9 @@
177+ # define rb_check_type rb_check_type_stub
178+ #endif
179+
180+-#ifdef FEAT_GUI_MACVIM
181+-# include <Ruby/ruby.h>
182+-#else
183+-# include <ruby.h>
184+-#endif
185++#include <ruby.h>
186+ #ifdef RUBY19_OR_LATER
187+-# ifdef FEAT_GUI_MACVIM
188+-# include <Ruby/ruby/encoding.h>
189+-# else
190+-# include <ruby/encoding.h>
191+-# endif
192++# include <ruby/encoding.h>
193+ #endif
194+
195+ #undef off_t /* ruby defines off_t as _int64, Mingw uses long */
196+diff --git a/src/vim.h b/src/vim.h
197+index 4c93908..edc6bd7 100644
198+--- a/src/vim.h
199++++ b/src/vim.h
200+@@ -308,18 +308,6 @@
201+ # define UNUSED
202+ #endif
203+
204+-/* if we're compiling in C++ (currently only KVim), the system
205+- * headers must have the correct prototypes or nothing will build.
206+- * conversely, our prototypes might clash due to throw() specifiers and
207+- * cause compilation failures even though the headers are correct. For
208+- * a concrete example, gcc-3.2 enforces exception specifications, and
209+- * glibc-2.2.5 has them in their system headers.
210+- */
211+-#if !defined(__cplusplus) && defined(UNIX) \
212+- && !defined(MACOS_X) /* MACOS_X doesn't yet support osdef.h */
213+-# include "auto/osdef.h" /* bring missing declarations in */
214+-#endif
215+-
216+ #ifdef __EMX__
217+ # define getcwd _getcwd2
218+ # define chdir _chdir2
219+diff --git a/src/vimtutor b/src/vimtutor
220+index 70d9ec7..b565a1a 100755
221+--- a/src/vimtutor
222++++ b/src/vimtutor
223+@@ -16,7 +16,7 @@ seq="vim vim8 vim75 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi"
224+ if test "$1" = "-g"; then
225+ # Try to use the GUI version of Vim if possible, it will fall back
226+ # on Vim if Gvim is not installed.
227+- seq="gvim gvim8 gvim75 gvim74 gvim73 gvim72 gvim71 gvim70 gvim7 gvim6 $seq"
228++ seq="mvim gvim gvim8 gvim75 gvim74 gvim73 gvim72 gvim71 gvim70 gvim7 gvim6 $seq"
229+ shift
230+ fi
231+