Source: tiptop
Version: 2.3.1-2
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap

tiptop fails to cross build from source when built on x86 for !x86,
because it uses uname to detect whether x86 assembler can be used. The
attached patch fixes the detection. Please consider applying it.

Helmut
--- tiptop-2.3.1.orig/configure.ac
+++ tiptop-2.3.1/configure.ac
@@ -61,9 +61,9 @@
 # Check for hardware architecture
 no_target=yes
 AC_MSG_CHECKING([hardware])
-hw=`uname -m`
+if test "x$host_alias" = x; then hw=`uname -m`; else hw="${host_alias%%-*}"; fi
 case $hw in
-  x86_64 | i386 | i686 ) :
+  x86_64 | i386 | i486 | i586 | i686 ) :
     AC_MSG_RESULT([x86])
     AC_DEFINE([TARGET_X86], [1], [Define to 1 if the target is x86.])
     no_target=no

Reply via email to