Marc Haisenko wrote:

> Hi folks,
> I've attached a patch against VIM 7.1 that enables cross-compiling
> support in configure.
> 
> So far I've tested it with cross-compiling to two i586 targets (one
> with glibc 2.5 and another one with uClibc 0.9.29, both using GCC
> 4.1.2 and ncurses 5.6).
> 
> Since we're cross-compiling VIM 6.4 also for PowerPC and XScale and
> that works like a charm for years now I assume that cross-compiling
> VIM 7.1 to those platforms will works as well (I'm cross-compiling a
> lot and there's no reason why it should fail).
> 
> Anyway, the trick is to allow the user to provide the answers for all
> the tests configure can't do because it would need to run a test
> program. So I've enhanced all these tests with a wrapper
> (AC_CACHE_CHECK) that checks whether a corresponding cache-variable
> has been set. If the cache-variable is set then that values is used,
> if not the test is performed. If the test notices that cross-compiling
> is wanted then the error message now tells which cache-variable to
> override.
> 
> If you want the patch to be edited so it can be included in VIM please
> tell me.

I suppose the configure script is stable enough now to do something like
this.

It appears you didn't change all the AC_TRY_RUN() uses.  Does it only
work for a limited set of features?

You should also add an explanation of how to do cross compiling to the
INSTALL file.  A list of all the values to be set is very useful.

What happens if a value is guessed wrong?  It should still be possible
to do "make test" somehow, otherwise the building result may not work
unexpectedly.

-- 
TALL KNIGHT: When you have found the shrubbery, then you must cut down the
             mightiest tree in the forest ... with a herring.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui