Fix cross-compiling with autotools.
authorDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Sun, 4 Jan 2009 00:16:50 +0000 (01:16 +0100)
committerColin Walters <walters@verbum.org>
Wed, 7 Jan 2009 00:57:27 +0000 (19:57 -0500)
commit2304473d97a69341de118680f45f9c832756f4b2
tree3c78f767f3651593bb89b29f4dcf530b8186ff25
parent2504008591ce1609dc440ba830e2b1fc3c6bab22
Fix cross-compiling with autotools.

The AC_CANONICAL_TARGET macro and the $target_os variables are used for the
target of compilers and other code-generation tools, and should not be used
during cross-compile of generic software. Replace them with
AC_CANONICAL_HOST and $host_os instead, as they should have been from the
start.

For a breakdown of what host, build and target machines are, please see
http://blog.flameeyes.eu/s/canonical-target .
configure.in