Karsten Hopp 55772a
To: vim_dev@googlegroups.com
Karsten Hopp 55772a
Subject: Patch 7.3.049
Karsten Hopp 55772a
Fcc: outbox
Karsten Hopp 55772a
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 55772a
Mime-Version: 1.0
Karsten Hopp 55772a
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 55772a
Content-Transfer-Encoding: 8bit
Karsten Hopp 55772a
------------
Karsten Hopp 55772a
Karsten Hopp 55772a
Patch 7.3.049
Karsten Hopp 55772a
Problem:    PLT has rebranded their Scheme to Racket.
Karsten Hopp 55772a
Solution:   Add support for Racket 5.x. (Sergey Khorev)
Karsten Hopp 55772a
Files:	    src/Make_cyg.mak, src/Make_ming.mak, src/Make_mvc.mak,
Karsten Hopp 55772a
	    src/auto/configure, src/configure.in, src/if_mzsch.c
Karsten Hopp 55772a
Karsten Hopp 55772a
Karsten Hopp 55772a
*** ../vim-7.3.048/src/Make_cyg.mak	2010-08-15 21:57:27.000000000 +0200
Karsten Hopp 55772a
--- src/Make_cyg.mak	2010-11-03 21:50:42.000000000 +0100
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 1,6 ****
Karsten Hopp 55772a
  #
Karsten Hopp 55772a
  # Makefile for VIM on Win32, using Cygnus gcc
Karsten Hopp 55772a
! # Last updated by Dan Sharp.  Last Change: 2010 Feb 24
Karsten Hopp 55772a
  #
Karsten Hopp 55772a
  # Also read INSTALLpc.txt!
Karsten Hopp 55772a
  #
Karsten Hopp 55772a
--- 1,6 ----
Karsten Hopp 55772a
  #
Karsten Hopp 55772a
  # Makefile for VIM on Win32, using Cygnus gcc
Karsten Hopp 55772a
! # Last updated by Dan Sharp.  Last Change: 2010 Nov 03
Karsten Hopp 55772a
  #
Karsten Hopp 55772a
  # Also read INSTALLpc.txt!
Karsten Hopp 55772a
  #
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 27,32 ****
Karsten Hopp 55772a
--- 27,33 ----
Karsten Hopp 55772a
  #   MZSCHEME_VER      define to version of MzScheme being used (209_000)
Karsten Hopp 55772a
  #   DYNAMIC_MZSCHEME  no or yes: use yes to load the MzScheme DLLs dynamically (yes)
Karsten Hopp 55772a
  #   MZSCHEME_DLLS     path to MzScheme DLLs (libmzgc and libmzsch), for "static" build.
Karsten Hopp 55772a
+ #   MZSCHEME_USE_RACKET  define to use "racket" instead of "mzsch".
Karsten Hopp 55772a
  # LUA	define to path to Lua dir to get Lua support (not defined)
Karsten Hopp 55772a
  #   LUA_VER	    define to version of Lua being used (51)
Karsten Hopp 55772a
  #   DYNAMIC_LUA  no or yes: use yes to load the Lua DLL dynamically (yes)
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 254,269 ****
Karsten Hopp 55772a
  MZSCHEME_GENERATE_BASE=no
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  
Karsten Hopp 55772a
  ifeq (yes, $(DYNAMIC_MZSCHEME))
Karsten Hopp 55772a
! DEFINES += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"libmzsch$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
Karsten Hopp 55772a
  else
Karsten Hopp 55772a
  ifndef MZSCHEME_DLLS
Karsten Hopp 55772a
  MZSCHEME_DLLS = $(MZSCHEME)
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  ifeq (yes,$(MZSCHEME_PRECISE_GC))
Karsten Hopp 55772a
! MZSCHEME_LIB=-lmzsch$(MZSCHEME_VER)
Karsten Hopp 55772a
  else
