jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.061

8b9a1c
To: vim_dev@googlegroups.com
8b9a1c
Subject: Patch 7.4.061
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.061 (after 7.4.055 and 7.4.056)
8b9a1c
Problem:    Availability macros configure check in wrong place.
8b9a1c
Solution:   Also check when not using Darwin. Remove version check.
8b9a1c
Files:      src/configure.in, src/auto/configure, src/os_unix.c
8b9a1c
8b9a1c
8b9a1c
*** ../vim-7.4.060/src/configure.in	2013-11-02 21:04:32.000000000 +0100
8b9a1c
--- src/configure.in	2013-11-03 00:34:07.000000000 +0100
8b9a1c
***************
8b9a1c
*** 206,215 ****
8b9a1c
      dnl TODO: use -arch i386 on Intel machines
8b9a1c
      CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
8b9a1c
  
8b9a1c
-     dnl Mac OS X 10.9+ no longer include AvailabilityMacros.h in Carbon
8b9a1c
-     dnl so we need to include it to have access to version macros.
8b9a1c
-     AC_CHECK_HEADER(AvailabilityMacros.h, [AC_DEFINE(HAVE_AVAILABILITYMACROS_H, 1, [ Define if we have AvailabilityMacros.h on Mac OS X ])])
8b9a1c
- 
8b9a1c
      dnl If Carbon is found, assume we don't want X11
8b9a1c
      dnl unless it was specifically asked for (--with-x)
8b9a1c
      dnl or Motif, Athena or GTK GUI is used.
8b9a1c
--- 206,211 ----
8b9a1c
***************
8b9a1c
*** 232,237 ****
8b9a1c
--- 228,237 ----
8b9a1c
    AC_MSG_RESULT(no)
8b9a1c
  fi
8b9a1c
  
8b9a1c
+ dnl Mac OS X 10.9+ no longer include AvailabilityMacros.h in Carbon
8b9a1c
+ dnl so we need to include it to have access to version macros.
8b9a1c
+ AC_CHECK_HEADER(AvailabilityMacros.h, HAVE_AVAILABILITYMACROS_H=1)
8b9a1c
+ 
8b9a1c
  AC_SUBST(OS_EXTRA_SRC)
8b9a1c
  AC_SUBST(OS_EXTRA_OBJ)
8b9a1c
  
8b9a1c
*** ../vim-7.4.060/src/auto/configure	2013-11-02 21:04:32.000000000 +0100
8b9a1c
--- src/auto/configure	2013-11-03 00:36:20.000000000 +0100
8b9a1c
***************
8b9a1c
*** 4223,4229 ****
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
  		  inttypes.h stdint.h unistd.h
8b9a1c
  do :
8b9a1c
--- 4223,4229 ----
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
  		  inttypes.h stdint.h unistd.h
8b9a1c
  do :
8b9a1c
***************
8b9a1c
*** 4241,4256 ****
8b9a1c
  done
8b9a1c
  
8b9a1c
  
8b9a1c
! ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
8b9a1c
! if test "x$ac_cv_header_AvailabilityMacros_h" = x""yes; then :
8b9a1c
! 
8b9a1c
! $as_echo "#define HAVE_AVAILABILITYMACROS_H 1" >>confdefs.h
8b9a1c
! 
8b9a1c
! fi
8b9a1c
! 
8b9a1c
! 
8b9a1c
! 
8b9a1c
!                 ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
8b9a1c
  if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
8b9a1c
    CARBON=yes
8b9a1c
  fi
8b9a1c
--- 4241,4247 ----
8b9a1c
  done
8b9a1c
  
8b9a1c
  
8b9a1c
! ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
8b9a1c
  if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
8b9a1c
    CARBON=yes
8b9a1c
  fi
8b9a1c
***************
8b9a1c
*** 4272,4277 ****
8b9a1c
--- 4263,4275 ----
8b9a1c
  $as_echo "no" >&6; }
8b9a1c
  fi
8b9a1c
  
8b9a1c
+ ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
8b9a1c
+ if test "x$ac_cv_header_AvailabilityMacros_h" = x""yes; then :
8b9a1c
+   HAVE_AVAILABILITYMACROS_H=1
8b9a1c
+ fi
8b9a1c
+ 
8b9a1c
+ 
8b9a1c
+ 
8b9a1c
  
8b9a1c
  
8b9a1c
  
8b9a1c
*** ../vim-7.4.060/src/os_unix.c	2013-11-02 21:49:28.000000000 +0100
8b9a1c
--- src/os_unix.c	2013-11-03 00:34:29.000000000 +0100
8b9a1c
***************
8b9a1c
*** 804,812 ****
8b9a1c
   * completely full.
8b9a1c
   */
8b9a1c
  
8b9a1c
! #if defined(HAVE_AVAILABILITYMACROS_H) \
8b9a1c
!     && defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \
8b9a1c
!     && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1090)
8b9a1c
  # include <AvailabilityMacros.h>
8b9a1c
  #endif
8b9a1c
  
8b9a1c
--- 804,810 ----
8b9a1c
   * completely full.
8b9a1c
   */
8b9a1c
  
8b9a1c
! #if defined(HAVE_AVAILABILITYMACROS_H)
8b9a1c
  # include <AvailabilityMacros.h>
8b9a1c
  #endif
8b9a1c
  
8b9a1c
*** ../vim-7.4.060/src/version.c	2013-11-03 00:28:20.000000000 +0100
8b9a1c
--- src/version.c	2013-11-03 00:37:02.000000000 +0100
8b9a1c
***************
8b9a1c
*** 740,741 ****
8b9a1c
--- 740,743 ----
8b9a1c
  {   /* Add new patch number below this line */
8b9a1c
+ /**/
8b9a1c
+     61,
8b9a1c
  /**/
8b9a1c
8b9a1c
-- 
8b9a1c
It is illegal to rob a bank and then shoot at the bank teller with a water
8b9a1c
pistol.
8b9a1c
		[real standing law in Louisana, 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    ///