jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone
3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.055
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.055
3ef2ca
Problem:    Mac: Where availability macros are defined depends on the system.
3ef2ca
Solution:   Add a configure check. (Felix Bünemann) 
3ef2ca
Files:      src/config.h.in, src/configure.in, src/auto/configure,
3ef2ca
            src/os_mac.h
3ef2ca
3ef2ca
*** ../vim-7.4.054/src/config.h.in	2013-02-26 14:18:19.000000000 +0100
3ef2ca
--- src/config.h.in	2013-11-02 20:52:08.000000000 +0100
3ef2ca
***************
3ef2ca
*** 442,444 ****
3ef2ca
--- 442,447 ----
3ef2ca
  
3ef2ca
  /* Define if you want Cygwin to use the WIN32 clipboard, not compatible with X11*/
3ef2ca
  #undef FEAT_CYGWIN_WIN32_CLIPBOARD
3ef2ca
+ 
3ef2ca
+ /* Define if we have AvailabilityMacros.h on Mac OS X */
3ef2ca
+ #undef HAVE_AVAILABILITYMACROS_H
3ef2ca
*** ../vim-7.4.054/src/configure.in	2013-10-02 18:22:58.000000000 +0200
3ef2ca
--- src/configure.in	2013-11-02 20:58:58.000000000 +0100
3ef2ca
***************
3ef2ca
*** 206,211 ****
3ef2ca
--- 206,215 ----
3ef2ca
      dnl TODO: use -arch i386 on Intel machines
3ef2ca
      CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3ef2ca
  
3ef2ca
+     dnl Mac OS X 10.9+ no longer include AvailabilityMacros.h in Carbon
3ef2ca
+     dnl so we need to include it to have access to version macros.
3ef2ca
+     AC_CHECK_HEADER(AvailabilityMacros.h, [AC_DEFINE(HAVE_AVAILABILITYMACROS_H, 1, [ Define if we have AvailabilityMacros.h on Mac OS X ])])
3ef2ca
+ 
3ef2ca
      dnl If Carbon is found, assume we don't want X11
3ef2ca
      dnl unless it was specifically asked for (--with-x)
3ef2ca
      dnl or Motif, Athena or GTK GUI is used.
3ef2ca
*** ../vim-7.4.054/src/auto/configure	2013-10-02 18:22:58.000000000 +0200
3ef2ca
--- src/auto/configure	2013-11-02 21:00:40.000000000 +0100
3ef2ca
***************
3ef2ca
*** 4223,4229 ****
3ef2ca
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3ef2ca
          CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3ef2ca
  
3ef2ca
!                 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3ef2ca
  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3ef2ca
  		  inttypes.h stdint.h unistd.h
3ef2ca
  do :
3ef2ca
--- 4223,4229 ----
3ef2ca
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3ef2ca
          CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3ef2ca
  
3ef2ca
!             # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3ef2ca
  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3ef2ca
  		  inttypes.h stdint.h unistd.h
3ef2ca
  do :
3ef2ca
***************
3ef2ca
*** 4241,4247 ****
3ef2ca
  done
3ef2ca
  
3ef2ca
  
3ef2ca
! ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
3ef2ca
  if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
3ef2ca
    CARBON=yes
3ef2ca
  fi
3ef2ca
--- 4241,4256 ----
3ef2ca
  done
3ef2ca
  
3ef2ca
  
3ef2ca
! ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
3ef2ca
! if test "x$ac_cv_header_AvailabilityMacros_h" = x""yes; then :
3ef2ca
! 
3ef2ca
! $as_echo "#define HAVE_AVAILABILITYMACROS_H 1" >>confdefs.h
3ef2ca
! 
3ef2ca
! fi
3ef2ca
! 
3ef2ca
! 
3ef2ca
! 
3ef2ca
!                 ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
3ef2ca
  if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
3ef2ca
    CARBON=yes
3ef2ca
  fi
3ef2ca
*** ../vim-7.4.054/src/os_mac.h	2013-05-06 04:06:04.000000000 +0200
3ef2ca
--- src/os_mac.h	2013-11-02 20:59:46.000000000 +0100
3ef2ca
***************
3ef2ca
*** 16,21 ****
3ef2ca
--- 16,26 ----
3ef2ca
  # define OPAQUE_TOOLBOX_STRUCTS 0
3ef2ca
  #endif
3ef2ca
  
3ef2ca
+ /* Include MAC_OS_X_VERSION_* macros */
3ef2ca
+ #ifdef HAVE_AVAILABILITYMACROS_H
3ef2ca
+ # include <AvailabilityMacros.h>
3ef2ca
+ #endif
3ef2ca
+ 
3ef2ca
  /*
3ef2ca
   * Macintosh machine-dependent things.
3ef2ca
   *
3ef2ca
***************
3ef2ca
*** 263,269 ****
3ef2ca
  #endif
3ef2ca
  
3ef2ca
  /* Some "prep work" definition to be able to compile the MacOS X
3ef2ca
!  * version with os_unix.x instead of os_mac.c. Based on the result
3ef2ca
   * of ./configure for console MacOS X.
3ef2ca
   */
3ef2ca
  
3ef2ca
--- 268,274 ----
3ef2ca
  #endif
3ef2ca
  
3ef2ca
  /* Some "prep work" definition to be able to compile the MacOS X
3ef2ca
!  * version with os_unix.c instead of os_mac.c. Based on the result
3ef2ca
   * of ./configure for console MacOS X.
3ef2ca
   */
3ef2ca
  
3ef2ca
*** ../vim-7.4.054/src/version.c	2013-11-02 04:39:34.000000000 +0100
3ef2ca
--- src/version.c	2013-11-02 21:01:10.000000000 +0100
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     55,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
You can be stopped by the police for biking over 65 miles per hour.
3ef2ca
You are not allowed to walk across a street on your hands.
3ef2ca
		[real standing laws in Connecticut, United States of America]
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///