38fd800
To: vim-dev@vim.org
38fd800
Subject: Patch 7.1.179
38fd800
Fcc: outbox
38fd800
From: Bram Moolenaar <Bram@moolenaar.net>
38fd800
Mime-Version: 1.0
38fd800
Content-Type: text/plain; charset=ISO-8859-1
38fd800
Content-Transfer-Encoding: 8bit
38fd800
------------
38fd800
38fd800
Patch 7.1.179
38fd800
Problem:    Need to check for TCL 8.5.
38fd800
Solution:   Adjust configure script. (Alexey Froloff)
38fd800
Files:	    src/configure.in, src/auto/configure
38fd800
38fd800
38fd800
*** ../vim-7.1.178/src/configure.in	Sun Nov  4 15:35:23 2007
38fd800
--- src/configure.in	Sun Dec 30 13:55:28 2007
38fd800
***************
38fd800
*** 759,773 ****
38fd800
  
38fd800
  if test "$enable_tclinterp" = "yes"; then
38fd800
  
38fd800
!   dnl on FreeBSD tclsh is a silly script, look for tclsh8.[420]
38fd800
    AC_MSG_CHECKING(--with-tclsh argument)
38fd800
    AC_ARG_WITH(tclsh, [  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)],
38fd800
  	tclsh_name="$withval"; AC_MSG_RESULT($tclsh_name),
38fd800
! 	tclsh_name="tclsh8.4"; AC_MSG_RESULT(no))
38fd800
    AC_PATH_PROG(vi_cv_path_tcl, $tclsh_name)
38fd800
    AC_SUBST(vi_cv_path_tcl)
38fd800
  
38fd800
!   dnl when no specific version specified, also try 8.2 and 8.0
38fd800
    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
38fd800
      tclsh_name="tclsh8.2"
38fd800
      AC_PATH_PROG(vi_cv_path_tcl, $tclsh_name)
38fd800
--- 759,777 ----
38fd800
  
38fd800
  if test "$enable_tclinterp" = "yes"; then
38fd800
  
38fd800
!   dnl on FreeBSD tclsh is a silly script, look for tclsh8.[5420]
38fd800
    AC_MSG_CHECKING(--with-tclsh argument)
38fd800
    AC_ARG_WITH(tclsh, [  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)],
38fd800
  	tclsh_name="$withval"; AC_MSG_RESULT($tclsh_name),
38fd800
! 	tclsh_name="tclsh8.5"; AC_MSG_RESULT(no))
38fd800
    AC_PATH_PROG(vi_cv_path_tcl, $tclsh_name)
38fd800
    AC_SUBST(vi_cv_path_tcl)
38fd800
  
38fd800
!   dnl when no specific version specified, also try 8.4, 8.2 and 8.0
38fd800
!   if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
38fd800
!     tclsh_name="tclsh8.4"
38fd800
!     AC_PATH_PROG(vi_cv_path_tcl, $tclsh_name)
38fd800
!   fi
38fd800
    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
38fd800
      tclsh_name="tclsh8.2"
38fd800
      AC_PATH_PROG(vi_cv_path_tcl, $tclsh_name)
38fd800
***************
38fd800
*** 810,815 ****
38fd800
--- 814,820 ----
38fd800
  	AC_MSG_CHECKING(for location of tclConfig.sh script)
38fd800
  	if test "x$MACOSX" != "xyes"; then
38fd800
  	  tclcnf=`echo $tclinc | sed s/include/lib/g`
38fd800
+ 	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
38fd800
  	else
38fd800
  	  dnl For Mac OS X 10.3, use the OS-provided framework location
38fd800
  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
38fd800
***************
38fd800
*** 830,835 ****
38fd800
--- 835,841 ----
38fd800
  	  AC_MSG_RESULT(<not found>)
38fd800
  	  AC_MSG_CHECKING(for Tcl library by myself)
38fd800
  	  tcllib=`echo $tclinc | sed s/include/lib/g`
38fd800
+ 	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
38fd800
  	  for ext in .so .a ; do
38fd800
  	    for ver in "" $tclver ; do
38fd800
  	      for try in $tcllib ; do
38fd800
*** ../vim-7.1.178/src/auto/configure	Sun Nov  4 15:35:23 2007
38fd800
--- src/auto/configure	Sun Dec 30 13:55:35 2007
38fd800
***************
38fd800
*** 4445,4451 ****
38fd800
    tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
38fd800
  echo "${ECHO_T}$tclsh_name" >&6