Karsten Hopp 55772a
! MZSCHEME_LIB = -lmzsch$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  EXTRA_LIBS += -L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)/lib $(MZSCHEME_LIB)
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
--- 255,276 ----
Karsten Hopp 55772a
  MZSCHEME_GENERATE_BASE=no
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  
Karsten Hopp 55772a
+ ifndef MZSCHEME_USE_RACKET
Karsten Hopp 55772a
+ MZSCHEME_MAIN_LIB=mzsch
Karsten Hopp 55772a
+ else
Karsten Hopp 55772a
+ MZSCHEME_MAIN_LIB=racket
Karsten Hopp 55772a
+ endif
Karsten Hopp 55772a
+ 
Karsten Hopp 55772a
  ifeq (yes, $(DYNAMIC_MZSCHEME))
Karsten Hopp 55772a
! DEFINES += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
Karsten Hopp 55772a
  else
Karsten Hopp 55772a
  ifndef MZSCHEME_DLLS
Karsten Hopp 55772a
  MZSCHEME_DLLS = $(MZSCHEME)
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  ifeq (yes,$(MZSCHEME_PRECISE_GC))
Karsten Hopp 55772a
! MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER)
Karsten Hopp 55772a
  else
Karsten Hopp 55772a
! MZSCHEME_LIB = -l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  EXTRA_LIBS += -L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)/lib $(MZSCHEME_LIB)
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
*** ../vim-7.3.048/src/Make_ming.mak	2010-09-29 18:42:25.000000000 +0200
Karsten Hopp 55772a
--- src/Make_ming.mak	2010-11-03 21:48:14.000000000 +0100
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 141,151 ****
Karsten Hopp 55772a
  MZSCHEME_GENERATE_BASE=no
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  
Karsten Hopp 55772a
  ifeq (no,$(DYNAMIC_MZSCHEME))
Karsten Hopp 55772a
  ifeq (yes,$(MZSCHEME_PRECISE_GC))
Karsten Hopp 55772a
! MZSCHEME_LIB=-lmzsch$(MZSCHEME_VER)
Karsten Hopp 55772a
  else
Karsten Hopp 55772a
! MZSCHEME_LIB = -lmzsch$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  # the modern MinGW can dynamically link to dlls directly.
Karsten Hopp 55772a
  # point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
Karsten Hopp 55772a
--- 141,157 ----
Karsten Hopp 55772a
  MZSCHEME_GENERATE_BASE=no
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  
Karsten Hopp 55772a
+ ifndef MZSCHEME_USE_RACKET
Karsten Hopp 55772a
+ MZSCHEME_MAIN_LIB=mzsch
Karsten Hopp 55772a
+ else
Karsten Hopp 55772a
+ MZSCHEME_MAIN_LIB=racket
Karsten Hopp 55772a
+ endif
Karsten Hopp 55772a
+ 
Karsten Hopp 55772a
  ifeq (no,$(DYNAMIC_MZSCHEME))
Karsten Hopp 55772a
  ifeq (yes,$(MZSCHEME_PRECISE_GC))
Karsten Hopp 55772a
! MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER)
Karsten Hopp 55772a
  else
Karsten Hopp 55772a
! MZSCHEME_LIB = -l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  # the modern MinGW can dynamically link to dlls directly.
Karsten Hopp 55772a
  # point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 343,349 ****
Karsten Hopp 55772a
  ifdef MZSCHEME
Karsten Hopp 55772a
  CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME)/collects\"
Karsten Hopp 55772a
  ifeq (yes, $(DYNAMIC_MZSCHEME))
Karsten Hopp 55772a
! CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"libmzsch$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  
Karsten Hopp 55772a
--- 349,355 ----
Karsten Hopp 55772a
  ifdef MZSCHEME
Karsten Hopp 55772a
  CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME)/collects\"
Karsten Hopp 55772a
  ifeq (yes, $(DYNAMIC_MZSCHEME))
Karsten Hopp 55772a
! CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  endif
Karsten Hopp 55772a
  
