Blame SOURCES/7.4.068

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.068
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.068
22c937
Problem:    Cannot build Vim on Mac with non-Apple compilers.
22c937
Solution:   Remove the -no-cpp-precomp flag. (Misty De Meo)
22c937
Files:      src/configure.in, src/auto/configure, src/osdef.sh
22c937
22c937
22c937
*** ../vim-7.4.067/src/configure.in	2013-11-03 20:26:26.000000000 +0100
22c937
--- src/configure.in	2013-11-04 04:53:51.000000000 +0100
22c937
***************
22c937
*** 204,210 ****
22c937
      OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
22c937
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
22c937
      dnl TODO: use -arch i386 on Intel machines
22c937
!     CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
22c937
  
22c937
      dnl If Carbon is found, assume we don't want X11
22c937
      dnl unless it was specifically asked for (--with-x)
22c937
--- 204,211 ----
22c937
      OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
22c937
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
22c937
      dnl TODO: use -arch i386 on Intel machines
22c937
!     dnl Removed -no-cpp-precomp, only for very old compilers.
22c937
!     CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX"
22c937
  
22c937
      dnl If Carbon is found, assume we don't want X11
22c937
      dnl unless it was specifically asked for (--with-x)
22c937
***************
22c937
*** 262,269 ****
22c937
    ])
22c937
    if test "$GCC" = yes -a "$local_dir" != no; then
22c937
      echo 'void f(){}' > conftest.c
22c937
!     dnl -no-cpp-precomp is needed for OS X 10.2 (Ben Fowler)
22c937
!     have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
22c937
      have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
22c937
      rm -f conftest.c conftest.o
22c937
    fi
22c937
--- 263,270 ----
22c937
    ])
22c937
    if test "$GCC" = yes -a "$local_dir" != no; then
22c937
      echo 'void f(){}' > conftest.c
22c937
!     dnl Removed -no-cpp-precomp, only needed for OS X 10.2 (Ben Fowler)
22c937
!     have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
22c937
      have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
22c937
      rm -f conftest.c conftest.o
22c937
    fi
22c937
*** ../vim-7.4.067/src/auto/configure	2013-11-03 20:26:27.000000000 +0100
22c937
--- src/auto/configure	2013-11-04 04:54:16.000000000 +0100
22c937
***************
22c937
*** 4221,4227 ****
22c937
      MACOSX=yes
22c937
      OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
22c937
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
22c937
!         CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
22c937
  
22c937
                  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
22c937
  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
22c937
--- 4221,4227 ----
22c937
      MACOSX=yes
22c937
      OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
22c937
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
22c937
!             CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX"
22c937
  
22c937
                  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
22c937
  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
22c937
***************
22c937
*** 4311,4317 ****
22c937
  
22c937
    if test "$GCC" = yes -a "$local_dir" != no; then
22c937
      echo 'void f(){}' > conftest.c
22c937
!         have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
22c937
      have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
22c937
      rm -f conftest.c conftest.o
22c937
    fi
22c937
--- 4311,4317 ----
22c937
  
22c937
    if test "$GCC" = yes -a "$local_dir" != no; then
22c937
      echo 'void f(){}' > conftest.c
22c937
!         have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
22c937
      have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
22c937
      rm -f conftest.c conftest.o
22c937
    fi
22c937
*** ../vim-7.4.067/src/osdef.sh	2010-05-15 13:04:08.000000000 +0200
22c937
--- src/osdef.sh	2013-11-04 04:51:36.000000000 +0100
22c937
***************
22c937
*** 47,57 ****
22c937
  #endif
22c937
  EOF
22c937
  
22c937
! # Mac uses precompiled headers, but we need real headers here.
22c937
! case `uname` in
22c937
!     Darwin)	$CC -I. -I$srcdir -E -no-cpp-precomp osdef0.c >osdef0.cc;;
22c937
!     *)		$CC -I. -I$srcdir -E osdef0.c >osdef0.cc;;
22c937
! esac
22c937
  
22c937
  # insert a space in front of each line, so that a function name at the
22c937
  # start of the line is matched with "[)*, 	]\1[ 	(]"
22c937
--- 47,53 ----
22c937
  #endif
22c937
  EOF
22c937
  
22c937
! $CC -I. -I$srcdir -E osdef0.c >osdef0.cc
22c937
  
22c937
  # insert a space in front of each line, so that a function name at the
22c937
  # start of the line is matched with "[)*, 	]\1[ 	(]"
22c937
*** ../vim-7.4.067/src/version.c	2013-11-04 04:20:28.000000000 +0100
22c937
--- src/version.c	2013-11-04 04:51:51.000000000 +0100
22c937
***************
22c937
*** 740,741 ****
22c937
--- 740,743 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     68,
22c937
  /**/
22c937
22c937
-- 
22c937
Violators can be fined, arrested or jailed for making ugly faces at a dog.
22c937
		[real standing law in Oklahoma, United States of America]
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///