38fd800
  else
38fd800
!   tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
38fd800
  echo "${ECHO_T}no" >&6
38fd800
  fi;
38fd800
    # Extract the first word of "$tclsh_name", so it can be a program name with args.
38fd800
--- 4445,4451 ----
38fd800
    tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
38fd800
  echo "${ECHO_T}$tclsh_name" >&6
38fd800
  else
38fd800
!   tclsh_name="tclsh8.5"; echo "$as_me:$LINENO: result: no" >&5
38fd800
  echo "${ECHO_T}no" >&6
38fd800
  fi;
38fd800
    # Extract the first word of "$tclsh_name", so it can be a program name with args.
38fd800
***************
38fd800
*** 4489,4495 ****
38fd800
  
38fd800
  
38fd800
  
38fd800
!     if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
38fd800
      tclsh_name="tclsh8.2"
38fd800
      # Extract the first word of "$tclsh_name", so it can be a program name with args.
38fd800
  set dummy $tclsh_name; ac_word=$2
38fd800
--- 4489,4537 ----
38fd800
  
38fd800
  
38fd800
  
38fd800
!     if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
38fd800
!     tclsh_name="tclsh8.4"
38fd800
!     # Extract the first word of "$tclsh_name", so it can be a program name with args.
38fd800
! set dummy $tclsh_name; ac_word=$2
38fd800
! echo "$as_me:$LINENO: checking for $ac_word" >&5
38fd800
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38fd800
! if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
38fd800
!   echo $ECHO_N "(cached) $ECHO_C" >&6
38fd800
! else
38fd800
!   case $vi_cv_path_tcl in
38fd800
!   [\\/]* | ?:[\\/]*)
38fd800
!   ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
38fd800
!   ;;
38fd800
!   *)
38fd800
!   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38fd800
! for as_dir in $PATH
38fd800
! do
38fd800
!   IFS=$as_save_IFS
38fd800
!   test -z "$as_dir" && as_dir=.
38fd800
!   for ac_exec_ext in '' $ac_executable_extensions; do
38fd800
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38fd800
!     ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
38fd800
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38fd800
!     break 2
38fd800
!   fi
38fd800
! done
38fd800
! done
38fd800
! 
38fd800
!   ;;
38fd800
! esac
38fd800
! fi
38fd800
! vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
38fd800
! 
38fd800
! if test -n "$vi_cv_path_tcl"; then
38fd800
!   echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
38fd800
! echo "${ECHO_T}$vi_cv_path_tcl" >&6
38fd800
! else
38fd800
!   echo "$as_me:$LINENO: result: no" >&5
38fd800
! echo "${ECHO_T}no" >&6
38fd800
! fi
38fd800
! 
38fd800
!   fi
38fd800
!   if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
38fd800
      tclsh_name="tclsh8.2"
38fd800
      # Extract the first word of "$tclsh_name", so it can be a program name with args.
38fd800
  set dummy $tclsh_name; ac_word=$2
38fd800
***************
38fd800
*** 4649,4654 ****
38fd800
--- 4691,4697 ----
38fd800
  echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
38fd800
  	if test "x$MACOSX" != "xyes"; then
38fd800
  	  tclcnf=`echo $tclinc | sed s/include/lib/g`
38fd800
+ 	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
38fd800
  	else
38fd800
  	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
38fd800
  	fi
38fd800
***************
38fd800
*** 4668,4673 ****
38fd800
--- 4711,4717 ----
38fd800
  	  echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
38fd800
  echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
38fd800
  	  tcllib=`echo $tclinc | sed s/include/lib/g`
38fd800
+ 	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
38fd800
  	  for ext in .so .a ; do
38fd800
  	    for ver in "" $tclver ; do
38fd800
  	      for try in $tcllib ; do
38fd800
*** ../vim-7.1.178/src/version.c	Tue Jan  1 15:42:45 2008
38fd800
--- src/version.c	Tue Jan  1 16:24:07 2008
38fd800
***************
38fd800
*** 668,669 ****
38fd800
--- 668,671 ----
38fd800
  {   /* Add new patch number below this line */
38fd800
+ /**/
38fd800
+     179,
38fd800
  /**/
38fd800
38fd800
-- 
38fd800
Just think of all the things we haven't thought of yet.
38fd800
38fd800
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
38fd800
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
38fd800
\\\        download, build and distribute -- http://www.A-A-P.org        ///
38fd800
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///