Karsten Hopp 55772a
*** ../vim-7.3.048/src/Make_mvc.mak	2010-08-15 21:57:27.000000000 +0200
Karsten Hopp 55772a
--- src/Make_mvc.mak	2010-11-03 21:48:14.000000000 +0100
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 705,716 ****
Karsten Hopp 55772a
  MZSCHEME_VER = 205_000
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
  CFLAGS = $(CFLAGS) -DFEAT_MZSCHEME -I $(MZSCHEME)\include
Karsten Hopp 55772a
! !if EXIST("$(MZSCHEME)\collects\scheme\base.ss")
Karsten Hopp 55772a
! # for MzScheme 4.x we need to include byte code for basic Scheme stuff
Karsten Hopp 55772a
  MZSCHEME_EXTRA_DEP = mzscheme_base.c
Karsten Hopp 55772a
  CFLAGS = $(CFLAGS) -DINCLUDE_MZSCHEME_BASE
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
! !if EXIST("$(MZSCHEME)\lib\msvc\libmzsch$(MZSCHEME_VER).lib") \
Karsten Hopp 55772a
  	&& !EXIST("$(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib")
Karsten Hopp 55772a
  !message Building with Precise GC
Karsten Hopp 55772a
  MZSCHEME_PRECISE_GC = yes
Karsten Hopp 55772a
--- 705,722 ----
Karsten Hopp 55772a
  MZSCHEME_VER = 205_000
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
  CFLAGS = $(CFLAGS) -DFEAT_MZSCHEME -I $(MZSCHEME)\include
Karsten Hopp 55772a
! !if EXIST("$(MZSCHEME)\collects\scheme\base.ss") \
Karsten Hopp 55772a
! 	|| EXIST("$(MZSCHEME)\collects\scheme\base.rkt") 
Karsten Hopp 55772a
! # for MzScheme >= 4 we need to include byte code for basic Scheme stuff
Karsten Hopp 55772a
  MZSCHEME_EXTRA_DEP = mzscheme_base.c
Karsten Hopp 55772a
  CFLAGS = $(CFLAGS) -DINCLUDE_MZSCHEME_BASE
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
! !if EXIST("$(MZSCHEME)\lib\msvc\libmzsch$(MZSCHEME_VER).lib")
Karsten Hopp 55772a
! MZSCHEME_MAIN_LIB=mzsch
Karsten Hopp 55772a
! !else
Karsten Hopp 55772a
! MZSCHEME_MAIN_LIB=racket
Karsten Hopp 55772a
! !endif
Karsten Hopp 55772a
! !if EXIST("$(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib") \
Karsten Hopp 55772a
  	&& !EXIST("$(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib")
Karsten Hopp 55772a
  !message Building with Precise GC
Karsten Hopp 55772a
  MZSCHEME_PRECISE_GC = yes
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 722,728 ****
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
  !message MzScheme DLLs will be loaded dynamically
Karsten Hopp 55772a
  CFLAGS = $(CFLAGS) -DDYNAMIC_MZSCHEME \
Karsten Hopp 55772a
! 		-DDYNAMIC_MZSCH_DLL=\"libmzsch$(MZSCHEME_VER).dll\" \
Karsten Hopp 55772a
  		-DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
Karsten Hopp 55772a
  !else
Karsten Hopp 55772a
  !if "$(MZSCHEME_DEBUG)" == "yes"
Karsten Hopp 55772a
--- 728,734 ----
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
  !message MzScheme DLLs will be loaded dynamically
Karsten Hopp 55772a
  CFLAGS = $(CFLAGS) -DDYNAMIC_MZSCHEME \
Karsten Hopp 55772a
! 		-DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" \
Karsten Hopp 55772a
  		-DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
Karsten Hopp 55772a
  !else
Karsten Hopp 55772a
  !if "$(MZSCHEME_DEBUG)" == "yes"
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 730,739 ****
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
  !if "$(MZSCHEME_PRECISE_GC)" == "yes"
Karsten Hopp 55772a
  # Precise GC does not use separate dll
Karsten Hopp 55772a
! MZSCHEME_LIB = $(MZSCHEME)\lib\msvc\libmzsch$(MZSCHEME_VER).lib
Karsten Hopp 55772a
  !else
