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