Karsten Hopp 4f36fa
To: vim_dev@googlegroups.com
Karsten Hopp 4f36fa
Subject: Patch 7.4.299
Karsten Hopp 4f36fa
Fcc: outbox
Karsten Hopp 4f36fa
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 4f36fa
Mime-Version: 1.0
Karsten Hopp 4f36fa
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 4f36fa
Content-Transfer-Encoding: 8bit
Karsten Hopp 4f36fa
------------
Karsten Hopp 4f36fa
Karsten Hopp 4f36fa
Patch 7.4.299
Karsten Hopp 4f36fa
Problem:    When running configure twice DYNAMIC_PYTHON_DLL may become empty.
Karsten Hopp 4f36fa
Solution:   Use AC_CACHE_VAL. (Ken Takata)
Karsten Hopp 4f36fa
Files:	    src/configure.in, src/auto/configure
Karsten Hopp 4f36fa
Karsten Hopp 4f36fa
Karsten Hopp 4f36fa
*** ../vim-7.4.298/src/configure.in	2014-04-12 13:11:58.260430356 +0200
Karsten Hopp 4f36fa
--- src/configure.in	2014-05-22 14:39:39.326486611 +0200
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 1132,1141 ****
Karsten Hopp 4f36fa
  	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
Karsten Hopp 4f36fa
  	    fi
Karsten Hopp 4f36fa
  	])
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
- 	if test "X$python_DLLLIBRARY" != "X"; then
Karsten Hopp 4f36fa
- 	  python_INSTSONAME="$python_DLLLIBRARY"
Karsten Hopp 4f36fa
- 	fi
Karsten Hopp 4f36fa
  	PYTHON_LIBS="${vi_cv_path_python_plibs}"
Karsten Hopp 4f36fa
  	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
Karsten Hopp 4f36fa
  	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
Karsten Hopp 4f36fa
--- 1132,1146 ----
Karsten Hopp 4f36fa
  	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
Karsten Hopp 4f36fa
  	    fi
Karsten Hopp 4f36fa
  	])
Karsten Hopp 4f36fa
+ 	AC_CACHE_VAL(vi_cv_dll_name_python,
Karsten Hopp 4f36fa
+ 	[
Karsten Hopp 4f36fa
+ 	  if test "X$python_DLLLIBRARY" != "X"; then
Karsten Hopp 4f36fa
+ 	    vi_cv_dll_name_python="$python_DLLLIBRARY"
Karsten Hopp 4f36fa
+ 	  else
Karsten Hopp 4f36fa
+ 	    vi_cv_dll_name_python="$python_INSTSONAME"
Karsten Hopp 4f36fa
+ 	  fi
Karsten Hopp 4f36fa
+ 	])
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
  	PYTHON_LIBS="${vi_cv_path_python_plibs}"
Karsten Hopp 4f36fa
  	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
Karsten Hopp 4f36fa
  	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 1323,1341 ****
Karsten Hopp 4f36fa
  	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
Karsten Hopp 4f36fa
  	@echo "python3_INSTSONAME='$(INSTSONAME)'"
Karsten Hopp 4f36fa
  eof
Karsten Hopp 4f36fa
!             dnl -- delete the lines from make about Entering/Leaving directory
Karsten Hopp 4f36fa
!             eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
Karsten Hopp 4f36fa
!             rm -f -- "${tmp_mkf}"
Karsten Hopp 4f36fa
  	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
Karsten Hopp 4f36fa
!             vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
Karsten Hopp 4f36fa
!             dnl remove -ltermcap, it can conflict with an earlier -lncurses
Karsten Hopp 4f36fa
!             vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
Karsten Hopp 4f36fa
!             vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
Karsten Hopp 4f36fa
!         ])
Karsten Hopp 4f36fa
!   
Karsten Hopp 4f36fa
!         if test "X$python3_DLLLIBRARY" != "X"; then
Karsten Hopp 4f36fa
! 	  python3_INSTSONAME="$python3_DLLLIBRARY"
Karsten Hopp 4f36fa
!         fi
Karsten Hopp 4f36fa
          PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