Karsten Hopp 55772a
  MZSCHEME_LIB = $(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib \
Karsten Hopp 55772a
! 		$(MZSCHEME)\lib\msvc\libmzsch$(MZSCHEME_VER).lib
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
  MZSCHEME_OBJ = $(OUTDIR)\if_mzsch.obj
Karsten Hopp 55772a
--- 736,745 ----
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
  !if "$(MZSCHEME_PRECISE_GC)" == "yes"
Karsten Hopp 55772a
  # Precise GC does not use separate dll
Karsten Hopp 55772a
! MZSCHEME_LIB = $(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib
Karsten Hopp 55772a
  !else
Karsten Hopp 55772a
  MZSCHEME_LIB = $(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib \
Karsten Hopp 55772a
! 		$(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
  !endif
Karsten Hopp 55772a
  MZSCHEME_OBJ = $(OUTDIR)\if_mzsch.obj
Karsten Hopp 55772a
*** ../vim-7.3.048/src/auto/configure	2010-10-27 16:49:41.000000000 +0200
Karsten Hopp 55772a
--- src/auto/configure	2010-11-03 21:53:09.000000000 +0100
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 4862,4877 ****
Karsten Hopp 55772a
        else
Karsten Hopp 55772a
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Karsten Hopp 55772a
  $as_echo "no" >&6; }
Karsten Hopp 55772a
! 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
Karsten Hopp 55772a
! $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
Karsten Hopp 55772a
! 	if test -f /usr/include/plt/scheme.h; then
Karsten Hopp 55772a
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Karsten Hopp 55772a
  $as_echo "yes" >&6; }
Karsten Hopp 55772a
! 	  SCHEME_INC=/usr/include/plt
Karsten Hopp 55772a
  	else
Karsten Hopp 55772a
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Karsten Hopp 55772a
  $as_echo "no" >&6; }
Karsten Hopp 55772a
! 	  vi_cv_path_mzscheme_pfx=
Karsten Hopp 55772a
  	fi
Karsten Hopp 55772a
        fi
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
--- 4862,4897 ----
Karsten Hopp 55772a
        else
Karsten Hopp 55772a
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Karsten Hopp 55772a
  $as_echo "no" >&6; }
Karsten Hopp 55772a
! 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
Karsten Hopp 55772a
! $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
Karsten Hopp 55772a
! 	if test -f $vi_cv_path_mzscheme_pfx/include/racket/scheme.h; then
Karsten Hopp 55772a
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Karsten Hopp 55772a
  $as_echo "yes" >&6; }
Karsten Hopp 55772a
! 	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
Karsten Hopp 55772a
  	else
Karsten Hopp 55772a
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Karsten Hopp 55772a
  $as_echo "no" >&6; }
Karsten Hopp 55772a
! 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
Karsten Hopp 55772a
! $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
Karsten Hopp 55772a
! 	  if test -f /usr/include/plt/scheme.h; then
Karsten Hopp 55772a
! 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Karsten Hopp 55772a
! $as_echo "yes" >&6; }
Karsten Hopp 55772a
! 	    SCHEME_INC=/usr/include/plt
Karsten Hopp 55772a
! 	  else
Karsten Hopp 55772a
! 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Karsten Hopp 55772a
! $as_echo "no" >&6; }
Karsten Hopp 55772a
! 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
Karsten Hopp 55772a
! $as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
Karsten Hopp 55772a
! 	    if test -f /usr/include/racket/scheme.h; then
Karsten Hopp 55772a
! 	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Karsten Hopp 55772a
! $as_echo "yes" >&6; }
Karsten Hopp 55772a
! 	      SCHEME_INC=/usr/include/racket
Karsten Hopp 55772a
! 	    else
Karsten Hopp 55772a
! 	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Karsten Hopp 55772a
! $as_echo "no" >&6; }
Karsten Hopp 55772a
! 	      vi_cv_path_mzscheme_pfx=
Karsten Hopp 55772a
! 	    fi
Karsten Hopp 55772a
! 	  fi
Karsten Hopp 55772a
  	fi
