073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.258
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.258
073263
Problem:    Configure fails if $CC contains options.
073263
Solution:   Remove quotes around $CC. (Paul Barker)
073263
Files:	    src/configure.in, src/auto/configure
073263
073263
073263
*** ../vim-7.4.257/src/configure.in	2014-04-10 20:00:03.708106386 +0200
073263
--- src/configure.in	2014-04-12 13:00:51.332428899 +0200
073263
***************
073263
*** 46,55 ****
073263
  fi
073263
  if test "$GCC" = yes; then
073263
    dnl method that should work for nearly all versions
073263
!   gccversion=`"$CC" -dumpversion`
073263
    if test "x$gccversion" = "x"; then
073263
      dnl old method; fall-back for when -dumpversion doesn't work
073263
!     gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[[^0-9]]*\([[0-9]]\.[[0-9.]]*\).*$/\1/g'`
073263
    fi
073263
    dnl version 4.0.1 was reported to cause trouble on Macintosh by Marcin Dalecki
073263
    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
073263
--- 46,55 ----
073263
  fi
073263
  if test "$GCC" = yes; then
073263
    dnl method that should work for nearly all versions
073263
!   gccversion=`$CC -dumpversion`
073263
    if test "x$gccversion" = "x"; then
073263
      dnl old method; fall-back for when -dumpversion doesn't work
073263
!     gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[[^0-9]]*\([[0-9]]\.[[0-9.]]*\).*$/\1/g'`
073263
    fi
073263
    dnl version 4.0.1 was reported to cause trouble on Macintosh by Marcin Dalecki
073263
    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
073263
***************
073263
*** 68,74 ****
073263
  dnl the version number of the clang in use.
073263
  dnl Note that this does not work to get the version of clang 3.1 or 3.2.
073263
  AC_MSG_CHECKING(for recent clang version)
073263
! CLANG_VERSION_STRING=`"$CC" --version 2>/dev/null | sed  -n -e 's/^.*clang.*\([[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\).*$/\1/p'`
073263
  if test x"$CLANG_VERSION_STRING" != x"" ; then
073263
    CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([[0-9]][[0-9]]*\)\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*/\1/p'`
073263
    CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[[0-9]][[0-9]]*\.\([[0-9]][[0-9]]*\)\.[[0-9]][[0-9]]*/\1/p'`
073263
--- 68,74 ----
073263
  dnl the version number of the clang in use.
073263
  dnl Note that this does not work to get the version of clang 3.1 or 3.2.
073263
  AC_MSG_CHECKING(for recent clang version)
073263
! CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed  -n -e 's/^.*clang.*\([[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\).*$/\1/p'`
073263
  if test x"$CLANG_VERSION_STRING" != x"" ; then
073263
    CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([[0-9]][[0-9]]*\)\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*/\1/p'`
073263
    CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[[0-9]][[0-9]]*\.\([[0-9]][[0-9]]*\)\.[[0-9]][[0-9]]*/\1/p'`
073263
*** ../vim-7.4.257/src/auto/configure	2014-04-10 20:00:03.716106386 +0200
073263
--- src/auto/configure	2014-04-12 13:00:58.436428915 +0200
073263
***************
073263
*** 4074,4082 ****
073263
    test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
073263
  fi
073263
  if test "$GCC" = yes; then
073263
!     gccversion=`"$CC" -dumpversion`
073263
    if test "x$gccversion" = "x"; then
073263
!         gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
073263
    fi
073263
      if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
073263
      echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
073263
--- 4074,4082 ----
073263
    test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
073263
  fi
073263
  if test "$GCC" = yes; then
073263
!     gccversion=`$CC -dumpversion`
073263
    if test "x$gccversion" = "x"; then
073263
!         gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
073263
    fi
073263
      if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
073263
      echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
073263
***************
073263
*** 4091,4097 ****
073263
  
073263
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent clang version" >&5
073263
  $as_echo_n "checking for recent clang version... " >&6; }
073263
! CLANG_VERSION_STRING=`"$CC" --version 2>/dev/null | sed  -n -e 's/^.*clang.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'`
073263
  if test x"$CLANG_VERSION_STRING" != x"" ; then
073263
    CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
073263
    CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
073263
--- 4091,4097 ----
073263
  
073263
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent clang version" >&5
073263
  $as_echo_n "checking for recent clang version... " >&6; }
073263
! CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed  -n -e 's/^.*clang.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'`
073263
  if test x"$CLANG_VERSION_STRING" != x"" ; then
073263
    CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
073263
    CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
073263
*** ../vim-7.4.257/src/version.c	2014-04-12 12:26:25.856424387 +0200
073263
--- src/version.c	2014-04-12 13:05:09.372429463 +0200
073263
***************
073263
*** 736,737 ****
073263
--- 736,739 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     258,
073263
  /**/
073263
073263
-- 
073263
Never go to the toilet in a paperless office.
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///