From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11363 invoked by alias); 24 May 2002 02:29:39 -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 11313 invoked from network); 24 May 2002 02:29:37 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 24 May 2002 02:29:37 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 3BC583D08; Thu, 23 May 2002 22:29:46 -0400 (EDT) Message-ID: <3CEDA59A.3080704@cygnus.com> Date: Thu, 23 May 2002 19:59:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc2) Gecko/20020518 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Aidan Skinner Cc: gdb-patches@sources.redhat.com Subject: LEX vs FLEX; Was: [PATCH] Basic Ada files References: <20020522172148.A13611@velvet.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00892.txt.bz2 Aidan, > -# This is used to rebuild ada-lex.c from ada-lex.l. If the program is > -# not defined, but ada-lex.c is present, compilation will continue, > -# possibly with a warning. > -FLEX = flex > - > -ada-lex.c: ada-lex.l > - @if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \ > - echo $(FLEX) -Isit $(srcdir)/ada-lex.l ">" ada-lex.c; \ > - $(FLEX) -Isit $(srcdir)/ada-lex.l > ada-lex.c; \ > - elif [ ! -f ada-lex.c -a ! -f $(srcdir)/ada-lex.c ]; then \ > - echo "ada-lex.c missing and flex not available."; \ > - false; \ > - elif [ ! -f ada-lex.c ]; then \ > - echo "Warning: ada-lex.c older than ada-lex.l and flex not available."; \ > - fi (I note you're not the author of this) I'm not exactly comfortable with making FLEX a condition of being able to build GDB - while the above tries to hide it, the dependency still exists. I guess we'll need to come back to that later. Anyway, can you just re-post this patch with a separate ChangeLog and with the patch against CVS (using `cvs diff -u' or `cvs diff -p'). Andrew