[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #52209] Support for ifeq function

From: anonymous
Subject: [bug #52209] Support for ifeq function
Date: Wed, 11 Oct 2017 15:59:05 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0


                 Summary: Support for ifeq function
                 Project: make
            Submitted by: None
            Submitted on: Wed 11 Oct 2017 07:59:03 PM UTC
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: Any
           Fixed Release: None
           Triage Status: None



My makefiles frequently need to check for equality of two string. I'm doing
this during expansion of recipes so this happens many time during every

Currently I need to do this:

$(if $(findstring X$(second),$(findstring

this looks clumsy and the strings can be very long (10s of kbytes) so is
probably inefficient as there need to be two findstrings.

Support for an ifeq function would be useful. Something like:

$(ifeq $(first),$(second),same,different)

This would allow different actions depend on the whether the string are equal.
It could also be used to generate boolean results as follows:

$(ifeq $(first),$(second),1)

where a non-empty result is true and an empty is false.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]