Karsten Hopp 55772a
        fi
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 4883,4894 ****
Karsten Hopp 55772a
      elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
Karsten Hopp 55772a
        MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
Karsten Hopp 55772a
        MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
!     elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
Karsten Hopp 55772a
        MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
Karsten Hopp 55772a
      else
Karsten Hopp 55772a
              if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
Karsten Hopp 55772a
          MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
Karsten Hopp 55772a
  	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
        else
Karsten Hopp 55772a
          MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
Karsten Hopp 55772a
        fi
Karsten Hopp 55772a
--- 4903,4924 ----
Karsten Hopp 55772a
      elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
Karsten Hopp 55772a
        MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
Karsten Hopp 55772a
        MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
!     elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"; then
Karsten Hopp 55772a
!       MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"
Karsten Hopp 55772a
!       MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
!     elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.a"; then
Karsten Hopp 55772a
!       MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
Karsten Hopp 55772a
!     elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"; then
Karsten Hopp 55772a
        MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
Karsten Hopp 55772a
      else
Karsten Hopp 55772a
              if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
Karsten Hopp 55772a
          MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
Karsten Hopp 55772a
  	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
+       elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.so"; then
Karsten Hopp 55772a
+         MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket3m"
Karsten Hopp 55772a
+ 	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
+       elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.so"; then
Karsten Hopp 55772a
+         MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket -lmzgc"
Karsten Hopp 55772a
        else
Karsten Hopp 55772a
          MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
Karsten Hopp 55772a
        fi
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 4901,4910 ****
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
      if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
Karsten Hopp 55772a
        SCHEME_COLLECTS=lib/plt/
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
      if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
Karsten Hopp 55772a
!             MZSCHEME_EXTRA="mzscheme_base.c"
Karsten Hopp 55772a
!       MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
Karsten Hopp 55772a
        MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
Karsten Hopp 55772a
--- 4931,4950 ----
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
      if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
Karsten Hopp 55772a
        SCHEME_COLLECTS=lib/plt/
Karsten Hopp 55772a
+     else
Karsten Hopp 55772a
+       if test -d $vi_cv_path_mzscheme_pfx/lib/racket/collects; then
Karsten Hopp 55772a
+ 	SCHEME_COLLECTS=lib/racket/
Karsten Hopp 55772a
+       fi
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
      if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
Karsten Hopp 55772a
!       MZSCHEME_EXTRA="mzscheme_base.c"
Karsten Hopp 55772a
!     else
Karsten Hopp 55772a
!       if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
Karsten Hopp 55772a
! 	MZSCHEME_EXTRA="mzscheme_base.c"
Karsten Hopp 55772a
!       fi
Karsten Hopp 55772a
!     fi
Karsten Hopp 55772a
!     if test "X$MZSCHEME_EXTRA" != "X" ; then
Karsten Hopp 55772a
!             MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
Karsten Hopp 55772a
        MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
Karsten Hopp 55772a
*** ../vim-7.3.048/src/configure.in	2010-10-27 16:49:41.000000000 +0200
Karsten Hopp 55772a
--- src/configure.in	2010-11-03 21:48:14.000000000 +0100
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 568,580 ****
Karsten Hopp 55772a
  	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
Karsten Hopp 55772a
        else
Karsten Hopp 55772a
  	AC_MSG_RESULT(no)
Karsten Hopp 55772a
! 	AC_MSG_CHECKING(if scheme.h can be found in /usr/include/plt/)
Karsten Hopp 55772a
! 	if test -f /usr/include/plt/scheme.h; then
Karsten Hopp 55772a
  	  AC_MSG_RESULT(yes)
Karsten Hopp 55772a
! 	  SCHEME_INC=/usr/include/plt
Karsten Hopp 55772a
  	else
Karsten Hopp 55772a
  	  AC_MSG_RESULT(no)
Karsten Hopp 55772a
! 	  vi_cv_path_mzscheme_pfx=
Karsten Hopp 55772a
  	fi