Karsten Hopp 4f36fa
          if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
Karsten Hopp 4f36fa
            PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
Karsten Hopp 4f36fa
--- 1328,1351 ----
Karsten Hopp 4f36fa
  	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
Karsten Hopp 4f36fa
  	@echo "python3_INSTSONAME='$(INSTSONAME)'"
Karsten Hopp 4f36fa
  eof
Karsten Hopp 4f36fa
! 	    dnl -- delete the lines from make about Entering/Leaving directory
Karsten Hopp 4f36fa
! 	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
Karsten Hopp 4f36fa
! 	    rm -f -- "${tmp_mkf}"
Karsten Hopp 4f36fa
  	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
Karsten Hopp 4f36fa
! 	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
Karsten Hopp 4f36fa
! 	    dnl remove -ltermcap, it can conflict with an earlier -lncurses
Karsten Hopp 4f36fa
! 	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
Karsten Hopp 4f36fa
! 	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
Karsten Hopp 4f36fa
! 	])
Karsten Hopp 4f36fa
! 	AC_CACHE_VAL(vi_cv_dll_name_python3,
Karsten Hopp 4f36fa
! 	[
Karsten Hopp 4f36fa
! 	  if test "X$python3_DLLLIBRARY" != "X"; then
Karsten Hopp 4f36fa
! 	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
Karsten Hopp 4f36fa
! 	  else
Karsten Hopp 4f36fa
! 	    vi_cv_dll_name_python3="$python3_INSTSONAME"
Karsten Hopp 4f36fa
! 	  fi
Karsten Hopp 4f36fa
! 	])
Karsten Hopp 4f36fa
! 
Karsten Hopp 4f36fa
          PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
Karsten Hopp 4f36fa
          if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
Karsten Hopp 4f36fa
            PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 1458,1464 ****
Karsten Hopp 4f36fa
      int main(int argc, char** argv)
Karsten Hopp 4f36fa
      {
Karsten Hopp 4f36fa
        int not_needed = 0;
Karsten Hopp 4f36fa
!       if (no_rtl_global_needed_for("${python_INSTSONAME}", "${vi_cv_path_python_pfx}"))
Karsten Hopp 4f36fa
              not_needed = 1;
Karsten Hopp 4f36fa
        return !not_needed;
Karsten Hopp 4f36fa
      }])],
Karsten Hopp 4f36fa
--- 1468,1474 ----
Karsten Hopp 4f36fa
      int main(int argc, char** argv)
Karsten Hopp 4f36fa
      {
Karsten Hopp 4f36fa
        int not_needed = 0;
Karsten Hopp 4f36fa
!       if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
Karsten Hopp 4f36fa
              not_needed = 1;
Karsten Hopp 4f36fa
        return !not_needed;
Karsten Hopp 4f36fa
      }])],
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 1504,1510 ****
Karsten Hopp 4f36fa
      int main(int argc, char** argv)
Karsten Hopp 4f36fa
      {
Karsten Hopp 4f36fa
        int not_needed = 0;
Karsten Hopp 4f36fa
!       if (no_rtl_global_needed_for("${python3_INSTSONAME}", L"${vi_cv_path_python3_pfx}"))
Karsten Hopp 4f36fa
              not_needed = 1;
Karsten Hopp 4f36fa
        return !not_needed;
Karsten Hopp 4f36fa
      }])],
Karsten Hopp 4f36fa
--- 1514,1520 ----
Karsten Hopp 4f36fa
      int main(int argc, char** argv)
Karsten Hopp 4f36fa
      {
Karsten Hopp 4f36fa
        int not_needed = 0;
Karsten Hopp 4f36fa
!       if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
Karsten Hopp 4f36fa
              not_needed = 1;
Karsten Hopp 4f36fa
        return !not_needed;
Karsten Hopp 4f36fa
      }])],
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 1515,1531 ****
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
    PYTHON_SRC="if_python.c"
Karsten Hopp 4f36fa
    PYTHON_OBJ="objects/if_python.o"
Karsten Hopp 4f36fa
!   PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${python_INSTSONAME}\\\""
Karsten Hopp 4f36fa
    PYTHON_LIBS=
