From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8847 invoked by alias); 28 Dec 2002 07:23:55 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8831 invoked from network); 28 Dec 2002 07:23:53 -0000 Received: from unknown (HELO mailout5-0.nyroc.rr.com) (24.92.226.122) by 209.249.29.67 with SMTP; 28 Dec 2002 07:23:53 -0000 Received: from doctormoo (syr-24-24-16-193.twcny.rr.com [24.24.16.193]) by mailout5-0.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP id gBS7NTF06565; Sat, 28 Dec 2002 02:23:29 -0500 (EST) Received: from neroden by doctormoo with local (Exim 3.36 #1 (Debian)) id 18SBIS-0001vY-00; Sat, 28 Dec 2002 02:22:12 -0500 Date: Fri, 27 Dec 2002 23:29:00 -0000 To: gcc-patches@gcc.gnu.org, binutils@sources.redhat.com, gdb-patches@sources.redhat.com Subject: (toplevel) Don't look for unprefixed tools unless they're appropriate Message-ID: <20021228072212.GA7409@doctormoo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i From: Nathanael Nerode X-SW-Source: 2002-12/txt/msg00702.txt.bz2 Tested on i686-pc-linux-gnu with a Canadian cross. Now if the prefixed tools can't be found (and the unprefixed tools are incorrect), the tool values default to blank, which will cause entirely different errors. (Heh.) I'd rather have them default "correctly", but that's somewhat less trivial, and it's really only useful for people who 'configure', relocate, and then 'make', which doesn't work anyway. * configure.in: Don't default to unprefixed tools unless the native tools will work. * configure: Regenerate. Index: configure.in =================================================================== RCS file: /cvs/gcc/gcc/configure.in,v retrieving revision 1.200 diff -u -r1.200 configure.in --- configure.in 28 Dec 2002 06:57:48 -0000 1.200 +++ configure.in 28 Dec 2002 07:12:02 -0000 @@ -2008,15 +2008,15 @@ AC_SUBST(config_shell) # Host tools. -AC_CHECK_TOOL(AR, ar) -AC_CHECK_TOOL(AS, as) -AC_CHECK_TOOL(DLLTOOL, dlltool) -AC_CHECK_TOOL(LD, ld) -AC_CHECK_TOOL(NM, nm) -AC_CHECK_TOOL(RANLIB, ranlib, :) -AC_CHECK_TOOL(WINDRES, windres) -AC_CHECK_TOOL(OBJCOPY, objcopy) -AC_CHECK_TOOL(OBJDUMP, objdump) +NCN_STRICT_CHECK_TOOL(AR, ar) +NCN_STRICT_CHECK_TOOL(AS, as) +NCN_STRICT_CHECK_TOOL(DLLTOOL, dlltool) +NCN_STRICT_CHECK_TOOL(LD, ld) +NCN_STRICT_CHECK_TOOL(NM, nm) +NCN_STRICT_CHECK_TOOL(RANLIB, ranlib, :) +NCN_STRICT_CHECK_TOOL(WINDRES, windres) +NCN_STRICT_CHECK_TOOL(OBJCOPY, objcopy) +NCN_STRICT_CHECK_TOOL(OBJDUMP, objdump) AC_SUBST(CC) AC_SUBST(CXX) AC_SUBST(CFLAGS) @@ -2026,13 +2026,13 @@ AC_SUBST(DEFAULT_M4) # Target tools. -NCN_CHECK_TARGET_TOOL(AR_FOR_TARGET, ar) -NCN_CHECK_TARGET_TOOL(AS_FOR_TARGET, as) -NCN_CHECK_TARGET_TOOL(DLLTOOL_FOR_TARGET, dlltool) -NCN_CHECK_TARGET_TOOL(LD_FOR_TARGET, ld) -NCN_CHECK_TARGET_TOOL(NM_FOR_TARGET, nm) -NCN_CHECK_TARGET_TOOL(RANLIB_FOR_TARGET, ranlib, :) -NCN_CHECK_TARGET_TOOL(WINDRES_FOR_TARGET, windres) +NCN_STRICT_CHECK_TARGET_TOOL(AR_FOR_TARGET, ar) +NCN_STRICT_CHECK_TARGET_TOOL(AS_FOR_TARGET, as) +NCN_STRICT_CHECK_TARGET_TOOL(DLLTOOL_FOR_TARGET, dlltool) +NCN_STRICT_CHECK_TARGET_TOOL(LD_FOR_TARGET, ld) +NCN_STRICT_CHECK_TARGET_TOOL(NM_FOR_TARGET, nm) +NCN_STRICT_CHECK_TARGET_TOOL(RANLIB_FOR_TARGET, ranlib, :) +NCN_STRICT_CHECK_TARGET_TOOL(WINDRES_FOR_TARGET, windres) AC_SUBST(GCC_FOR_TARGET) AC_SUBST(FLAGS_FOR_TARGET)