Karsten Hopp c7c6fe
To: vim_dev@googlegroups.com
Karsten Hopp c7c6fe
Subject: Patch 7.3.1101
Karsten Hopp c7c6fe
Fcc: outbox
Karsten Hopp c7c6fe
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c7c6fe
Mime-Version: 1.0
Karsten Hopp c7c6fe
Content-Type: text/plain; charset=UTF-8
Karsten Hopp c7c6fe
Content-Transfer-Encoding: 8bit
Karsten Hopp c7c6fe
------------
Karsten Hopp c7c6fe
Karsten Hopp c7c6fe
Patch 7.3.1101
Karsten Hopp c7c6fe
Problem:    Configure doesn't find Python 3 on Ubuntu 13.04.
Karsten Hopp c7c6fe
Solution:   First try distutils.sysconfig. Also fix some indents.  (Ken
Karsten Hopp c7c6fe
	    Takata)
Karsten Hopp c7c6fe
Files:	    src/configure.in, src/auto/configure
Karsten Hopp c7c6fe
Karsten Hopp c7c6fe
Karsten Hopp c7c6fe
*** ../vim-7.3.1100/src/configure.in	2013-05-15 14:51:31.000000000 +0200
Karsten Hopp c7c6fe
--- src/configure.in	2013-06-02 19:02:31.000000000 +0200
Karsten Hopp c7c6fe
***************
Karsten Hopp c7c6fe
*** 899,912 ****
Karsten Hopp c7c6fe
        AC_CACHE_CHECK(Python's configuration directory,vi_cv_path_python_conf,
Karsten Hopp c7c6fe
        [
Karsten Hopp c7c6fe
  	vi_cv_path_python_conf=
Karsten Hopp c7c6fe
! 	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
Karsten Hopp c7c6fe
! 	  for subdir in lib64 lib share; do
Karsten Hopp c7c6fe
! 	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
Karsten Hopp c7c6fe
! 	    if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
! 	      vi_cv_path_python_conf="$d"
Karsten Hopp c7c6fe
! 	    fi
Karsten Hopp c7c6fe
  	  done
Karsten Hopp c7c6fe
! 	done
Karsten Hopp c7c6fe
        ])
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
        PYTHON_CONFDIR="${vi_cv_path_python_conf}"
Karsten Hopp c7c6fe
--- 899,917 ----
Karsten Hopp c7c6fe
        AC_CACHE_CHECK(Python's configuration directory,vi_cv_path_python_conf,
Karsten Hopp c7c6fe
        [
Karsten Hopp c7c6fe
  	vi_cv_path_python_conf=
Karsten Hopp c7c6fe
! 	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
Karsten Hopp c7c6fe
! 	if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
! 	  vi_cv_path_python_conf="$d"
Karsten Hopp c7c6fe
! 	else
Karsten Hopp c7c6fe
! 	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
Karsten Hopp c7c6fe
! 	    for subdir in lib64 lib share; do
Karsten Hopp c7c6fe
! 	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
Karsten Hopp c7c6fe
! 	      if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
! 		vi_cv_path_python_conf="$d"
Karsten Hopp c7c6fe
! 	      fi
Karsten Hopp c7c6fe
! 	    done
Karsten Hopp c7c6fe
  	  done
Karsten Hopp c7c6fe
! 	fi
Karsten Hopp c7c6fe
        ])
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
        PYTHON_CONFDIR="${vi_cv_path_python_conf}"
Karsten Hopp c7c6fe
***************
Karsten Hopp c7c6fe
*** 1097,1110 ****
Karsten Hopp c7c6fe
       if test "${vi_cv_var_python3_abiflags}" != ""; then
Karsten Hopp c7c6fe
         config_dir="${config_dir}-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
Karsten Hopp c7c6fe
       fi
Karsten Hopp c7c6fe
!      for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
Karsten Hopp c7c6fe
!        for subdir in lib64 lib share; do
Karsten Hopp c7c6fe
!          d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
Karsten Hopp c7c6fe
!          if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
!            vi_cv_path_python3_conf="$d"
Karsten Hopp c7c6fe
!          fi
Karsten Hopp c7c6fe
         done
Karsten Hopp c7c6fe
!      done
Karsten Hopp c7c6fe
      ])
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
Karsten Hopp c7c6fe
--- 1102,1120 ----
Karsten Hopp c7c6fe
       if test "${vi_cv_var_python3_abiflags}" != ""; then
Karsten Hopp c7c6fe
         config_dir="${config_dir}-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
Karsten Hopp c7c6fe
       fi
