]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_CHECK_TOOL_PREFIX): Require AC_CANONICAL_BUILD, so both $build and
authorRoland McGrath <roland@gnu.org>
Sun, 12 Feb 1995 23:42:30 +0000 (23:42 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 12 Feb 1995 23:42:30 +0000 (23:42 +0000)
$host are definitely set before we compare them.

acgeneral.m4
lib/autoconf/general.m4

index ede0417520ce7daa811a829d5835450c38eabbca..663c4a249c4481e711b3c05289fbd6b7e854b516 100644 (file)
@@ -1160,7 +1160,7 @@ ifelse([$3], , , [test -n "[$]$1" || $1="$3"
 
 dnl Internal subroutine.
 AC_DEFUN(AC_CHECK_TOOL_PREFIX,
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+[AC_REQUIRE([AC_CANONICAL_HOST])AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 if test $host != $build; then
   ac_tool_prefix=${host_alias}-
 else
index ede0417520ce7daa811a829d5835450c38eabbca..663c4a249c4481e711b3c05289fbd6b7e854b516 100644 (file)
@@ -1160,7 +1160,7 @@ ifelse([$3], , , [test -n "[$]$1" || $1="$3"
 
 dnl Internal subroutine.
 AC_DEFUN(AC_CHECK_TOOL_PREFIX,
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+[AC_REQUIRE([AC_CANONICAL_HOST])AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 if test $host != $build; then
   ac_tool_prefix=${host_alias}-
 else