]> git.ipfire.org Git - thirdparty/automake.git/commit
test defs: better detection of cross-compile mode
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 21 May 2011 07:12:06 +0000 (09:12 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 21 May 2011 07:12:06 +0000 (09:12 +0200)
commitf570885382e0a37fc8f2c7fd2e63b5321e0b5612
treed9128e0c6aa9e8cdc715af4cad5bcf7dd411517a
parent6ca5ab0d009ca3edca0c6852e53ccd22c2e900c0
test defs: better detection of cross-compile mode

* configure.ac (AC_CANONICAL_HOST): New, probably not strictly
necessary, but useful to complements AC_CANONICAL_BUILD.
* tests/defs-static.in ($host_alias, $build_alias): New variables,
exported, user-overridable, defaults AC_SUBST'd by configure.
* tests/defs (cross_compiling): Consider cross-compilation mode
active only if `$host_alias' is not empty *and* it differs from
`$build_alias'.  This is more faithful to the way configure
determines whether it is cross-compiling, but still allows the
user to easily force cross-compilation by overriding `host_alias'
and `build_alias' at runtime.

From a report by Ralf Wildenhues.
13 files changed:
ChangeLog
Makefile.in
configure
configure.ac
doc/Makefile.in
lib/Automake/Makefile.in
lib/Automake/tests/Makefile.in
lib/Makefile.in
lib/am/Makefile.in
m4/Makefile.in
tests/Makefile.in
tests/defs
tests/defs-static.in