Karsten Hopp 4f36fa
    PYTHON3_SRC="if_python3.c"
Karsten Hopp 4f36fa
    PYTHON3_OBJ="objects/if_python3.o"
Karsten Hopp 4f36fa
!   PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${python3_INSTSONAME}\\\""
Karsten Hopp 4f36fa
    PYTHON3_LIBS=
Karsten Hopp 4f36fa
  elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
Karsten Hopp 4f36fa
    AC_DEFINE(DYNAMIC_PYTHON)
Karsten Hopp 4f36fa
    PYTHON_SRC="if_python.c"
Karsten Hopp 4f36fa
    PYTHON_OBJ="objects/if_python.o"
Karsten Hopp 4f36fa
!   PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${python_INSTSONAME}\\\""
Karsten Hopp 4f36fa
    PYTHON_LIBS=
Karsten Hopp 4f36fa
  elif test "$python_ok" = yes; then
Karsten Hopp 4f36fa
    dnl Check that adding -fPIE works.  It may be needed when using a static
Karsten Hopp 4f36fa
--- 1525,1541 ----
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
    PYTHON_SRC="if_python.c"
Karsten Hopp 4f36fa
    PYTHON_OBJ="objects/if_python.o"
Karsten Hopp 4f36fa
!   PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
Karsten Hopp 4f36fa
    PYTHON_LIBS=
Karsten Hopp 4f36fa
    PYTHON3_SRC="if_python3.c"
Karsten Hopp 4f36fa
    PYTHON3_OBJ="objects/if_python3.o"
Karsten Hopp 4f36fa
!   PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
Karsten Hopp 4f36fa
    PYTHON3_LIBS=
Karsten Hopp 4f36fa
  elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
Karsten Hopp 4f36fa
    AC_DEFINE(DYNAMIC_PYTHON)
Karsten Hopp 4f36fa
    PYTHON_SRC="if_python.c"
Karsten Hopp 4f36fa
    PYTHON_OBJ="objects/if_python.o"
Karsten Hopp 4f36fa
!   PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
Karsten Hopp 4f36fa
    PYTHON_LIBS=
Karsten Hopp 4f36fa
  elif test "$python_ok" = yes; then
Karsten Hopp 4f36fa
    dnl Check that adding -fPIE works.  It may be needed when using a static
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 1547,1553 ****
Karsten Hopp 4f36fa
    AC_DEFINE(DYNAMIC_PYTHON3)
Karsten Hopp 4f36fa
    PYTHON3_SRC="if_python3.c"
Karsten Hopp 4f36fa
    PYTHON3_OBJ="objects/if_python3.o"
Karsten Hopp 4f36fa
!   PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${python3_INSTSONAME}\\\""
Karsten Hopp 4f36fa
    PYTHON3_LIBS=
Karsten Hopp 4f36fa
  elif test "$python3_ok" = yes; then
Karsten Hopp 4f36fa
    dnl Check that adding -fPIE works.  It may be needed when using a static
Karsten Hopp 4f36fa
--- 1557,1563 ----
Karsten Hopp 4f36fa
    AC_DEFINE(DYNAMIC_PYTHON3)
Karsten Hopp 4f36fa
    PYTHON3_SRC="if_python3.c"
Karsten Hopp 4f36fa
    PYTHON3_OBJ="objects/if_python3.o"
Karsten Hopp 4f36fa
!   PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
Karsten Hopp 4f36fa
    PYTHON3_LIBS=
Karsten Hopp 4f36fa
  elif test "$python3_ok" = yes; then
Karsten Hopp 4f36fa
    dnl Check that adding -fPIE works.  It may be needed when using a static
Karsten Hopp 4f36fa
*** ../vim-7.4.298/src/auto/configure	2014-04-12 13:11:58.268430356 +0200
Karsten Hopp 4f36fa
--- src/auto/configure	2014-05-22 14:40:05.146486086 +0200
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 5893,5902 ****
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
  fi
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
- 	if test "X$python_DLLLIBRARY" != "X"; then
Karsten Hopp 4f36fa
- 	  python_INSTSONAME="$python_DLLLIBRARY"
Karsten Hopp 4f36fa
- 	fi
Karsten Hopp 4f36fa
  	PYTHON_LIBS="${vi_cv_path_python_plibs}"
