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