]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0837: cross-compiling has some issues v9.1.0837
authorJonas Sortie Termansen <sortie@maxsi.org>
Sun, 3 Nov 2024 19:58:21 +0000 (20:58 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 3 Nov 2024 19:58:21 +0000 (20:58 +0100)
commit2cf145b78b888fa03d3b26280fcd405b3c946bef
treeab1b09cbe155d782a62ac7faf27ce7c7ea237585
parent17c71daf83f45c3ee81a33716e56e1b485e76a8b
patch 9.1.0837: cross-compiling has some issues

Problem:  Cross-compiling to good modern operating systems is difficult as
          configure assumes obscure bugs are present by default. However,
          most core autoconf-based packages today assume features work
          when in doubt, making cross-compilation easier.
Solution: Assume features work by default and continue to issue a warning
          with the appropriate cache variable. This solution shifts the
          burden onto the users of rare buggy operating systems and
          makes cross-compilation work out of the box for everyone else.

The vim_cv_terminfo test was accidentally negated, where the yes case
was in the error handler, leading to false positives if the test program
failed to compile.

Split the timer_create detection into two phases: First locating the
the library containing timer_create, and then another check to check
if timer_create works to properly support cross-compilation.

Signed-off-by: Jonas 'Sortie' Termansen <sortie@maxsi.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/auto/configure
src/configure.ac
src/version.c