Karsten Hopp c7c6fe
!      d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
Karsten Hopp c7c6fe
!      if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
!        vi_cv_path_python3_conf="$d"
Karsten Hopp c7c6fe
!      else
Karsten Hopp c7c6fe
!        for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
Karsten Hopp c7c6fe
! 	 for subdir in lib64 lib share; do
Karsten Hopp c7c6fe
! 	   d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
Karsten Hopp c7c6fe
! 	   if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
! 	     vi_cv_path_python3_conf="$d"
Karsten Hopp c7c6fe
! 	   fi
Karsten Hopp c7c6fe
! 	 done
Karsten Hopp c7c6fe
         done
Karsten Hopp c7c6fe
!      fi
Karsten Hopp c7c6fe
      ])
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
Karsten Hopp c7c6fe
***************
Karsten Hopp c7c6fe
*** 1498,1511 ****
Karsten Hopp c7c6fe
  	fi
Karsten Hopp c7c6fe
  	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG[['LIBRUBYARG']])"`
Karsten Hopp c7c6fe
  	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG[['LIBRUBY_A']])"`
Karsten Hopp c7c6fe
!   rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG[['libdir']])"`
Karsten Hopp c7c6fe
  	if test -f "$rubylibdir/$librubya"; then
Karsten Hopp c7c6fe
  	  librubyarg="$librubyarg"
Karsten Hopp c7c6fe
!     RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp c7c6fe
!   elif test "$librubyarg" = "libruby.a"; then
Karsten Hopp c7c6fe
!     dnl required on Mac OS 10.3 where libruby.a doesn't exist
Karsten Hopp c7c6fe
!     librubyarg="-lruby"
Karsten Hopp c7c6fe
!     RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp c7c6fe
  	fi
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
  	if test "X$librubyarg" != "X"; then
Karsten Hopp c7c6fe
--- 1508,1521 ----
Karsten Hopp c7c6fe
  	fi
Karsten Hopp c7c6fe
  	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG[['LIBRUBYARG']])"`
Karsten Hopp c7c6fe
  	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG[['LIBRUBY_A']])"`
Karsten Hopp c7c6fe
! 	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG[['libdir']])"`
Karsten Hopp c7c6fe
  	if test -f "$rubylibdir/$librubya"; then
Karsten Hopp c7c6fe
  	  librubyarg="$librubyarg"
Karsten Hopp c7c6fe
! 	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp c7c6fe
! 	elif test "$librubyarg" = "libruby.a"; then
Karsten Hopp c7c6fe
! 	  dnl required on Mac OS 10.3 where libruby.a doesn't exist
Karsten Hopp c7c6fe
! 	  librubyarg="-lruby"
Karsten Hopp c7c6fe
! 	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp c7c6fe
  	fi
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
  	if test "X$librubyarg" != "X"; then
Karsten Hopp c7c6fe
*** ../vim-7.3.1100/src/auto/configure	2013-05-15 14:51:31.000000000 +0200
Karsten Hopp c7c6fe
--- src/auto/configure	2013-06-02 19:03:17.000000000 +0200
Karsten Hopp c7c6fe
***************
Karsten Hopp c7c6fe
*** 5347,5360 ****
Karsten Hopp c7c6fe
  else
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
  	vi_cv_path_python_conf=
Karsten Hopp c7c6fe
! 	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
Karsten Hopp c7c6fe
! 	  for subdir in lib64 lib share; do
Karsten Hopp c7c6fe
! 	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
Karsten Hopp c7c6fe
! 	    if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
! 	      vi_cv_path_python_conf="$d"
Karsten Hopp c7c6fe
! 	    fi
Karsten Hopp c7c6fe
  	  done
Karsten Hopp c7c6fe
! 	done
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
  fi
Karsten Hopp c7c6fe
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
Karsten Hopp c7c6fe
--- 5347,5365 ----
Karsten Hopp c7c6fe
  else
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
  	vi_cv_path_python_conf=
Karsten Hopp c7c6fe
! 	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
Karsten Hopp c7c6fe
! 	if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
! 	  vi_cv_path_python_conf="$d"
Karsten Hopp c7c6fe
! 	else
Karsten Hopp c7c6fe
! 	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
Karsten Hopp c7c6fe
! 	    for subdir in lib64 lib share; do
Karsten Hopp c7c6fe
! 	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
Karsten Hopp c7c6fe
! 	      if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
! 		vi_cv_path_python_conf="$d"
Karsten Hopp c7c6fe
! 	      fi
Karsten Hopp c7c6fe
! 	    done
Karsten Hopp c7c6fe
  	  done
Karsten Hopp c7c6fe
! 	fi
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
  fi
Karsten Hopp c7c6fe
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
Karsten Hopp c7c6fe
***************
Karsten Hopp c7c6fe
*** 5660,5673 ****
Karsten Hopp c7c6fe
       if test "${vi_cv_var_python3_abiflags}" != ""; then
