Ignore:
Timestamp:
Dec 3, 2014, 12:23:07 PM (8 years ago)
Author:
Peter
Message:

prefer private variables in yat.pc. closes #808

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/yat_common.m4

    r3114 r3366  
    5555
    5656
     57# YAT_SET_CONTAINS(set, value, [if-present], [if-not-present])
     58# ============================================================
     59# Loop over set (space-separated) and if value exists, execute
     60# if-present. otherwise execute if-not-present
     61AC_DEFUN([YAT_SET_CONTAINS],
     62[
     63AS_IF([AS_ECHO([$1]) | tr ' ' '\n' | grep '^$2$' > /dev/null], [$3], [$4])
     64]) #YAT_SET_CONTAINS
     65
     66
    5767# YAT_VAR_REMOVE(VAR, LIST)
    5868# ==========================
Note: See TracChangeset for help on using the changeset viewer.