summaryrefslogtreecommitdiff
path: root/devtools/M4/string.m4
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/M4/string.m4')
-rw-r--r--devtools/M4/string.m418
1 files changed, 18 insertions, 0 deletions
diff --git a/devtools/M4/string.m4 b/devtools/M4/string.m4
new file mode 100644
index 000000000000..e4916d3bbed3
--- /dev/null
+++ b/devtools/M4/string.m4
@@ -0,0 +1,18 @@
+divert(-1)
+#
+# Copyright (c) 1999 Sendmail, Inc. and its suppliers.
+# All rights reserved.
+#
+# By using this file, you agree to the terms and conditions set
+# forth in the LICENSE file which can be found at the top level of
+# the sendmail distribution.
+#
+#
+# Definitions for Makefile construction for sendmail
+#
+# $Id: string.m4,v 8.2 1999/05/13 16:16:33 gshapiro Exp $
+#
+divert(0)dnl
+define(`bldRINDEX',
+`ifelse(index($1, $2), `-1', `-1', `eval(index($1, $2) + bldRINDEX(substr($1, eval(index($1, $2) + 1)), $2) + 1)')'dnl
+)dnl