Support cross-compiling between architectures
diff --git a/ChangeLog b/ChangeLog
index f4e1cfc..6d555ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-07-23  Wichert Akkerman <wakkerma@debian.org>
+
+  * configure.in: Support cross-compiling between architectures
+
 2001-07-13  Wichert Akkerman <wakkerma@debian.org>
 
   * configure.in: add S390 to architecture list
diff --git a/configure.in b/configure.in
index dcac017..ed13615 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
 AC_INIT(strace.c)
-AC_CANONICAL_HOST()
+AC_CANONICAL_SYSTEM()
 AC_MSG_CHECKING(for supported operating system)
 changequote(,)dnl
 
@@ -37,7 +37,7 @@
 '
 
 AC_MSG_CHECKING(for supported architecture)
-case "$host_cpu" in
+case "$target_cpu" in
 i[3456]86|pentium)
 	arch=i386
 	;;