AU_DEFUN([AC_CHECK_TOOL_PREFIX])
+# _AC_TOOL_WARN
+# -------------
+AC_DEFUN([_AC_TOOL_WARN],
+[case $cross_compiling:$ac_tool_warned in
+yes:)
+AC_MSG_WARN([In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf@gnu.org.])
+ac_tool_warned=yes ;;
+esac])
+
# AC_PATH_TOOL(VARIABLE, PROG-TO-CHECK-FOR, [VALUE-IF-NOT-FOUND], [PATH])
# -----------------------------------------------------------------------
# (Use different variables $1 and ac_pt_$1 so that cache vars don't conflict.)
if test "x$ac_pt_$1" = x; then
$1="$3"
else
- if test "$build" != "$host"; then
- AC_MSG_WARN([In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org.])
- fi
+ _AC_TOOL_WARN
$1=$ac_pt_$1
fi
else
if test "x$ac_ct_$1" = x; then
$1="$3"
else
- if test "$build" != "$host"; then
- AC_MSG_WARN([In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org.])
- fi
+ _AC_TOOL_WARN
$1=$ac_ct_$1
fi
else
if test "x$ac_ct_$1" = x; then
$1="$3"
else
- if test "$build" != "$host"; then
- AC_MSG_WARN([In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org.])
- fi
+ _AC_TOOL_WARN
$1=$ac_ct_$1
fi
fi
rm -f config.hin # So that next run of autoheader is quiet.
_AT_CHECK_AC_MACRO(
- [[cross_compiling=yes
+ [[# Force cross compiling.
+ cross_compiling=yes
+ ac_tool_warned=yes
AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
ac_prevendian=`cat at-endian`
# Check that we have found the same result as in the previous run