Patch 9.0.0108
Problem:    Configure check for timer_create may give wrong error.
Solution:   Give a warning instead of an error.
Files:      src/configure.ac, src/auto/configure


*** ../vim-9.0.0107/src/configure.ac    2022-07-28 22:39:50.611678479 +0100
--- src/configure.ac    2022-07-30 10:59:36.821403473 +0100
***************
*** 3828,3834 ****
    ])],
    vim_cv_timer_create=yes,
    vim_cv_timer_create=no,
!   AC_MSG_ERROR(cross-compiling: please set 'vim_cv_timer_create')
    )])
  
  dnl If the previous failed, check for timer_create() and linking with -lrt.
--- 3828,3834 ----
    ])],
    vim_cv_timer_create=yes,
    vim_cv_timer_create=no,
!   AC_MSG_WARN([failed to build test program; if cross-compiling please set 
'vim_cv_timer_create'])
    )])
  
  dnl If the previous failed, check for timer_create() and linking with -lrt.
***************
*** 3856,3862 ****
        ])],
        vim_cv_timer_create_with_lrt=yes,
        vim_cv_timer_create_with_lrt=no,
!       AC_MSG_ERROR(cross-compiling: please set 'vim_cv_timer_create_with_lrt')
      )])
    LIBS="$save_LIBS"
  else
--- 3856,3862 ----
        ])],
        vim_cv_timer_create_with_lrt=yes,
        vim_cv_timer_create_with_lrt=no,
!       AC_MSG_WARN([failed to build test program; if cross-compiling please 
set 'vim_cv_timer_create_with_lrt'])
      )])
    LIBS="$save_LIBS"
  else
*** ../vim-9.0.0107/src/auto/configure  2022-07-28 22:39:50.615678478 +0100
--- src/auto/configure  2022-07-30 10:59:39.913403164 +0100
***************
*** 13044,13050 ****
  else
  
  if test "$cross_compiling" = yes; then :
!   as_fn_error $? "cross-compiling: please set 'vim_cv_timer_create'" 
"$LINENO" 5
  
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--- 13044,13051 ----
  else
  
  if test "$cross_compiling" = yes; then :
!   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to build test 
program; if cross-compiling please set 'vim_cv_timer_create'" >&5
! $as_echo "$as_me: WARNING: failed to build test program; if cross-compiling 
please set 'vim_cv_timer_create'" >&2;}
  
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
***************
*** 13098,13104 ****
  else
  
      if test "$cross_compiling" = yes; then :
!   as_fn_error $? "cross-compiling: please set 'vim_cv_timer_create_with_lrt'" 
"$LINENO" 5
  
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--- 13099,13106 ----
  else
  
      if test "$cross_compiling" = yes; then :
!   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to build test 
program; if cross-compiling please set 'vim_cv_timer_create_with_lrt'" >&5
! $as_echo "$as_me: WARNING: failed to build test program; if cross-compiling 
please set 'vim_cv_timer_create_with_lrt'" >&2;}
  
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
*** ../vim-9.0.0107/src/version.c       2022-07-29 19:50:38.277964080 +0100
--- src/version.c       2022-07-30 11:00:29.737398290 +0100
***************
*** 737,738 ****
--- 737,740 ----
  {   /* Add new patch number below this line */
+ /**/
+     108,
  /**/

-- 
Press any key to continue, press any other key to quit.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220730100118.7DE8B1C0541%40moolenaar.net.

Raspunde prin e-mail lui