Loading ...
Sorry, an error occurred while loading the content.

Re: vim 6.4 compile error --enable-tclinterp

Expand Messages
  • Bram Moolenaar
    ... I guess the problem is caused by the backslashes. GNU sed might choke on them. I think a solution is doubling them: diff -u -r1.20 configure ... +++
    Message 1 of 5 , Nov 23, 2005
    • 0 Attachment
      Pieter Lenaerts wrote:

      > I used the gentoo patch for configure.in in the auto/configure script
      >
      > this is how I'm patching the 6.4 release when users want tcl support:
      >
      > 2187c2187
      > < TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\ /\X/' | tr ' '
      > '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d
      > '\012'`
      > ---
      > > TCL_DEFS=`echo $TCL_DEFS | sed -e 's/-\([[^D]]\|
      > D[[^_]]\)[[^ \\\\]]\+\(\\\\.[[^ \\\\]]*\)*//g' | tr -s ' '`

      I guess the problem is caused by the backslashes. GNU sed might choke
      on them. I think a solution is doubling them:


      diff -u -r1.20 configure
      --- auto/configure 11 Oct 2005 20:31:17 -0000 1.20
      +++ auto/configure 23 Nov 2005 19:25:44 -0000
      -- @@ -4516,7 +4516,7 @@
      echo "${ECHO_T}$try/tclConfig.sh" >&6
      . $try/tclConfig.sh
      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
      - TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\ /\X/' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'`
      + TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\ /\\X/' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'`
      break
      fi
      done


      Let me know if this works, then I'll make a patch for Vim 6.4.

      --
      hundred-and-one symptoms of being an internet addict:
      180. You maintain more than six e-mail addresses.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ download, build and distribute -- http://www.A-A-P.org ///
      \\\ help me help AIDS victims -- http://www.ICCF.nl ///
    Your message has been successfully submitted and would be delivered to recipients shortly.