Mercurial > vim
comparison src/configure.in @ 8893:d5d2e48666bd v7.4.1733
commit https://github.com/vim/vim/commit/839e954aaa72ef62f65416d177f829e681c15466
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 14 16:46:02 2016 +0200
patch 7.4.1733
Problem: "make install" doesn't know about cross-compiling. (Christian
Neukirchen)
Solution: Add CROSS_COMPILING. (closes https://github.com/vim/vim/issues/740)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 14 Apr 2016 17:00:05 +0200 |
parents | caed4b2d305f |
children | 53e53aeb35ad |
comparison
equal
deleted
inserted
replaced
8892:dbbbb98186f1 | 8893:d5d2e48666bd |
---|---|
86 AC_MSG_RESULT(no) | 86 AC_MSG_RESULT(no) |
87 fi | 87 fi |
88 | 88 |
89 dnl If configure thinks we are cross compiling, there might be something | 89 dnl If configure thinks we are cross compiling, there might be something |
90 dnl wrong with the CC or CFLAGS settings, give a useful warning message | 90 dnl wrong with the CC or CFLAGS settings, give a useful warning message |
91 CROSS_COMPILING= | |
91 if test "$cross_compiling" = yes; then | 92 if test "$cross_compiling" = yes; then |
92 AC_MSG_RESULT([cannot compile a simple program; if not cross compiling check CC and CFLAGS]) | 93 AC_MSG_RESULT([cannot compile a simple program; if not cross compiling check CC and CFLAGS]) |
93 fi | 94 CROSS_COMPILING=1 |
95 fi | |
96 AC_SUBST(CROSS_COMPILING) | |
94 | 97 |
95 dnl gcc-cpp has the wonderful -MM option to produce nicer dependencies. | 98 dnl gcc-cpp has the wonderful -MM option to produce nicer dependencies. |
96 dnl But gcc 3.1 changed the meaning! See near the end. | 99 dnl But gcc 3.1 changed the meaning! See near the end. |
97 test "$GCC" = yes && CPP_MM=M; AC_SUBST(CPP_MM) | 100 test "$GCC" = yes && CPP_MM=M; AC_SUBST(CPP_MM) |
98 | 101 |