]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-04-12 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Sun, 12 Apr 2009 04:33:18 +0000 (04:33 +0000)
committerproski <proski@localhost>
Sun, 12 Apr 2009 04:33:18 +0000 (04:33 +0000)
         * configure.ac: Change the logic when we check for target tools.
         Do it when the target is specified and it's different from the
         specified value of the host.

ChangeLog
configure
configure.ac

index 384e2b0e54bae39d5c466331f22f65aabfb65676..6e29e29126b1d829f82579ca12391b18848fc5de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-04-12  Pavel Roskin  <proski@gnu.org>
+
+         * configure.ac: Change the logic when we check for target tools.
+         Do it when the target is specified and it's different from the
+         specified value of the host.
+
 2009-04-11  Felix Zielcke  <fzielcke@z-51.de>
 
        * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
index c4312f42b290a3ad0df05fa60157f9938c8a5765..23869ce05a95d35869858e8e98061fbbd96a408e 100644 (file)
--- a/configure
+++ b/configure
@@ -5942,9 +5942,8 @@ esac
 { echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
 echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
 
-# For cross-compiling.
-if test "x$build" != "x$host"; then
-  # XXX this depends on the implementation of autoconf!
+# Find tools for the target.
+if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
   tmp_ac_tool_prefix="$ac_tool_prefix"
   ac_tool_prefix=$target_alias-
 
index c316f17841dc8fb1492edb7018b4b392da466ea3..ef143de5399577770e79f689e5dcec0b98d7ed90 100644 (file)
@@ -231,9 +231,8 @@ esac
 AC_SUBST(TARGET_OBJ2ELF)
 AC_MSG_RESULT([$TARGET_OBJ2ELF])
 
-# For cross-compiling.
-if test "x$build" != "x$host"; then
-  # XXX this depends on the implementation of autoconf!
+# Find tools for the target.
+if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
   tmp_ac_tool_prefix="$ac_tool_prefix"
   ac_tool_prefix=$target_alias-