Merge from vendor branch HOSTAPD:
[dragonfly.git] / contrib / sendmail-8.13.6 / devtools / M4 / subst_ext.m4
1 divert(-1)
2 #
3 # Copyright (c) 1999 Sendmail, Inc. and its suppliers.
4 #       All rights reserved.
5 #
6 # By using this file, you agree to the terms and conditions set
7 # forth in the LICENSE file which can be found at the top level of
8 # the sendmail distribution.
9 #
10 #
11 #  Definitions for Makefile construction for sendmail
12 #
13 #       $Id: subst_ext.m4,v 8.3 1999/05/24 18:29:46 rand Exp $
14 #
15 divert(0)dnl
16 define(`bldSUBST_EXTENSION',
17 `substr($2, 0, bldRINDEX($2, `.'))`'.$1 'dnl
18 )dnl
19 define(`bldSUBST_EXTENSIONS',
20 `bldFOREACH(`bldSUBST_EXTENSION(`$1',', $2)'dnl
21 )dnl
22 define(`bldREMOVE_COMMAS',
23 `$1 ifelse($#, 1, , `bldREMOVE_COMMAS(shift($@))')'dnl
24 )dnl
25
26 define(`bldADD_EXTENSION', `$2.$1 ')dnl
27 define(`bldADD_EXTENSIONS',
28 `bldFOREACH(`bldADD_EXTENSION(`$1',', $2)'dnl
29 )dnl
30