Import sendmail 8.13.7
[dragonfly.git] / contrib / sendmail-8.13.7 / devtools / M4 / string.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: string.m4,v 8.2 1999/05/13 16:16:33 gshapiro Exp $
14 #
15 divert(0)dnl
16 define(`bldRINDEX',
17 `ifelse(index($1, $2), `-1', `-1', `eval(index($1, $2) + bldRINDEX(substr($1, eval(index($1, $2) + 1)), $2) + 1)')'dnl
18 )dnl