Mercurial > vim
comparison src/configure.ac @ 29534:e491e48757d7 v9.0.0108
patch 9.0.0108: configure check for timer_create may give wrong error
Commit: https://github.com/vim/vim/commit/5f6cae8b8a49c435556e32f84d067cd0b4d28e4c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 30 11:00:50 2022 +0100
patch 9.0.0108: configure check for timer_create may give wrong error
Problem: Configure check for timer_create may give wrong error.
Solution: Give a warning instead of an error.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Jul 2022 12:15:07 +0200 |
parents | 1733b6162f75 |
children | 029c59bf78f1 |
comparison
equal
deleted
inserted
replaced
29533:34c1f4cd0c18 | 29534:e491e48757d7 |
---|---|
3826 if (timer_create(CLOCK_MONOTONIC, &action, &timer_id) < 0) | 3826 if (timer_create(CLOCK_MONOTONIC, &action, &timer_id) < 0) |
3827 exit(1); // cannot create a monotonic timer | 3827 exit(1); // cannot create a monotonic timer |
3828 ])], | 3828 ])], |
3829 vim_cv_timer_create=yes, | 3829 vim_cv_timer_create=yes, |
3830 vim_cv_timer_create=no, | 3830 vim_cv_timer_create=no, |
3831 AC_MSG_ERROR(cross-compiling: please set 'vim_cv_timer_create') | 3831 AC_MSG_WARN([failed to build test program; if cross-compiling please set 'vim_cv_timer_create']) |
3832 )]) | 3832 )]) |
3833 | 3833 |
3834 dnl If the previous failed, check for timer_create() and linking with -lrt. | 3834 dnl If the previous failed, check for timer_create() and linking with -lrt. |
3835 if test "x$vim_cv_timer_create" = "xno" ; then | 3835 if test "x$vim_cv_timer_create" = "xno" ; then |
3836 save_LIBS="$LIBS" | 3836 save_LIBS="$LIBS" |
3854 if (timer_create(CLOCK_MONOTONIC, &action, &timer_id) < 0) | 3854 if (timer_create(CLOCK_MONOTONIC, &action, &timer_id) < 0) |
3855 exit(1); // cannot create a monotonic timer | 3855 exit(1); // cannot create a monotonic timer |
3856 ])], | 3856 ])], |
3857 vim_cv_timer_create_with_lrt=yes, | 3857 vim_cv_timer_create_with_lrt=yes, |
3858 vim_cv_timer_create_with_lrt=no, | 3858 vim_cv_timer_create_with_lrt=no, |
3859 AC_MSG_ERROR(cross-compiling: please set 'vim_cv_timer_create_with_lrt') | 3859 AC_MSG_WARN([failed to build test program; if cross-compiling please set 'vim_cv_timer_create_with_lrt']) |
3860 )]) | 3860 )]) |
3861 LIBS="$save_LIBS" | 3861 LIBS="$save_LIBS" |
3862 else | 3862 else |
3863 vim_cv_timer_create_with_lrt=no | 3863 vim_cv_timer_create_with_lrt=no |
3864 fi | 3864 fi |