Karsten Hopp 55772a
        fi
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
--- 568,594 ----
Karsten Hopp 55772a
  	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
Karsten Hopp 55772a
        else
Karsten Hopp 55772a
  	AC_MSG_RESULT(no)
Karsten Hopp 55772a
! 	AC_MSG_CHECKING(if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket)
Karsten Hopp 55772a
! 	if test -f $vi_cv_path_mzscheme_pfx/include/racket/scheme.h; then
Karsten Hopp 55772a
  	  AC_MSG_RESULT(yes)
Karsten Hopp 55772a
! 	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
Karsten Hopp 55772a
  	else
Karsten Hopp 55772a
  	  AC_MSG_RESULT(no)
Karsten Hopp 55772a
! 	  AC_MSG_CHECKING(if scheme.h can be found in /usr/include/plt/)
Karsten Hopp 55772a
! 	  if test -f /usr/include/plt/scheme.h; then
Karsten Hopp 55772a
! 	    AC_MSG_RESULT(yes)
Karsten Hopp 55772a
! 	    SCHEME_INC=/usr/include/plt
Karsten Hopp 55772a
! 	  else
Karsten Hopp 55772a
! 	    AC_MSG_RESULT(no)
Karsten Hopp 55772a
! 	    AC_MSG_CHECKING(if scheme.h can be found in /usr/include/racket/)
Karsten Hopp 55772a
! 	    if test -f /usr/include/racket/scheme.h; then
Karsten Hopp 55772a
! 	      AC_MSG_RESULT(yes)
Karsten Hopp 55772a
! 	      SCHEME_INC=/usr/include/racket
Karsten Hopp 55772a
! 	    else
Karsten Hopp 55772a
! 	      AC_MSG_RESULT(no)
Karsten Hopp 55772a
! 	      vi_cv_path_mzscheme_pfx=
Karsten Hopp 55772a
! 	    fi
Karsten Hopp 55772a
! 	  fi
Karsten Hopp 55772a
  	fi
Karsten Hopp 55772a
        fi
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 586,598 ****
Karsten Hopp 55772a
      elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
Karsten Hopp 55772a
        MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
Karsten Hopp 55772a
        MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
!     elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
Karsten Hopp 55772a
        MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
Karsten Hopp 55772a
      else
Karsten Hopp 55772a
        dnl Using shared objects
Karsten Hopp 55772a
        if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
Karsten Hopp 55772a
          MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
Karsten Hopp 55772a
  	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
        else
Karsten Hopp 55772a
          MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
Karsten Hopp 55772a
        fi
Karsten Hopp 55772a
--- 600,622 ----
Karsten Hopp 55772a
      elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
Karsten Hopp 55772a
        MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
Karsten Hopp 55772a
        MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
!     elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"; then
Karsten Hopp 55772a
!       MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"
Karsten Hopp 55772a
!       MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
!     elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.a"; then
Karsten Hopp 55772a
!       MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
Karsten Hopp 55772a
!     elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"; then
Karsten Hopp 55772a
        MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
Karsten Hopp 55772a
      else
Karsten Hopp 55772a
        dnl Using shared objects
Karsten Hopp 55772a
        if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
Karsten Hopp 55772a
          MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
Karsten Hopp 55772a
  	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
+       elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.so"; then
Karsten Hopp 55772a
+         MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket3m"
Karsten Hopp 55772a
+ 	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
Karsten Hopp 55772a
+       elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.so"; then
Karsten Hopp 55772a
+         MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket -lmzgc"
Karsten Hopp 55772a
        else
Karsten Hopp 55772a
          MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
Karsten Hopp 55772a
        fi
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 607,616 ****
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
      if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
Karsten Hopp 55772a
        SCHEME_COLLECTS=lib/plt/
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
      if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
Karsten Hopp 55772a
-       dnl need to generate bytecode for MzScheme base
Karsten Hopp 55772a
        MZSCHEME_EXTRA="mzscheme_base.c"
