From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30187 invoked by alias); 26 Nov 2004 10:37:16 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 29295 invoked from network); 26 Nov 2004 10:36:57 -0000 Received: from unknown (HELO cuddles.cambridge.redhat.com) (82.16.12.40) by sourceware.org with SMTP; 26 Nov 2004 10:36:57 -0000 Received: from redhat.com (localhost.localdomain [127.0.0.1]) by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id iAQAZunq019560; Fri, 26 Nov 2004 10:36:06 GMT Received: (from aph@localhost) by redhat.com (8.12.8/8.12.8/Submit) id iAQAZtkH019556; Fri, 26 Nov 2004 10:35:55 GMT MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16807.1802.438507.501707@cuddles.cambridge.redhat.com> Date: Fri, 26 Nov 2004 10:37:00 -0000 From: Andrew Haley To: Richard Sandiford Cc: gcc-patches@gcc.gnu.org, java-patches@gcc.gnu.org, libstdc++@gcc.gnu.org, binutils@sources.redhat.com, gdb-patches@sources.redhat.com Subject: Factor configure-time gcc version checks (patch 1/4 for PR 7305) In-Reply-To: <87is7tejx4.fsf@redhat.com> References: <87is7tejx4.fsf@redhat.com> X-SW-Source: 2004-11/txt/msg00353.txt.bz2 Richard Sandiford writes: > So... the four patches are as follows: > > (1) Provide a config/gcc-version.m4 fragment to work out > $gcc_version_trigger, $gcc_version_full and $gcc_version. > > (2) Remove config.if. > > (3) Provide a config/gxx-include-dir.m4 fragment and use it > in the top-level configuration file. > > (4) The main libjava patch. > > Part (1) is attached below. The logic used in the new autoconf fragment > is mostly taken from config.if. > > Patch bootstrapped & regression tested (on its own) on i686-pc-linux-gnu. > I also checked that: > > - The top-level configure gets the right version and version trigger. > > - The top-level makefile still passes --with-gcc-version-trigger > down to subconfigures. > > - The subconfigures correctly read --with-gcc-version-trigger > and record the right version number. > > - There's no change in the version numbers for installed paths. > > OK to install? Fine by me. Andrew.