home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.052 < prev    next >
Encoding:
Internet Message Format  |  2001-10-31  |  4.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.052
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.052
  11. Problem:    The check for rlim_t in patch 6.0.046 does not work on some
  12.         systems. (Zdenek Sekera)
  13. Solution:   Also look in sys/resource.h for rlim_t.
  14. Files:        src/auto/configure, src/configure.in
  15.  
  16.  
  17. *** ../vim60.51/src/auto/configure    Wed Oct 31 14:21:02 2001
  18. --- src/auto/configure    Wed Oct 31 21:57:52 2001
  19. ***************
  20. *** 5145,5163 ****
  21.   
  22.   fi
  23.   
  24.   echo $ac_n "checking for rlim_t""... $ac_c" 1>&6
  25. ! echo "configure:5150: checking for rlim_t" >&5
  26.   if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
  27. !   echo $ac_n "(cached) $ac_c" 1>&6
  28.   else
  29.     cat > conftest.$ac_ext <<EOF
  30. ! #line 5155 "configure"
  31.   #include "confdefs.h"
  32.   #include <sys/types.h>
  33.   #if STDC_HEADERS
  34.   #include <stdlib.h>
  35.   #include <stddef.h>
  36.   #endif
  37.   EOF
  38.   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  39.     egrep "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  40. --- 5145,5169 ----
  41.   
  42.   fi
  43.   
  44.   echo $ac_n "checking for rlim_t""... $ac_c" 1>&6
  45. ! echo "configure:5151: checking for rlim_t" >&5
  46.   if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
  47. !   echo "$ac_t""(cached) $ac_cv_type_rlim_t" 1>&6
  48.   else
  49.     cat > conftest.$ac_ext <<EOF
  50. ! #line 5156 "configure"
  51.   #include "confdefs.h"
  52.   #include <sys/types.h>
  53.   #if STDC_HEADERS
  54.   #include <stdlib.h>
  55.   #include <stddef.h>
  56.   #endif
  57. + #ifdef HAVE_SYS_RESOURCE_H
  58. + #include <sys/resource.h>
  59. + #endif
  60. +       
  61.   EOF
  62.   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  63.     egrep "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  64. ***************
  65. *** 5169,5194 ****
  66.   fi
  67.   rm -f conftest*
  68.   
  69.   fi
  70. - echo "$ac_t""$ac_cv_type_rlim_t" 1>&6
  71.   if test $ac_cv_type_rlim_t = no; then
  72.     cat >> confdefs.h <<\EOF
  73.   #define rlim_t unsigned long
  74.   EOF
  75.   fi
  76.   
  77.   echo $ac_n "checking for stack_t""... $ac_c" 1>&6
  78. ! echo "configure:5184: checking for stack_t" >&5
  79.   if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
  80.     echo "$ac_t""(cached) $ac_cv_type_stack_t" 1>&6
  81.   else
  82.     cat > conftest.$ac_ext <<EOF
  83. ! #line 5189 "configure"
  84.   #include "confdefs.h"
  85.   
  86. - #include "confdefs.h"
  87.   #include <sys/types.h>
  88.   #if STDC_HEADERS
  89.   #include <stdlib.h>
  90. --- 5175,5197 ----
  91.   fi
  92.   rm -f conftest*
  93.   
  94. +       echo "$ac_t""$ac_cv_type_rlim_t" 1>&6
  95.   fi
  96.   if test $ac_cv_type_rlim_t = no; then
  97.     cat >> confdefs.h <<\EOF
  98.   #define rlim_t unsigned long
  99.   EOF
  100.   fi
  101.   
  102.   echo $ac_n "checking for stack_t""... $ac_c" 1>&6
  103. ! echo "configure:5188: checking for stack_t" >&5
  104.   if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
  105.     echo "$ac_t""(cached) $ac_cv_type_stack_t" 1>&6
  106.   else
  107.     cat > conftest.$ac_ext <<EOF
  108. ! #line 5193 "configure"
  109.   #include "confdefs.h"
  110.   
  111.   #include <sys/types.h>
  112.   #if STDC_HEADERS
  113.   #include <stdlib.h>
  114. *** ../vim60.51/src/configure.in    Wed Oct 31 14:21:02 2001
  115. --- src/configure.in    Wed Oct 31 21:57:50 2001
  116. ***************
  117. *** 1405,1411 ****
  118.   AC_HEADER_TIME
  119.   AC_CHECK_TYPE(ino_t, long)
  120.   AC_CHECK_TYPE(dev_t, unsigned)
  121. ! AC_CHECK_TYPE(rlim_t, unsigned long)
  122.   
  123.   AC_MSG_CHECKING(for stack_t)
  124.   if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
  125. --- 1405,1436 ----
  126.   AC_HEADER_TIME
  127.   AC_CHECK_TYPE(ino_t, long)
  128.   AC_CHECK_TYPE(dev_t, unsigned)
  129. ! AC_MSG_CHECKING(for rlim_t)
  130. ! if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
  131. !   AC_MSG_RESULT([(cached) $ac_cv_type_rlim_t])
  132. ! else
  133. !   AC_EGREP_CPP(dnl
  134. ! changequote(<<,>>)dnl
  135. ! <<(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]>>dnl
  136. ! changequote([,]),
  137. !   [
  138. ! #include <sys/types.h>
  139. ! #if STDC_HEADERS
  140. ! #include <stdlib.h>
  141. ! #include <stddef.h>
  142. ! #endif
  143. ! #ifdef HAVE_SYS_RESOURCE_H
  144. ! #include <sys/resource.h>
  145. ! #endif
  146. !       ], ac_cv_type_rlim_t=yes, ac_cv_type_rlim_t=no)
  147. !       AC_MSG_RESULT($ac_cv_type_rlim_t)
  148. ! fi
  149. ! if test $ac_cv_type_rlim_t = no; then
  150. !   cat >> confdefs.h <<\EOF
  151. ! #define rlim_t unsigned long
  152. ! EOF
  153. ! fi
  154.   
  155.   AC_MSG_CHECKING(for stack_t)
  156.   if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
  157. ***************
  158. *** 1413,1419 ****
  159.   else
  160.     AC_EGREP_CPP(stack_t,
  161.     [
  162. - #include "confdefs.h"
  163.   #include <sys/types.h>
  164.   #if STDC_HEADERS
  165.   #include <stdlib.h>
  166. --- 1438,1443 ----
  167. *** ../vim60.51/src/version.c    Wed Oct 31 20:51:33 2001
  168. --- src/version.c    Thu Nov  1 12:02:13 2001
  169. ***************
  170. *** 608,609 ****
  171. --- 608,611 ----
  172.   {   /* Add new patch number below this line */
  173. + /**/
  174. +     52,
  175.   /**/
  176.  
  177. -- 
  178. Mushrooms always grow in damp places and so they look like umbrellas.
  179.  
  180.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  181. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  182.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  183.