xref: /freebsd/contrib/sendmail/cf/feature/conncontrol.m4 (revision e92d3f3ffe83a6ed7eaafac70da9cf4fafe13243)
1e92d3f3fSGregory Neil Shapirodivert(-1)
2e92d3f3fSGregory Neil Shapiro#
3e92d3f3fSGregory Neil Shapiro# Copyright (c) 2003, 2004 Sendmail, Inc. and its suppliers.
4e92d3f3fSGregory Neil Shapiro#	All rights reserved.
5e92d3f3fSGregory Neil Shapiro#
6e92d3f3fSGregory Neil Shapiro# By using this file, you agree to the terms and conditions set
7e92d3f3fSGregory Neil Shapiro# forth in the LICENSE file which can be found at the top level of
8e92d3f3fSGregory Neil Shapiro# the sendmail distribution.
9e92d3f3fSGregory Neil Shapiro#
10e92d3f3fSGregory Neil Shapiro#
11e92d3f3fSGregory Neil Shapiro
12e92d3f3fSGregory Neil Shapirodivert(0)
13e92d3f3fSGregory Neil ShapiroVERSIONID(`$Id: conncontrol.m4,v 1.4 2004/02/19 21:31:47 ca Exp $')
14e92d3f3fSGregory Neil Shapiro
15e92d3f3fSGregory Neil Shapirodivert(-1)
16e92d3f3fSGregory Neil Shapiroifdef(`_ACCESS_TABLE_', `
17e92d3f3fSGregory Neil Shapiro	define(`_CONN_CONTROL_', `1')
18e92d3f3fSGregory Neil Shapiro	ifelse(defn(`_ARG_'), `', `',
19e92d3f3fSGregory Neil Shapiro		strcasecmp(defn(`_ARG_'), `nodelay'), `1',
20e92d3f3fSGregory Neil Shapiro		`ifdef(`_DELAY_CHECKS_',
21e92d3f3fSGregory Neil Shapiro			`
22e92d3f3fSGregory Neil Shapiro			define(`_CONN_CONTROL_IMMEDIATE_', `1')
23e92d3f3fSGregory Neil Shapiro			define(`_CONTROL_IMMEDIATE_', `1')
24e92d3f3fSGregory Neil Shapiro			',
25e92d3f3fSGregory Neil Shapiro			`errprint(`*** ERROR: FEATURE(`conncontrol', `nodelay') requires FEATURE(`delay_checks')')'
26e92d3f3fSGregory Neil Shapiro		)',
27e92d3f3fSGregory Neil Shapiro		`errprint(`*** ERROR: unknown parameter '"defn(`_ARG_')"` for FEATURE(`conncontrol')')')
28e92d3f3fSGregory Neil Shapiro	define(`_FFR_SRCHLIST_A', `1')
29e92d3f3fSGregory Neil Shapiro	ifelse(len(X`'_ARG2_), `1', `',
30e92d3f3fSGregory Neil Shapiro		_ARG2_, `terminate', `define(`_CONN_CONTROL_REPLY', `421')',
31e92d3f3fSGregory Neil Shapiro		`errprint(`*** ERROR: FEATURE(`conncontrol'): unknown argument '"_ARG2_"
32e92d3f3fSGregory Neil Shapiro)'
33e92d3f3fSGregory Neil Shapiro		)
34e92d3f3fSGregory Neil Shapiro	', `errprint(`*** ERROR: FEATURE(`conncontrol') requires FEATURE(`access_db')
35e92d3f3fSGregory Neil Shapiro')')
36e92d3f3fSGregory Neil Shapiroifdef(`_CONN_CONTROL_REPLY',,`define(`_CONN_CONTROL_REPLY', `452')')
37