Re: [PATCH 2/4] AC_PROG_LEX: Rephrase LEX is set test
Bernhard Reutner-Fischer <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.patches |
|---|---|
| Message-ID | <CAC1BbcSzdai38mpRoG++aPg363QvEFRBcW82FA2u5mi5g2Guzw@mail.gmail.com> |
On 9 April 2015 at 15:21, Eric Blake <[email protected]> wrote: > On 04/09/2015 06:43 AM, Bernhard Reutner-Fischer wrote: >> 2015-04-08 Bernhard Reutner-Fischer <[email protected]> >> [AC_CHECK_PROGS(LEX, flex lex, :) >> -if test "x$LEX" != "x:"; then >> +if [[ ${LEX:+y} ]]; then > > NACK. This is checking if $LEX is specifically something other than ':', > not whether it is empty. oops, managed to miss the ':'. So scratch that one please.