delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/11/21/12:34:03

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=a+IxFYSoOpr/JF+7
LCTmzTotFANSKMqVkYr9y+EPWUlz05J8g1afrTN/+nRzcGU6l4Q5ayMf1kyro3eI
Q2eL6nrSUCReBch51FCps9cjgLwv85z01oO313TASRGY75YlWjiD5Oj89Nxqc8bW
kpRQY7NO/7WRJoWVcA2wqvnLY/I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=QYJoRnubMmnDVXlbQu0zGM
3FE6Y=; b=bO/B6lvp/1mz0TY7j5Qsjru6fwkXu+Vg1wsi8Y6gjviTSaMXJk2F0c
zxnKW+HbXPXzJXgrIkgxWUXAe1LTpS05ph5Y044oLxOrYA9WLnovDn0jOVMoSpmk
9v0h9gXOL/cAAUjCVfzGIXZo89YnigG+4tKWmo8+BKoHyFDI3qkYU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_05,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=kaz, Kylheku, kylheku, Kaz
X-HELO: limerock02.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: Re: Standard LEX variable doesn't work in Make.
To: cygwin AT cygwin DOT com
References: <d06883e8208624afb5d094ebd3e78375 AT mail DOT kylheku DOT com>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <870d5fee-47d4-f896-183c-5a5920fc90a6@cornell.edu>
Date: Mon, 21 Nov 2016 12:33:56 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <d06883e8208624afb5d094ebd3e78375@mail.kylheku.com>
X-PMX-Cornell-Gauge: Gauge=XXXXX
X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none;
X-IsSubscribed: yes

On 11/21/2016 11:57 AM, Kaz Kylheku wrote:
> Hi,
>
> I'm changing a FOSS project to rely more on standard Make
> vars such as CC and CFLAGS and such: use $(CC) for
> the compiler unless told otherwise, incorporate $(CFLAGS)
> if it is defined, and so forth. This is friendly toward
> distro package maintainers.
>
> Anyway, even though my Cygwin installation has GNU Flex,
> the lex command is nonexistent; thus the $(LEX) Make
> variable fails.
>
> Either LEX should go to "flex", or there should be a
> "lex" alias.
>
> If the installation has some sort of lex, the
> predefined $(LEX) variable should resolve to it.

Shouldn't your configure script take care of this?  There's an autoconf 
macro AC_PROG_LEX that you can use.

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019