Karsten Hopp c7c6fe
         config_dir="${config_dir}-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
Karsten Hopp c7c6fe
       fi
Karsten Hopp c7c6fe
!      for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
Karsten Hopp c7c6fe
!        for subdir in lib64 lib share; do
Karsten Hopp c7c6fe
!          d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
Karsten Hopp c7c6fe
!          if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
!            vi_cv_path_python3_conf="$d"
Karsten Hopp c7c6fe
!          fi
Karsten Hopp c7c6fe
         done
Karsten Hopp c7c6fe
!      done
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
  fi
Karsten Hopp c7c6fe
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
Karsten Hopp c7c6fe
--- 5665,5683 ----
Karsten Hopp c7c6fe
       if test "${vi_cv_var_python3_abiflags}" != ""; then
Karsten Hopp c7c6fe
         config_dir="${config_dir}-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
Karsten Hopp c7c6fe
       fi
Karsten Hopp c7c6fe
!      d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
Karsten Hopp c7c6fe
!      if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
!        vi_cv_path_python3_conf="$d"
Karsten Hopp c7c6fe
!      else
Karsten Hopp c7c6fe
!        for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
Karsten Hopp c7c6fe
! 	 for subdir in lib64 lib share; do
Karsten Hopp c7c6fe
! 	   d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
Karsten Hopp c7c6fe
! 	   if test -d "$d" && test -f "$d/config.c"; then
Karsten Hopp c7c6fe
! 	     vi_cv_path_python3_conf="$d"
Karsten Hopp c7c6fe
! 	   fi
Karsten Hopp c7c6fe
! 	 done
Karsten Hopp c7c6fe
         done
Karsten Hopp c7c6fe
!      fi
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
  fi
Karsten Hopp c7c6fe
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
Karsten Hopp c7c6fe
***************
Karsten Hopp c7c6fe
*** 6408,6420 ****
Karsten Hopp c7c6fe
  	fi
Karsten Hopp c7c6fe
  	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
Karsten Hopp c7c6fe
  	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
Karsten Hopp c7c6fe
!   rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
Karsten Hopp c7c6fe
  	if test -f "$rubylibdir/$librubya"; then
Karsten Hopp c7c6fe
  	  librubyarg="$librubyarg"
Karsten Hopp c7c6fe
!     RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp c7c6fe
!   elif test "$librubyarg" = "libruby.a"; then
Karsten Hopp c7c6fe
!         librubyarg="-lruby"
Karsten Hopp c7c6fe
!     RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp c7c6fe
  	fi
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
  	if test "X$librubyarg" != "X"; then
Karsten Hopp c7c6fe
--- 6418,6430 ----
Karsten Hopp c7c6fe
  	fi
Karsten Hopp c7c6fe
  	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
Karsten Hopp c7c6fe
  	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
Karsten Hopp c7c6fe
! 	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
Karsten Hopp c7c6fe
  	if test -f "$rubylibdir/$librubya"; then
Karsten Hopp c7c6fe
  	  librubyarg="$librubyarg"
Karsten Hopp c7c6fe
! 	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp c7c6fe
! 	elif test "$librubyarg" = "libruby.a"; then
Karsten Hopp c7c6fe
! 	  	  librubyarg="-lruby"
Karsten Hopp c7c6fe
! 	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp c7c6fe
  	fi
Karsten Hopp c7c6fe
  
Karsten Hopp c7c6fe
  	if test "X$librubyarg" != "X"; then
Karsten Hopp c7c6fe
*** ../vim-7.3.1100/src/version.c	2013-06-02 18:54:16.000000000 +0200
Karsten Hopp c7c6fe
--- src/version.c	2013-06-02 19:01:39.000000000 +0200
Karsten Hopp c7c6fe
***************
Karsten Hopp c7c6fe
*** 730,731 ****
Karsten Hopp c7c6fe
--- 730,733 ----
Karsten Hopp c7c6fe
  {   /* Add new patch number below this line */
Karsten Hopp c7c6fe
+ /**/
Karsten Hopp c7c6fe
+     1101,
Karsten Hopp c7c6fe
  /**/
Karsten Hopp c7c6fe
Karsten Hopp c7c6fe
-- 
Karsten Hopp c7c6fe
hundred-and-one symptoms of being an internet addict:
Karsten Hopp c7c6fe
49. You never have to deal with busy signals when calling your ISP...because
Karsten Hopp c7c6fe
    you never log off.
Karsten Hopp c7c6fe
Karsten Hopp c7c6fe
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c7c6fe
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c7c6fe
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp c7c6fe
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///