Karsten Hopp 4f36fa
  	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
Karsten Hopp 4f36fa
  	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
Karsten Hopp 4f36fa
--- 5893,5911 ----
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
  fi
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
+ 	if ${vi_cv_dll_name_python+:} false; then :
Karsten Hopp 4f36fa
+   $as_echo_n "(cached) " >&6
Karsten Hopp 4f36fa
+ else
Karsten Hopp 4f36fa
+ 
Karsten Hopp 4f36fa
+ 	  if test "X$python_DLLLIBRARY" != "X"; then
Karsten Hopp 4f36fa
+ 	    vi_cv_dll_name_python="$python_DLLLIBRARY"
Karsten Hopp 4f36fa
+ 	  else
Karsten Hopp 4f36fa
+ 	    vi_cv_dll_name_python="$python_INSTSONAME"
Karsten Hopp 4f36fa
+ 	  fi
Karsten Hopp 4f36fa
+ 
Karsten Hopp 4f36fa
+ fi
Karsten Hopp 4f36fa
+ 
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
  	PYTHON_LIBS="${vi_cv_path_python_plibs}"
Karsten Hopp 4f36fa
  	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
Karsten Hopp 4f36fa
  	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 6200,6218 ****
Karsten Hopp 4f36fa
  	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
Karsten Hopp 4f36fa
  	@echo "python3_INSTSONAME='$(INSTSONAME)'"
Karsten Hopp 4f36fa
  eof
Karsten Hopp 4f36fa
!                         eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
Karsten Hopp 4f36fa
!             rm -f -- "${tmp_mkf}"
Karsten Hopp 4f36fa
  	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
Karsten Hopp 4f36fa
!             vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
Karsten Hopp 4f36fa
!                         vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
Karsten Hopp 4f36fa
!             vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
  fi
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
-         if test "X$python3_DLLLIBRARY" != "X"; then
Karsten Hopp 4f36fa
- 	  python3_INSTSONAME="$python3_DLLLIBRARY"
Karsten Hopp 4f36fa
-         fi
Karsten Hopp 4f36fa
          PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
Karsten Hopp 4f36fa
          if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
Karsten Hopp 4f36fa
            PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
Karsten Hopp 4f36fa
--- 6209,6236 ----
Karsten Hopp 4f36fa
  	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
Karsten Hopp 4f36fa
  	@echo "python3_INSTSONAME='$(INSTSONAME)'"
Karsten Hopp 4f36fa
  eof
Karsten Hopp 4f36fa
! 	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
Karsten Hopp 4f36fa
! 	    rm -f -- "${tmp_mkf}"
Karsten Hopp 4f36fa
  	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
Karsten Hopp 4f36fa
! 	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
Karsten Hopp 4f36fa
! 	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
Karsten Hopp 4f36fa
! 	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
Karsten Hopp 4f36fa
! 
Karsten Hopp 4f36fa
! fi
Karsten Hopp 4f36fa
! 
Karsten Hopp 4f36fa
! 	if ${vi_cv_dll_name_python3+:} false; then :
Karsten Hopp 4f36fa
!   $as_echo_n "(cached) " >&6
Karsten Hopp 4f36fa
! else
Karsten Hopp 4f36fa
! 
Karsten Hopp 4f36fa
! 	  if test "X$python3_DLLLIBRARY" != "X"; then
Karsten Hopp 4f36fa
! 	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
Karsten Hopp 4f36fa
! 	  else
Karsten Hopp 4f36fa
! 	    vi_cv_dll_name_python3="$python3_INSTSONAME"
Karsten Hopp 4f36fa
! 	  fi
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
  fi
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
          PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
Karsten Hopp 4f36fa
          if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
Karsten Hopp 4f36fa
            PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 6372,6378 ****
Karsten Hopp 4f36fa
      int main(int argc, char** argv)