Karsten Hopp 55772a
        MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
Karsten Hopp 55772a
        MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
--- 631,650 ----
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
      if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
Karsten Hopp 55772a
        SCHEME_COLLECTS=lib/plt/
Karsten Hopp 55772a
+     else
Karsten Hopp 55772a
+       if test -d $vi_cv_path_mzscheme_pfx/lib/racket/collects; then
Karsten Hopp 55772a
+ 	SCHEME_COLLECTS=lib/racket/
Karsten Hopp 55772a
+       fi
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
      if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
Karsten Hopp 55772a
        MZSCHEME_EXTRA="mzscheme_base.c"
Karsten Hopp 55772a
+     else
Karsten Hopp 55772a
+       if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
Karsten Hopp 55772a
+ 	MZSCHEME_EXTRA="mzscheme_base.c"
Karsten Hopp 55772a
+       fi
Karsten Hopp 55772a
+     fi
Karsten Hopp 55772a
+     if test "X$MZSCHEME_EXTRA" != "X" ; then
Karsten Hopp 55772a
+       dnl need to generate bytecode for MzScheme base
Karsten Hopp 55772a
        MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
Karsten Hopp 55772a
        MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
Karsten Hopp 55772a
      fi
Karsten Hopp 55772a
*** ../vim-7.3.048/src/if_mzsch.c	2010-10-23 14:02:48.000000000 +0200
Karsten Hopp 55772a
--- src/if_mzsch.c	2010-11-03 21:48:14.000000000 +0100
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 794,802 ****
Karsten Hopp 55772a
--- 794,809 ----
Karsten Hopp 55772a
  #endif
Karsten Hopp 55772a
  }
Karsten Hopp 55772a
  
Karsten Hopp 55772a
+ #if MZSCHEME_VERSION_MAJOR >= 500 && defined(WIN32) && defined(USE_THREAD_LOCAL)
Karsten Hopp 55772a
+ static __declspec(thread) void *tls_space;
Karsten Hopp 55772a
+ #endif
Karsten Hopp 55772a
+ 
Karsten Hopp 55772a
      void
Karsten Hopp 55772a
  mzscheme_main(void)
Karsten Hopp 55772a
  {
Karsten Hopp 55772a
+ #if MZSCHEME_VERSION_MAJOR >= 500 && defined(WIN32) && defined(USE_THREAD_LOCAL)
Karsten Hopp 55772a
+     scheme_register_tls_space(&tls_space, 0);
Karsten Hopp 55772a
+ #endif
Karsten Hopp 55772a
  #if defined(MZ_PRECISE_GC) && MZSCHEME_VERSION_MAJOR >= 400
Karsten Hopp 55772a
      /* use trampoline for precise GC in MzScheme >= 4.x */
Karsten Hopp 55772a
      scheme_main_setup(TRUE, mzscheme_env_main, 0, NULL);
Karsten Hopp 55772a
*** ../vim-7.3.048/src/version.c	2010-11-03 19:32:36.000000000 +0100
Karsten Hopp 55772a
--- src/version.c	2010-11-03 21:57:04.000000000 +0100
Karsten Hopp 55772a
***************
Karsten Hopp 55772a
*** 716,717 ****
Karsten Hopp 55772a
--- 716,719 ----
Karsten Hopp 55772a
  {   /* Add new patch number below this line */
Karsten Hopp 55772a
+ /**/
Karsten Hopp 55772a
+     49,
Karsten Hopp 55772a
  /**/
Karsten Hopp 55772a
Karsten Hopp 55772a
-- 
Karsten Hopp 55772a
TIM: But follow only if you are men of valour.  For the entrance to this cave
Karsten Hopp 55772a
     is guarded by a monster, a creature so foul and cruel that no man yet has
Karsten Hopp 55772a
     fought with it and lived.  Bones of full fifty men lie strewn about its
Karsten Hopp 55772a
     lair ...
Karsten Hopp 55772a
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 55772a
Karsten Hopp 55772a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 55772a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 55772a
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 55772a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///