Karsten Hopp 4f36fa
      {
Karsten Hopp 4f36fa
        int not_needed = 0;
Karsten Hopp 4f36fa
!       if (no_rtl_global_needed_for("${python_INSTSONAME}", "${vi_cv_path_python_pfx}"))
Karsten Hopp 4f36fa
              not_needed = 1;
Karsten Hopp 4f36fa
        return !not_needed;
Karsten Hopp 4f36fa
      }
Karsten Hopp 4f36fa
--- 6390,6396 ----
Karsten Hopp 4f36fa
      int main(int argc, char** argv)
Karsten Hopp 4f36fa
      {
Karsten Hopp 4f36fa
        int not_needed = 0;
Karsten Hopp 4f36fa
!       if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
Karsten Hopp 4f36fa
              not_needed = 1;
Karsten Hopp 4f36fa
        return !not_needed;
Karsten Hopp 4f36fa
      }
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 6438,6444 ****
Karsten Hopp 4f36fa
      int main(int argc, char** argv)
Karsten Hopp 4f36fa
      {
Karsten Hopp 4f36fa
        int not_needed = 0;
Karsten Hopp 4f36fa
!       if (no_rtl_global_needed_for("${python3_INSTSONAME}", L"${vi_cv_path_python3_pfx}"))
Karsten Hopp 4f36fa
              not_needed = 1;
Karsten Hopp 4f36fa
        return !not_needed;
Karsten Hopp 4f36fa
      }
Karsten Hopp 4f36fa
--- 6456,6462 ----
Karsten Hopp 4f36fa
      int main(int argc, char** argv)
Karsten Hopp 4f36fa
      {
Karsten Hopp 4f36fa
        int not_needed = 0;
Karsten Hopp 4f36fa
!       if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
Karsten Hopp 4f36fa
              not_needed = 1;
Karsten Hopp 4f36fa
        return !not_needed;
Karsten Hopp 4f36fa
      }
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 6461,6478 ****
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
    PYTHON_SRC="if_python.c"
Karsten Hopp 4f36fa
    PYTHON_OBJ="objects/if_python.o"
Karsten Hopp 4f36fa
!   PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${python_INSTSONAME}\\\""
Karsten Hopp 4f36fa
    PYTHON_LIBS=
Karsten Hopp 4f36fa
    PYTHON3_SRC="if_python3.c"
Karsten Hopp 4f36fa
    PYTHON3_OBJ="objects/if_python3.o"
Karsten Hopp 4f36fa
!   PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${python3_INSTSONAME}\\\""
Karsten Hopp 4f36fa
    PYTHON3_LIBS=
Karsten Hopp 4f36fa
  elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
Karsten Hopp 4f36fa
    $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
    PYTHON_SRC="if_python.c"
Karsten Hopp 4f36fa
    PYTHON_OBJ="objects/if_python.o"
Karsten Hopp 4f36fa
!   PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${python_INSTSONAME}\\\""
Karsten Hopp 4f36fa
    PYTHON_LIBS=
Karsten Hopp 4f36fa
  elif test "$python_ok" = yes; then
Karsten Hopp 4f36fa
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
Karsten Hopp 4f36fa
--- 6479,6496 ----
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
    PYTHON_SRC="if_python.c"
Karsten Hopp 4f36fa
    PYTHON_OBJ="objects/if_python.o"
Karsten Hopp 4f36fa
!   PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
Karsten Hopp 4f36fa
    PYTHON_LIBS=
Karsten Hopp 4f36fa
    PYTHON3_SRC="if_python3.c"
Karsten Hopp 4f36fa
    PYTHON3_OBJ="objects/if_python3.o"
Karsten Hopp 4f36fa
!   PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
Karsten Hopp 4f36fa
    PYTHON3_LIBS=
Karsten Hopp 4f36fa
  elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
Karsten Hopp 4f36fa
    $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
    PYTHON_SRC="if_python.c"
Karsten Hopp 4f36fa
    PYTHON_OBJ="objects/if_python.o"
Karsten Hopp 4f36fa
!   PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
Karsten Hopp 4f36fa
    PYTHON_LIBS=
Karsten Hopp 4f36fa
  elif test "$python_ok" = yes; then
Karsten Hopp 4f36fa
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 6511,6517 ****
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
    PYTHON3_SRC="if_python3.c"
Karsten Hopp 4f36fa
    PYTHON3_OBJ="objects/if_python3.o"
Karsten Hopp 4f36fa
!   PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${python3_INSTSONAME}\\\""
Karsten Hopp 4f36fa
    PYTHON3_LIBS=
Karsten Hopp 4f36fa
  elif test "$python3_ok" = yes; then
Karsten Hopp 4f36fa
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
Karsten Hopp 4f36fa
--- 6529,6535 ----
Karsten Hopp 4f36fa
  
Karsten Hopp 4f36fa
    PYTHON3_SRC="if_python3.c"
Karsten Hopp 4f36fa
    PYTHON3_OBJ="objects/if_python3.o"
Karsten Hopp 4f36fa
!   PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
Karsten Hopp 4f36fa
    PYTHON3_LIBS=
Karsten Hopp 4f36fa
  elif test "$python3_ok" = yes; then
Karsten Hopp 4f36fa
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 11420,11426 ****
Karsten Hopp 4f36fa
      We can't simply define LARGE_OFF_T to be 9223372036854775807,
Karsten Hopp 4f36fa
      since some C++ compilers masquerading as C compilers
Karsten Hopp 4f36fa
      incorrectly reject 9223372036854775807.  */
Karsten Hopp 4f36fa
! #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
Karsten Hopp 4f36fa
    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Karsten Hopp 4f36fa
  		       && LARGE_OFF_T % 2147483647 == 1)
Karsten Hopp 4f36fa
  		      ? 1 : -1];
Karsten Hopp 4f36fa
--- 11438,11444 ----
Karsten Hopp 4f36fa
      We can't simply define LARGE_OFF_T to be 9223372036854775807,
Karsten Hopp 4f36fa
      since some C++ compilers masquerading as C compilers
Karsten Hopp 4f36fa
      incorrectly reject 9223372036854775807.  */
Karsten Hopp 4f36fa
! #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
Karsten Hopp 4f36fa
    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Karsten Hopp 4f36fa
  		       && LARGE_OFF_T % 2147483647 == 1)
Karsten Hopp 4f36fa
  		      ? 1 : -1];
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 11466,11472 ****
Karsten Hopp 4f36fa
      We can't simply define LARGE_OFF_T to be 9223372036854775807,
Karsten Hopp 4f36fa
      since some C++ compilers masquerading as C compilers
Karsten Hopp 4f36fa
      incorrectly reject 9223372036854775807.  */
Karsten Hopp 4f36fa
! #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
Karsten Hopp 4f36fa
    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Karsten Hopp 4f36fa
  		       && LARGE_OFF_T % 2147483647 == 1)
Karsten Hopp 4f36fa
  		      ? 1 : -1];
Karsten Hopp 4f36fa
--- 11484,11490 ----
Karsten Hopp 4f36fa
      We can't simply define LARGE_OFF_T to be 9223372036854775807,
Karsten Hopp 4f36fa
      since some C++ compilers masquerading as C compilers
Karsten Hopp 4f36fa
      incorrectly reject 9223372036854775807.  */
Karsten Hopp 4f36fa
! #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
Karsten Hopp 4f36fa
    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Karsten Hopp 4f36fa
  		       && LARGE_OFF_T % 2147483647 == 1)
Karsten Hopp 4f36fa
  		      ? 1 : -1];
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 11490,11496 ****
Karsten Hopp 4f36fa
      We can't simply define LARGE_OFF_T to be 9223372036854775807,
Karsten Hopp 4f36fa
      since some C++ compilers masquerading as C compilers
Karsten Hopp 4f36fa
      incorrectly reject 9223372036854775807.  */
Karsten Hopp 4f36fa
! #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
Karsten Hopp 4f36fa
    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Karsten Hopp 4f36fa
  		       && LARGE_OFF_T % 2147483647 == 1)
Karsten Hopp 4f36fa
  		      ? 1 : -1];
Karsten Hopp 4f36fa
--- 11508,11514 ----
Karsten Hopp 4f36fa
      We can't simply define LARGE_OFF_T to be 9223372036854775807,
Karsten Hopp 4f36fa
      since some C++ compilers masquerading as C compilers
Karsten Hopp 4f36fa
      incorrectly reject 9223372036854775807.  */
Karsten Hopp 4f36fa
! #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
Karsten Hopp 4f36fa
    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Karsten Hopp 4f36fa
  		       && LARGE_OFF_T % 2147483647 == 1)
Karsten Hopp 4f36fa
  		      ? 1 : -1];
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 11535,11541 ****
Karsten Hopp 4f36fa
      We can't simply define LARGE_OFF_T to be 9223372036854775807,
Karsten Hopp 4f36fa
      since some C++ compilers masquerading as C compilers
Karsten Hopp 4f36fa
      incorrectly reject 9223372036854775807.  */
Karsten Hopp 4f36fa
! #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
Karsten Hopp 4f36fa
    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Karsten Hopp 4f36fa
  		       && LARGE_OFF_T % 2147483647 == 1)
Karsten Hopp 4f36fa
  		      ? 1 : -1];
Karsten Hopp 4f36fa
--- 11553,11559 ----
Karsten Hopp 4f36fa
      We can't simply define LARGE_OFF_T to be 9223372036854775807,
Karsten Hopp 4f36fa
      since some C++ compilers masquerading as C compilers
Karsten Hopp 4f36fa
      incorrectly reject 9223372036854775807.  */
Karsten Hopp 4f36fa
! #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
Karsten Hopp 4f36fa
    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Karsten Hopp 4f36fa
  		       && LARGE_OFF_T % 2147483647 == 1)
Karsten Hopp 4f36fa
  		      ? 1 : -1];
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 11559,11565 ****
Karsten Hopp 4f36fa
      We can't simply define LARGE_OFF_T to be 9223372036854775807,
Karsten Hopp 4f36fa
      since some C++ compilers masquerading as C compilers
Karsten Hopp 4f36fa
      incorrectly reject 9223372036854775807.  */
Karsten Hopp 4f36fa
! #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
Karsten Hopp 4f36fa
    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Karsten Hopp 4f36fa
  		       && LARGE_OFF_T % 2147483647 == 1)
Karsten Hopp 4f36fa
  		      ? 1 : -1];
Karsten Hopp 4f36fa
--- 11577,11583 ----
Karsten Hopp 4f36fa
      We can't simply define LARGE_OFF_T to be 9223372036854775807,
Karsten Hopp 4f36fa
      since some C++ compilers masquerading as C compilers
Karsten Hopp 4f36fa
      incorrectly reject 9223372036854775807.  */
Karsten Hopp 4f36fa
! #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
Karsten Hopp 4f36fa
    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Karsten Hopp 4f36fa
  		       && LARGE_OFF_T % 2147483647 == 1)
Karsten Hopp 4f36fa
  		      ? 1 : -1];
Karsten Hopp 4f36fa
*** ../vim-7.4.298/src/version.c	2014-05-22 14:19:51.674510749 +0200
Karsten Hopp 4f36fa
--- src/version.c	2014-05-22 14:36:44.634490162 +0200
Karsten Hopp 4f36fa
***************
Karsten Hopp 4f36fa
*** 736,737 ****
Karsten Hopp 4f36fa
--- 736,739 ----
Karsten Hopp 4f36fa
  {   /* Add new patch number below this line */
Karsten Hopp 4f36fa
+ /**/
Karsten Hopp 4f36fa
+     299,
Karsten Hopp 4f36fa
  /**/
Karsten Hopp 4f36fa
Karsten Hopp 4f36fa
-- 
Karsten Hopp 4f36fa
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 4f36fa
190. You quickly hand over your wallet, leather jacket, and car keys
Karsten Hopp 4f36fa
     during a mugging, then proceed to beat the crap out of your
Karsten Hopp 4f36fa
     assailant when he asks for your laptop.
Karsten Hopp 4f36fa
Karsten Hopp 4f36fa
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 4f36fa
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 4f36fa
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 4f36fa
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///