summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin/sendmail/devtools
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-04-02 19:05:59 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-04-02 19:05:59 +0000
commit43225228859332051b0497d6732b906e2c753f85 (patch)
treee1545792a305da6620c54b122c51c207dd70accd /gnu/usr.sbin/sendmail/devtools
parent0b21c002091512c23501e805cd064cdc94f0a312 (diff)
stock sendmail 8.10.0 with $Id -> $Sendmail
Diffstat (limited to 'gnu/usr.sbin/sendmail/devtools')
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/UNIX/all.m438
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/UNIX/defines.m4121
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/UNIX/executable.m441
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/UNIX/footer.m419
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/UNIX/library.m434
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/UNIX/links.m429
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/UNIX/manpage.m476
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/depend/AIX.m415
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/depend/BSD.m48
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/depend/CC-M.m48
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/depend/NCR.m48
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/depend/Solaris.m48
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/depend/X11.m45
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/depend/generic.m46
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/header.m435
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/list.m426
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/string.m418
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/subst_ext.m430
-rw-r--r--gnu/usr.sbin/sendmail/devtools/M4/switch.m471
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/386BSD7
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/A-UX9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/AIX9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/AIX.28
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/AIX.4.210
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/AIX.4.313
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/AIX.4.x9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/Altos10
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/BSD-OS9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/BSD4319
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/CLIX12
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/CRAYT3E.2.0.x9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/CRAYTS.10.0.x9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/CSOS7
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/ConvexOS9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/Darwin18
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/Dell13
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/DomainOS16
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/DomainOS.10.413
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/Dynix12
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/EWS-UX_V28
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/FreeBSD11
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/GNU18
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/HP-UX11
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/HP-UX.10.x9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/HP-UX.11.x17
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/IRIX11
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/IRIX.5.x13
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/IRIX.6.513
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/IRIX.6.x13
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.011
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.111
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.513
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.x13
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/ISC9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/KSR6
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/LUNA44
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/Linux9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/Mach3869
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/NCR.MP-RAS.2.x14
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/NCR.MP-RAS.3.x14
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/NEWS-OS.4.x12
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/NEWS-OS.6.x25
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/NEXTSTEP.4.x27
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/NeXT.2.x19
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/NeXT.3.x30
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/NeXT.4.x31
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/NetBSD10
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/NetBSD.8.32
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/NonStop-UX14
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/OSF111
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/OpenBSD4
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/PTX8
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/Paragon7
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/PowerUX9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/QNX15
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/RISCos23
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/RISCos.4_023
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/Rhapsody18
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SCO7
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SCO.4.29
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SCO.5.x9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SINIX.5.4311
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SINIX.5.4411
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SVR412
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SunOS8
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SunOS.4.013
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.120
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.220
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.318
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.418
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.518
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.619
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.719
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.819
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/Titan13
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/ULTRIX9
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/UMAX15
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/UNICOS7
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/UNIX_SV.4.x.i38611
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/UX480023
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/UXPDS.V1013
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/UXPDS.V2020
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/UnixWare.5.i38616
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/dcosx.1.x.NILE6
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/dgux8
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/m88k20
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/maxion13
-rw-r--r--gnu/usr.sbin/sendmail/devtools/OS/uts.systemV24
-rw-r--r--gnu/usr.sbin/sendmail/devtools/README311
-rw-r--r--gnu/usr.sbin/sendmail/devtools/Site/README18
-rw-r--r--gnu/usr.sbin/sendmail/devtools/bin/Build743
-rw-r--r--gnu/usr.sbin/sendmail/devtools/bin/configure.sh182
-rw-r--r--gnu/usr.sbin/sendmail/devtools/bin/find_in_path.sh19
-rw-r--r--gnu/usr.sbin/sendmail/devtools/bin/find_m4.sh83
-rw-r--r--gnu/usr.sbin/sendmail/devtools/bin/install.sh133
115 files changed, 3320 insertions, 0 deletions
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/UNIX/all.m4 b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/all.m4
new file mode 100644
index 00000000000..828950ea68d
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/all.m4
@@ -0,0 +1,38 @@
+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
+#
+# $Sendmail: all.m4,v 8.7 1999/10/13 07:08:36 gshapiro Exp $
+#
+divert(0)dnl
+ALL=${BEFORE} ${LINKS} bldTARGETS
+
+all: ${ALL}
+
+clean: bldCLEAN_TARGETS
+
+define(`bldADD_SRC', ${$1SRCS} )dnl
+SRCS=bldFOREACH(`bldADD_SRC(', bldC_PRODUCTS)
+define(`bldADD_OBJS', ${$1OBJS} )dnl
+OBJS=bldFOREACH(`bldADD_OBJS(', bldC_PRODUCTS)
+
+ifdef(`bldNO_INSTALL', `divert(-1)')
+install: bldINSTALL_TARGETS
+
+install-strip: bldINSTALL_TARGETS ifdef(`bldSTRIP_TARGETS', `bldSTRIP_TARGETS')
+ifdef(`bldNO_INSTALL', `divert(0)')
+
+divert(bldDEPENDENCY_SECTION)
+################ Dependency scripts
+include(confBUILDTOOLSDIR/M4/depend/ifdef(`confDEPEND_TYPE', `confDEPEND_TYPE',
+`generic').m4)dnl
+################ End of dependency scripts
+divert(0)
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/UNIX/defines.m4 b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/defines.m4
new file mode 100644
index 00000000000..df2adbe846a
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/defines.m4
@@ -0,0 +1,121 @@
+divert(-1)
+#
+# Copyright (c) 1999-2000 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
+#
+# $Sendmail: defines.m4,v 8.27 2000/02/26 01:32:06 gshapiro Exp $
+#
+divert(0)dnl
+
+# C compiler
+CC= confCC
+CCOPTS= ifdef(`confCCOPTS', `confCCOPTS', ` ') ifdef(`confMT', ifdef(`confMTCCOPTS', `confMTCCOPTS', `'), `')
+
+# C Linker
+LD= ifdef(`confLD', `confLD', `confCC')
+LDOPTS= ifdef(`confLDOPTS', `confLDOPTS') ifdef(`confMT', ifdef(`confMTLDOPTS', `confMTLDOPTS', `'), `')
+LDOPTS_SO= ${LDOPTS} ifdef(`confLDOPTS_SO', `confLDOPTS_SO', `-shared')
+
+# Shell
+SHELL= confSHELL
+
+# use O=-O (usual) or O=-g (debugging)
+O= ifdef(`confOPTIMIZE', `confOPTIMIZE', `-O')
+
+# Object archiver
+AR= ifdef(`confAR', `confAR', `ar')
+AROPTS= ifdef(`confAROPTS', `confAROPTS', `crv')
+
+# Ranlib (or echo)
+RANLIB= ifdef(`confRANLIB', `confRANLIB', `ranlib')
+RANLIBOPTS= ifdef(`confRANLIBOPTS', `confRANLIBOPTS', `')
+
+# Object stripper
+STRIP= ifdef(`confSTRIP', `confSTRIP', `strip')
+STRIPOPTS= ifdef(`confSTRIPOPTS', `confSTRIPOPTS', `')
+
+# environment definitions (e.g., -D_AIX3)
+ENVDEF= ifdef(`confENVDEF', `confENVDEF') ifdef(`conf_'bldCURRENT_PRD`_ENVDEF', `conf_'bldCURRENT_PRD`_ENVDEF')
+
+# location of the source directory
+SRCDIR= ifdef(`confSRCDIR', `confSRCDIR', `_SRC_PATH_')
+
+# include directories
+INCDIRS= confINCDIRS
+
+# library directories
+LIBDIRS=confLIBDIRS
+
+# Additional libs needed
+LIBADD= ifdef(`conf_'bldCURRENT_PRD`_LIBS', `conf_'bldCURRENT_PRD`_LIBS')
+
+# libraries required on your system
+# delete -l44bsd if you are not running BIND 4.9.x
+LIBS= ${LIBADD} ifdef(`confLIBS', `confLIBS')
+
+# location of sendmail binary (usually /usr/sbin or /usr/lib)
+BINDIR= ifdef(`confMBINDIR', `confMBINDIR', `/usr/sbin')
+
+# location of "user" binaries (usually /usr/bin or /usr/ucb)
+UBINDIR=ifdef(`confUBINDIR', `confUBINDIR', `/usr/bin')
+
+# location of "root" binaries (usually /usr/sbin or /usr/etc)
+SBINDIR=ifdef(`confSBINDIR', `confSBINDIR', `/usr/sbin')
+
+# location of "libexec" binaries (usually /usr/libexec or /usr/etc)
+EBINDIR=ifdef(`confEBINDIR', `confEBINDIR', `/usr/libexec')
+
+# additional .c files needed
+SRCADD= ifdef(`confSRCADD', `confSRCADD')
+
+ifdef(`conf_'bldCURRENT_PRD`_SRCADD', `bldLIST_PUSH_ITEM(`bldSOURCES', `conf_'bldCURRENT_PRD`_SRCADD')')
+
+# additional .o files needed
+OBJADD= ifdef(`confOBJADD', `confOBJADD')
+bldCURRENT_PRODUCT`OBJADD'= ifdef(`conf_'bldCURRENT_PRD`_OBJADD', `conf_'bldCURRENT_PRD`_OBJADD') ifdef(`confLIBADD', `bldADD_EXTENSIONS(`a', confLIBADD)', `')
+
+# copy files
+CP= ifdef(`confCOPY', `confCOPY', `cp')
+
+################### end of user configuration flags ######################
+
+BUILDBIN=confBUILDBIN
+COPTS= -I. ${INCDIRS} ${ENVDEF} ${CCOPTS}
+CFLAGS= $O ${COPTS} ifdef(`confMT', ifdef(`confMTCFLAGS', `confMTCFLAGS -DXP_MT', `-DXP_MT'), `')
+
+BEFORE= confBEFORE
+
+LINKS=ifdef(`bldLINK_SOURCES', `bldLINK_SOURCES', `')
+
+bldCURRENT_PRODUCT`SRCS'= bldSOURCES ${SRCADD}
+bldCURRENT_PRODUCT`OBJS'= bldSUBST_EXTENSIONS(`o', bldSOURCES) ifdef(`bldLINK_SOURCES', `bldSUBST_EXTENSIONS(`o', bldLINK_SOURCES)') ${OBJADD} ${bldCURRENT_PRODUCT`OBJADD'}
+bldCURRENT_PRODUCT`SMDEPLIBS'= ifdef(`bldSMDEPLIBS', `bldSMDEPLIBS', `')
+bldCURRENT_PRODUCT`TARGET_LINKS'= ifdef(`bldTARGET_LINKS', `bldTARGET_LINKS', `')
+
+bldPUSH_ALL_SRCS(bldCURRENT_PRODUCT`SRCS')dnl
+
+ifdef(`bldBIN_TYPE', , `define(`bldBIN_TYPE', `U')')dnl
+ifdef(`bldINSTALL_DIR', , `define(`bldINSTALL_DIR', `U')')dnl
+
+NROFF= ifdef(`confNROFF', `confNROFF', `groff -Tascii')
+MANDOC= ifdef(`confMANDOC', `confMANDOC', `-man')
+
+INSTALL=ifdef(`confINSTALL', `confINSTALL', `install')
+
+# User binary ownership/permissions
+UBINOWN=ifdef(`confUBINOWN', `confUBINOWN', `bin')
+UBINGRP=ifdef(`confUBINGRP', `confUBINGRP', `bin')
+UBINMODE=ifdef(`confSBINMODE', `confSBINMODE', `555')
+
+# Setuid binary ownership/permissions
+SBINOWN=ifdef(`confSBINOWN', `confSBINOWN', `root')
+SBINGRP=ifdef(`confSBINGRP', `confSBINGRP', `bin')
+SBINMODE=ifdef(`confSBINMODE', `confSBINMODE', `4555')
+
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/UNIX/executable.m4 b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/executable.m4
new file mode 100644
index 00000000000..0e7d5b82805
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/executable.m4
@@ -0,0 +1,41 @@
+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
+#
+# $Sendmail: executable.m4,v 8.18 1999/10/13 07:08:36 gshapiro Exp $
+#
+divert(0)dnl
+include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/links.m4')dnl
+bldLIST_PUSH_ITEM(`bldC_PRODUCTS', bldCURRENT_PRODUCT)dnl
+bldPUSH_TARGET(bldCURRENT_PRODUCT)dnl
+bldPUSH_INSTALL_TARGET(`install-'bldCURRENT_PRODUCT)dnl
+bldPUSH_CLEAN_TARGET(bldCURRENT_PRODUCT`-clean')dnl
+bldPUSH_ALL_SRCS(bldCURRENT_PRODUCT`SRCS')dnl
+bldPUSH_STRIP_TARGET(`strip-'bldCURRENT_PRODUCT)dnl
+
+include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/defines.m4')
+divert(bldTARGETS_SECTION)
+bldCURRENT_PRODUCT: ${bldCURRENT_PRODUCT`OBJS'} ${bldCURRENT_PRODUCT`SMDEPLIBS'}
+ ${CC} -o bldCURRENT_PRODUCT ${LDOPTS} ${LIBDIRS} ${bldCURRENT_PRODUCT`OBJS'} ${LIBS}
+
+ifdef(`bldLINK_SOURCES', `bldMAKE_SOURCE_LINKS(bldLINK_SOURCES)')
+
+ifdef(`bldNO_INSTALL', ,
+`install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT
+ ${INSTALL} -c -o ${bldBIN_TYPE`'BINOWN} -g ${bldBIN_TYPE`'BINGRP} -m ${bldBIN_TYPE`'BINMODE} bldCURRENT_PRODUCT ${DESTDIR}${bldINSTALL_DIR`'BINDIR}
+ifdef(`bldTARGET_LINKS', `bldMAKE_TARGET_LINKS(${bldINSTALL_DIR`'BINDIR}/bldCURRENT_PRODUCT, ${bldCURRENT_PRODUCT`'TARGET_LINKS})')')
+
+strip-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT
+ ${STRIP} ${STRIPOPTS} ${DESTDIR}${bldINSTALL_DIR`'BINDIR}`'/bldCURRENT_PRODUCT
+
+bldCURRENT_PRODUCT-clean:
+ rm -f ${OBJS} bldCURRENT_PRODUCT ${MANPAGES}
+divert(0)
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/UNIX/footer.m4 b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/footer.m4
new file mode 100644
index 00000000000..664a0baac09
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/footer.m4
@@ -0,0 +1,19 @@
+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
+#
+# $Sendmail: footer.m4,v 8.2 1999/05/13 16:16:35 gshapiro Exp $
+#
+divert(0)dnl
+################ Dependency scripts
+include(confBUILDTOOLSDIR/M4/depend/ifdef(`confDEPEND_TYPE', `confDEPEND_TYPE',
+`generic').m4)dnl
+################ End of dependency scripts
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/UNIX/library.m4 b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/library.m4
new file mode 100644
index 00000000000..3e2833cb251
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/library.m4
@@ -0,0 +1,34 @@
+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
+#
+# $Sendmail: library.m4,v 8.6 1999/08/13 21:31:08 gshapiro Exp $
+#
+divert(0)dnl
+include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/links.m4')dnl
+bldLIST_PUSH_ITEM(`bldC_PRODUCTS', bldCURRENT_PRODUCT)dnl
+bldPUSH_TARGET(bldCURRENT_PRODUCT`.a')dnl
+bldPUSH_INSTALL_TARGET(`install-'bldCURRENT_PRODUCT)dnl
+bldPUSH_CLEAN_TARGET(bldCURRENT_PRODUCT`-clean')dnl
+
+include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/defines.m4')
+divert(bldTARGETS_SECTION)
+bldCURRENT_PRODUCT.a: ${BEFORE} ${bldCURRENT_PRODUCT`OBJS'}
+ ${AR} ${AROPTS} bldCURRENT_PRODUCT.a ${bldCURRENT_PRODUCT`OBJS'}
+ ${RANLIB} ${RANLIBOPTS} bldCURRENT_PRODUCT.a
+ifdef(`bldLINK_SOURCES', `bldMAKE_SOURCE_LINKS(bldLINK_SOURCES)')
+
+install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT.a
+
+bldCURRENT_PRODUCT-clean:
+ rm -f ${OBJS} bldCURRENT_PRODUCT.a ${MANPAGES}
+
+divert(0)
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/UNIX/links.m4 b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/links.m4
new file mode 100644
index 00000000000..5b61eecc7b3
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/links.m4
@@ -0,0 +1,29 @@
+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
+#
+# $Sendmail: links.m4,v 8.5 1999/07/25 03:53:08 gshapiro Exp $
+#
+divert(0)dnl
+define(`bldMAKE_SOURCE_LINK',
+`$1: ${SRCDIR}/$1
+ -ln -s ${SRCDIR}/$1 $1'
+)dnl
+define(`bldMAKE_SOURCE_LINKS',
+`bldFOREACH(`bldMAKE_SOURCE_LINK(', $1)'dnl
+)dnl
+define(`bldMAKE_TARGET_LINKS',
+` for i in $2; do \
+ rm -f $$i; \
+ ln -s $1 $$i; \
+ done'
+)dnl
+
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/UNIX/manpage.m4 b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/manpage.m4
new file mode 100644
index 00000000000..f2813473b4f
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/manpage.m4
@@ -0,0 +1,76 @@
+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
+#
+# $Sendmail: manpage.m4,v 8.10 1999/10/27 05:17:55 gshapiro Exp $
+#
+divert(0)dnl
+
+define(`bldGET_MAN_SOURCE_NUM',
+`substr($1, eval(len($1) - 1))'dnl
+)dnl
+define(`bldGET_MAN_BASE_NAME',
+`substr($1, 0, eval(len($1) - 2))'dnl
+)dnl
+ifdef(`confNO_MAN_BUILD',, `
+bldPUSH_TARGET(`${MANPAGES}')
+bldPUSH_INSTALL_TARGET(`install-docs')')
+bldLIST_PUSH_ITEM(`bldMAN_PAGES', `bldSOURCES')dnl
+
+MANOWN= ifdef(`confMANOWN', `confMANOWN', `bin')
+MANGRP= ifdef(`confMANGRP', `confMANGRP', `bin')
+MANMODE=ifdef(`confMANMODE', `confMANMODE', `444')
+MANROOT=ifdef(`confMANROOT', `confMANROOT', `/usr/share/man/cat')
+MANROOTMAN=ifdef(`confMANROOTMAN', `confMANROOTMAN', `/usr/share/man/man')
+MAN1= ${MANROOT}ifdef(`confMAN1', `confMAN1', `1')
+MAN1MAN=${MANROOTMAN}ifdef(`confMAN1', `confMAN1', `1')
+MAN1EXT=ifdef(`confMAN1EXT', `confMAN1EXT', `1')
+MAN1SRC=ifdef(`confMAN1SRC', `confMAN1SRC', `0')
+MAN3= ${MANROOT}ifdef(`confMAN3', `confMAN3', `3')
+MAN3MAN=${MANROOTMAN}ifdef(`confMAN3', `confMAN3', `3')
+MAN3EXT=ifdef(`confMAN3EXT', `confMAN3EXT', `3')
+MAN3SRC=ifdef(`confMAN3SRC', `confMAN3SRC', `0')
+MAN4= ${MANROOT}ifdef(`confMAN4', `confMAN4', `4')
+MAN4MAN=${MANROOTMAN}ifdef(`confMAN4', `confMAN4', `4')
+MAN4EXT=ifdef(`confMAN4EXT', `confMAN4EXT', `4')
+MAN4SRC=ifdef(`confMAN4SRC', `confMAN4SRC', `0')
+MAN5= ${MANROOT}ifdef(`confMAN5', `confMAN5', `5')
+MAN5MAN=${MANROOTMAN}ifdef(`confMAN5', `confMAN5', `5')
+MAN5EXT=ifdef(`confMAN5EXT', `confMAN5EXT', `5')
+MAN5SRC=ifdef(`confMAN5SRC', `confMAN5SRC', `0')
+MAN8= ${MANROOT}ifdef(`confMAN8', `confMAN8', `8')
+MAN8MAN=${MANROOTMAN}ifdef(`confMAN8', `confMAN8', `8')
+MAN8EXT=ifdef(`confMAN8EXT', `confMAN8EXT', `8')
+MAN8SRC=ifdef(`confMAN8SRC', `confMAN8SRC', `0')
+
+define(`bldMAN_TARGET_NAME',
+`bldGET_MAN_BASE_NAME($1).${MAN`'bldGET_MAN_SOURCE_NUM($1)`SRC}' 'dnl
+)dnl
+MANPAGES= bldFOREACH(`bldMAN_TARGET_NAME(', `bldMAN_PAGES')
+
+divert(bldTARGETS_SECTION)
+define(`bldMAN_BUILD_CMD',
+`bldGET_MAN_BASE_NAME($1).${MAN`'bldGET_MAN_SOURCE_NUM($1)`SRC}': bldGET_MAN_BASE_NAME($1).bldGET_MAN_SOURCE_NUM($1)
+ ${NROFF} ${MANDOC} bldGET_MAN_BASE_NAME($1).bldGET_MAN_SOURCE_NUM($1) > bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC}' || ${CP} bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC}'.dist bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC}''
+
+)dnl
+bldFOREACH(`bldMAN_BUILD_CMD(', `bldMAN_PAGES')
+
+install-docs: ${MANPAGES}
+ifdef(`confNO_MAN_INSTALL', `divert(-1)', `dnl')
+define(`bldMAN_INSTALL_CMD',
+` ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} bldGET_MAN_BASE_NAME($1).`${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC}' `${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)}/bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`EXT}'
+ifdef(`confINSTALL_RAWMAN',
+` ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} bldGET_MAN_BASE_NAME($1).`${MAN'bldGET_MAN_SOURCE_NUM($1)`EXT}' `${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN}'/bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`EXT}'', `dnl')'
+)dnl
+bldFOREACH(`bldMAN_INSTALL_CMD(', `bldMAN_PAGES')
+ifdef(`confNO_MAN_INSTALL', `divert(0)', `dnl')
+divert(0)
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/depend/AIX.m4 b/gnu/usr.sbin/sendmail/devtools/M4/depend/AIX.m4
new file mode 100644
index 00000000000..af024ad9b04
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/depend/AIX.m4
@@ -0,0 +1,15 @@
+# $Sendmail: AIX.m4,v 8.2 1999/05/28 05:54:26 gshapiro Exp $
+depend: ${BEFORE} ${LINKS}
+ @mv Makefile Makefile.old
+ @sed -e '/^# Do not edit or remove this line or anything below it.$$/,$$d' < Makefile.old > Makefile
+ @echo "# Do not edit or remove this line or anything below it." >> Makefile
+ changequote([,])
+ for i in ${SRCS}; \
+ do \
+ ${CC} -M -E ${COPTS} $$i > /dev/null; \
+ cat `basename $$i .c`.u >> Makefile ; \
+ rm -f `basename $$i .c`.u ; \
+ done;
+ changequote
+
+# End of $RCSfile: AIX.m4,v $
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/depend/BSD.m4 b/gnu/usr.sbin/sendmail/devtools/M4/depend/BSD.m4
new file mode 100644
index 00000000000..d06375eea0f
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/depend/BSD.m4
@@ -0,0 +1,8 @@
+# $Sendmail: BSD.m4,v 8.6 1999/05/27 22:03:28 peterh Exp $
+depend: ${BEFORE} ${LINKS}
+ @mv Makefile Makefile.old
+ @sed -e '/^# Do not edit or remove this line or anything below it.$$/,$$d' < Makefile.old > Makefile
+ @echo "# Do not edit or remove this line or anything below it." >> Makefile
+ mkdep -a -f Makefile ${COPTS} ${SRCS}
+
+# End of $RCSfile: BSD.m4,v $
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/depend/CC-M.m4 b/gnu/usr.sbin/sendmail/devtools/M4/depend/CC-M.m4
new file mode 100644
index 00000000000..5d2936280e9
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/depend/CC-M.m4
@@ -0,0 +1,8 @@
+# $Sendmail: CC-M.m4,v 8.5 1999/05/27 22:03:28 peterh Exp $
+depend: ${BEFORE} ${LINKS}
+ @mv Makefile Makefile.old
+ @sed -e '/^# Do not edit or remove this line or anything below it.$$/,$$d' < Makefile.old > Makefile
+ @echo "# Do not edit or remove this line or anything below it." >> Makefile
+ ${CC} -M ${COPTS} ${SRCS} >> Makefile
+
+# End of $RCSfile: CC-M.m4,v $
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/depend/NCR.m4 b/gnu/usr.sbin/sendmail/devtools/M4/depend/NCR.m4
new file mode 100644
index 00000000000..bb288d1a897
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/depend/NCR.m4
@@ -0,0 +1,8 @@
+# $Sendmail: NCR.m4,v 8.6 1999/05/27 22:03:29 peterh Exp $
+depend: ${BEFORE} ${LINKS}
+ @mv Makefile Makefile.old
+ @sed -e '/^# Do not edit or remove this line or anything below it.$$/,$$d' < Makefile.old > Makefile
+ @echo "# Do not edit or remove this line or anything below it." >> Makefile
+ ${CC} -w0 -Hmake ${COPTS} ${SRCS} >> Makefile
+
+# End of $RCSfile: NCR.m4,v $
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/depend/Solaris.m4 b/gnu/usr.sbin/sendmail/devtools/M4/depend/Solaris.m4
new file mode 100644
index 00000000000..847c9d59a34
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/depend/Solaris.m4
@@ -0,0 +1,8 @@
+# $Sendmail: Solaris.m4,v 8.4 1999/05/27 22:03:29 peterh Exp $
+depend: ${BEFORE} ${LINKS}
+ @mv Makefile Makefile.old
+ @sed -e '/^# Do not edit or remove this line or anything below it.$$/,$$d' < Makefile.old > Makefile
+ @echo "# Do not edit or remove this line or anything below it." >> Makefile
+ ${CC} -xM ${COPTS} ${SRCS} >> Makefile
+
+# End of $RCSfile: Solaris.m4,v $
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/depend/X11.m4 b/gnu/usr.sbin/sendmail/devtools/M4/depend/X11.m4
new file mode 100644
index 00000000000..40c3ab85c8d
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/depend/X11.m4
@@ -0,0 +1,5 @@
+# $Sendmail: X11.m4,v 8.4 1999/05/27 22:03:29 peterh Exp $
+depend: ${BEFORE} ${LINKS}
+ makedepend -- ${COPTS} -- ${SRCS}
+
+# End of $RCSfile: X11.m4,v $
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/depend/generic.m4 b/gnu/usr.sbin/sendmail/devtools/M4/depend/generic.m4
new file mode 100644
index 00000000000..f3fa117a4fe
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/depend/generic.m4
@@ -0,0 +1,6 @@
+# $Sendmail: generic.m4,v 8.5 1999/05/24 18:38:33 rand Exp $
+# dependencies
+
+# give a null "depend" list so that the startup script will work
+depend:
+# End of $RCSfile: generic.m4,v $
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/header.m4 b/gnu/usr.sbin/sendmail/devtools/M4/header.m4
new file mode 100644
index 00000000000..e3b6c9cc90b
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/header.m4
@@ -0,0 +1,35 @@
+#
+# Copyright (c) 1998, 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
+#
+# $Sendmail: header.m4,v 8.26 1999/08/09 18:57:22 gshapiro Exp $
+#
+changecom(^A)
+undefine(`format')
+undefine(`hpux')
+undefine(`unix')
+ifdef(`pushdef', `',
+ `errprint(`You need a newer version of M4, at least as new as
+System V or GNU')
+ include(NoSuchFile)')
+define(`confCC', `cc')
+define(`confSHELL', `/bin/sh')
+define(`confBEFORE', `')
+define(`confLIBDIRS', `')
+define(`confINCDIRS', `')
+define(`confLIBSEARCH', `db bind resolv 44bsd')
+define(`confLIBSEARCHPATH', `/lib /usr/lib /usr/shlib')
+define(`confSITECONFIG', `site.config')
+define(`confBUILDBIN', `${SRCDIR}/devtools/bin')
+define(`confRANLIB', `echo')
+define(`PUSHDIVERT', `pushdef(`__D__', divnum)divert($1)')
+define(`POPDIVERT', `divert(__D__)popdef(`__D__')')
+define(`APPENDDEF', `define(`$1', ifdef(`$1', `$1 $2', `$2'))')
+define(`PREPENDDEF', `define(`$1', ifdef(`$1', `$2 $1', `$2'))')
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/list.m4 b/gnu/usr.sbin/sendmail/devtools/M4/list.m4
new file mode 100644
index 00000000000..fb072c78c1e
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/list.m4
@@ -0,0 +1,26 @@
+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
+#
+# $Sendmail: list.m4,v 8.3 1999/07/15 22:46:05 rand Exp $
+#
+divert(0)dnl
+define(`bldLIST_PUSH_ITEM',
+`define(`$1', ifdef(`$1', `$1 $2 ', `$2 '))'
+)dnl
+define(`bldFOREACH',
+`$1substr($2, `0', index($2, ` ')))`'ifelse(index($2, ` '), eval(len($2)-1), , `bldFOREACH(`$1', substr($2, index($2, ` ')))')'dnl
+)dnl
+
+define(`bldADD_PATH', `$1/$2 ')dnl
+define(`bldADD_PATHS',
+`bldFOREACH(`bldADD_PATH(`$1',', $2)'dnl
+)dnl
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/string.m4 b/gnu/usr.sbin/sendmail/devtools/M4/string.m4
new file mode 100644
index 00000000000..866061b4ddc
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/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
+#
+# $Sendmail: 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
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/subst_ext.m4 b/gnu/usr.sbin/sendmail/devtools/M4/subst_ext.m4
new file mode 100644
index 00000000000..24cf311149b
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/subst_ext.m4
@@ -0,0 +1,30 @@
+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
+#
+# $Sendmail: subst_ext.m4,v 8.3 1999/05/24 18:29:46 rand Exp $
+#
+divert(0)dnl
+define(`bldSUBST_EXTENSION',
+`substr($2, 0, bldRINDEX($2, `.'))`'.$1 'dnl
+)dnl
+define(`bldSUBST_EXTENSIONS',
+`bldFOREACH(`bldSUBST_EXTENSION(`$1',', $2)'dnl
+)dnl
+define(`bldREMOVE_COMMAS',
+`$1 ifelse($#, 1, , `bldREMOVE_COMMAS(shift($@))')'dnl
+)dnl
+
+define(`bldADD_EXTENSION', `$2.$1 ')dnl
+define(`bldADD_EXTENSIONS',
+`bldFOREACH(`bldADD_EXTENSION(`$1',', $2)'dnl
+)dnl
+
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/switch.m4 b/gnu/usr.sbin/sendmail/devtools/M4/switch.m4
new file mode 100644
index 00000000000..1be998a6013
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/M4/switch.m4
@@ -0,0 +1,71 @@
+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
+#
+# $Sendmail: switch.m4,v 8.13 1999/09/07 17:21:50 ca Exp $
+#
+divert(0)dnl
+include(confBUILDTOOLSDIR`/M4/string.m4')dnl
+include(confBUILDTOOLSDIR`/M4/list.m4')dnl
+include(confBUILDTOOLSDIR`/M4/subst_ext.m4')dnl
+define(`bldDEPENDENCY_SECTION', `3')dnl
+define(`bldTARGETS_SECTION', `6')dnl
+define(`bldPUSH_TARGET',
+ `bldLIST_PUSH_ITEM(`bldTARGETS', `$1')'dnl
+)dnl
+
+define(`bldPUSH_INSTALL_TARGET',
+ `bldLIST_PUSH_ITEM(`bldINSTALL_TARGETS', `$1')'dnl
+)dnl
+
+define(`bldPUSH_CLEAN_TARGET',
+ `bldLIST_PUSH_ITEM(`bldCLEAN_TARGETS', `$1')'dnl
+)dnl
+
+define(`bldPUSH_ALL_SRCS',
+ `bldLIST_PUSH_ITEM(`bldALL_SRCS', `$1')'dnl
+)dnl
+
+define(`bldPUSH_SMDEPLIB',
+ `bldLIST_PUSH_ITEM(`bldSMDEPLIBS', `$1')'dnl
+)dnl
+
+define(`bldPUSH_SMLIB',
+ `bldPUSH_TARGET(`../lib$1/lib$1.a')
+bldPUSH_SMDEPLIB(`../lib$1/lib$1.a')
+PREPENDDEF(`confLIBDIRS', `-L../lib$1')
+PREPENDDEF(`confLIBS', `-l$1')
+divert(bldTARGETS_SECTION)
+../lib$1/lib$1.a:
+ (cd ${SRCDIR}/lib$1; sh Build ${SENDMAIL_BUILD_FLAGS})
+divert
+')dnl
+
+define(`bldPUSH_STRIP_TARGET',
+ `bldLIST_PUSH_ITEM(`bldSTRIP_TARGETS', `$1')'dnl
+)dnl
+
+define(`bldPRODUCT_START',
+`define(`bldCURRENT_PRODUCT', `$2')dnl
+define(`bldCURRENT_PRD', translit(`$2', `.', `_'))dnl
+define(`bldPRODUCT_TYPE', `$1')dnl'
+)dnl
+
+define(`bldM4_TYPE_DIR',ifdef(`confNT', `NT', ``UNIX''))dnl
+
+define(`bldPRODUCT_END',
+`include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/'bldPRODUCT_TYPE`.m4')'
+)dnl
+
+define(`bldFINISH',
+ifdef(`bldDONT_INCLUDE_ALL', ,``include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/all.m4')'')dnl
+undivert(bldTARGETS_SECTION)dnl
+)dnl
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/386BSD b/gnu/usr.sbin/sendmail/devtools/OS/386BSD
new file mode 100644
index 00000000000..2e4771e8191
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/386BSD
@@ -0,0 +1,7 @@
+# $Sendmail: 386BSD,v 8.2 1999/02/07 03:21:07 gshapiro Exp $
+define(`confENVDEF', ` -DMIME')
+define(`confLIBS', `-lutil')
+define(`confLINKS', `/usr/sbin/sendmail /usr/bin/newaliases \
+ /usr/sbin/sendmail /usr/bin/mailq \
+ /usr/sbin/sendmail /usr/bin/hoststat \
+ /usr/sbin/sendmail /usr/bin/purgestat')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/A-UX b/gnu/usr.sbin/sendmail/devtools/OS/A-UX
new file mode 100644
index 00000000000..34c999725e1
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/A-UX
@@ -0,0 +1,9 @@
+# $Sendmail: A-UX,v 8.7 1999/06/02 22:53:34 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-D_POSIX_SOURCE')
+define(`confLIBS', `-ldbm -lposix -lUTIL')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/AIX b/gnu/usr.sbin/sendmail/devtools/OS/AIX
new file mode 100644
index 00000000000..3caf4bb0e1c
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/AIX
@@ -0,0 +1,9 @@
+# $Sendmail: AIX,v 8.10 1999/06/02 22:53:34 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confENVDEF', `-D_AIX3')
+define(`confOPTIMIZE', `-g')
+define(`confLIBS', `-ldbm')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `system')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confDEPEND_TYPE', `AIX')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/AIX.2 b/gnu/usr.sbin/sendmail/devtools/OS/AIX.2
new file mode 100644
index 00000000000..5624db642ed
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/AIX.2
@@ -0,0 +1,8 @@
+# $Sendmail: AIX.2,v 8.10 1999/04/04 06:48:02 gshapiro Exp $
+define(`confMAPDEF', `-DNIS')
+define(`confENVDEF', `-DBSD -DBSD_INCLUDES -DBSD_REMAP_SIGNAL_TO_SIGVEC')
+define(`confOPTIMIZE', `-g')
+define(`confSBINDIR', `/usr/etc')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `system')
+define(`confINSTALL', `/usr/ucb/install')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/AIX.4.2 b/gnu/usr.sbin/sendmail/devtools/OS/AIX.4.2
new file mode 100644
index 00000000000..e31115e5de7
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/AIX.4.2
@@ -0,0 +1,10 @@
+# $Sendmail: AIX.4.2,v 8.11 1999/06/02 22:53:35 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX')
+define(`confENVDEF', `-D_AIX4=40200')
+define(`confOPTIMIZE', `-O3 -qstrict')
+define(`confLIBS', `-ldbm')
+define(`confLIBSEARCH', `db resolv 44bsd')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `system')
+define(`confDEPEND_TYPE', `AIX')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/AIX.4.3 b/gnu/usr.sbin/sendmail/devtools/OS/AIX.4.3
new file mode 100644
index 00000000000..0e48454e914
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/AIX.4.3
@@ -0,0 +1,13 @@
+# $Sendmail: AIX.4.3,v 8.11 1999/07/03 02:06:07 rand Exp $
+define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX')
+define(`confENVDEF', `-D_AIX4=40300')
+define(`confOPTIMIZE', `-O3 -qstrict')
+define(`confCC', `/usr/bin/xlc')
+define(`confLIBS', `-ldbm')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `system')
+define(`confDEPEND_TYPE', `AIX')
+
+define(`confMTLDOPTS', `-lpthread')
+define(`confLDOPTS_SO', `-Wl,-G -Wl,-bexpall')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/AIX.4.x b/gnu/usr.sbin/sendmail/devtools/OS/AIX.4.x
new file mode 100644
index 00000000000..b1dbc7443ba
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/AIX.4.x
@@ -0,0 +1,9 @@
+# $Sendmail: AIX.4.x,v 8.12 1999/06/02 22:53:35 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX')
+define(`confENVDEF', `-D_AIX4')
+define(`confOPTIMIZE', `-O3 -qstrict')
+define(`confLIBS', `-ldbm')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `system')
+define(`confDEPEND_TYPE', `AIX')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/Altos b/gnu/usr.sbin/sendmail/devtools/OS/Altos
new file mode 100644
index 00000000000..fd609f31062
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/Altos
@@ -0,0 +1,10 @@
+# $Sendmail: Altos,v 8.9 1999/06/02 22:53:35 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confENVDEF', `-DALTOS_SYSTEM_V')
+define(`confLIBS', `-lsocket -lrpc')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/BSD-OS b/gnu/usr.sbin/sendmail/devtools/OS/BSD-OS
new file mode 100644
index 00000000000..7aa4b213bac
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/BSD-OS
@@ -0,0 +1,9 @@
+# $Sendmail: BSD-OS,v 8.11 1999/05/06 19:45:40 gshapiro Exp $
+define(`confMAPDEF', `-DNEWDB -DMAP_REGEX')
+define(`confENVDEF', `-DNETISO')
+define(`confLIBS', `-lutil -lkvm')
+define(`confOPTIMIZE', `-O2')
+define(`confMAN1EXT', `0')
+define(`confMAN5EXT', `0')
+define(`confMAN8EXT', `0')
+define(`confSTDIO_TYPE', `torek')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/BSD43 b/gnu/usr.sbin/sendmail/devtools/OS/BSD43
new file mode 100644
index 00000000000..f4a01c6ff59
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/BSD43
@@ -0,0 +1,19 @@
+# $Sendmail: BSD43,v 8.8 1999/06/02 22:53:35 gshapiro Exp $
+define(`confBEFORE', `unistd.h stddef.h stdlib.h dirent.h sys/time.h')
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-DoldBSD43')
+define(`confLIBS', `-ldbm -ll')
+define(`confUBINDIR', `/usr/ucb')
+PUSHDIVERT(3)
+unistd.h stddef.h stdlib.h sys/time.h:
+ cp /dev/null $@
+
+sys/time.h: sys
+
+sys:
+ mkdir sys
+
+dirent.h:
+ echo "#include <sys/dir.h>" > dirent.h
+ echo "#define dirent direct" >> dirent.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/CLIX b/gnu/usr.sbin/sendmail/devtools/OS/CLIX
new file mode 100644
index 00000000000..e879365676d
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/CLIX
@@ -0,0 +1,12 @@
+# $Sendmail: CLIX,v 8.12 1999/06/02 22:53:36 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-DCLIX')
+APPENDDEF(`confINCDIRS', `-I/usr/include')
+define(`confLIBS', `-lnsl -lbsd')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `cp')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/CRAYT3E.2.0.x b/gnu/usr.sbin/sendmail/devtools/OS/CRAYT3E.2.0.x
new file mode 100644
index 00000000000..a5c820aa007
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/CRAYT3E.2.0.x
@@ -0,0 +1,9 @@
+# $Sendmail: CRAYT3E.2.0.x,v 8.4 1999/06/02 22:53:36 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-DUNICOS')
+define(`confOPTIMIZE', `-O')
+define(`confINSTALL', `cpset')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/bin')
+define(`confEBINDIR', `/usr/lib')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/CRAYTS.10.0.x b/gnu/usr.sbin/sendmail/devtools/OS/CRAYTS.10.0.x
new file mode 100644
index 00000000000..11bccb9b54c
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/CRAYTS.10.0.x
@@ -0,0 +1,9 @@
+# $Sendmail: CRAYTS.10.0.x,v 8.4 1999/06/02 22:53:36 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-DUNICOS')
+define(`confOPTIMIZE', `-O')
+define(`confINSTALL', `cpset')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/bin')
+define(`confEBINDIR', `/usr/lib')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/CSOS b/gnu/usr.sbin/sendmail/devtools/OS/CSOS
new file mode 100644
index 00000000000..f2eb5b308c5
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/CSOS
@@ -0,0 +1,7 @@
+# $Sendmail: CSOS,v 8.7 1999/04/24 05:37:49 gshapiro Exp $
+define(`confLIBS', `-lnet')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confEBINDIR', `/usr/lib')
+define(`confUBINDIR', `/usr/ucb')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/ConvexOS b/gnu/usr.sbin/sendmail/devtools/OS/ConvexOS
new file mode 100644
index 00000000000..dd5410da39e
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/ConvexOS
@@ -0,0 +1,9 @@
+# $Sendmail: ConvexOS,v 8.8 1999/04/24 05:37:49 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM -DYPCOMPAT -DNIS')
+define(`confENVDEF', `-D__STDC__ -d non_int_bit_field')
+define(`confOPTIMIZE', `-g')
+define(`confLIBS', `-lshare')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/Darwin b/gnu/usr.sbin/sendmail/devtools/OS/Darwin
new file mode 100644
index 00000000000..657fea5e2ac
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/Darwin
@@ -0,0 +1,18 @@
+# $Sendmail: Darwin,v 8.2 1999/08/13 21:31:10 gshapiro Exp $
+#
+# Wilfredo Sanchez <wsanchez@apple.com>:
+# We look a lot more like 4.4BSD than NeXTStep or OpenStep.
+#
+define(`confCC', `cc -traditional-cpp -pipe ${Extra_CC_Flags}')
+define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX -DNETINFO -DAUTO_NETINFO_ALIASES -DAUTO_NETINFO_HOSTS')
+define(`confENVDEF', `-DNETISO')
+define(`confLDOPTS', `${Extra_LD_Flags}')
+define(`confOPTIMIZE', `-O3')
+define(`confRANLIBOPTS', `-c')
+define(`confHFDIR', `/usr/share/sendmail')
+define(`confMANOWN', `root')
+define(`confMANGRP', `wheel')
+define(`confUBINOWN', `root')
+define(`confUBINGRP', `wheel')
+define(`confSBINOWN', `root')
+define(`confSBINGRP', `wheel')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/Dell b/gnu/usr.sbin/sendmail/devtools/OS/Dell
new file mode 100644
index 00000000000..12e8ad5b766
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/Dell
@@ -0,0 +1,13 @@
+# $Sendmail: Dell,v 8.11 1999/06/02 22:53:36 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-D__svr4__')
+define(`confOPTIMIZE', `-O2')
+define(`confLIBS', `-ldbm -lsocket -lnsl -lelf')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucblib')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/DomainOS b/gnu/usr.sbin/sendmail/devtools/OS/DomainOS
new file mode 100644
index 00000000000..8ae4393321b
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/DomainOS
@@ -0,0 +1,16 @@
+# $Sendmail: DomainOS,v 8.8 1999/04/24 05:37:50 gshapiro Exp $
+define(`confCC', `cc -A nansi -A,systype,any -A,runtype,bsd4.3')
+define(`confBEFORE', `unistd.h dirent.h')
+define(`confMAPDEF', `-DNDBM')
+define(`confSBINDIR', `/usr/etc')
+define(`confMBINDIR', `/usr/lib')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+PUSHDIVERT(3)
+unistd.h:
+ cp /dev/null unistd.h
+
+dirent.h:
+ echo "#include <sys/dir.h>" > dirent.h
+ echo "#define dirent direct" >> dirent.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/DomainOS.10.4 b/gnu/usr.sbin/sendmail/devtools/OS/DomainOS.10.4
new file mode 100644
index 00000000000..0acf7ec009f
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/DomainOS.10.4
@@ -0,0 +1,13 @@
+# $Sendmail: DomainOS.10.4,v 8.3 1999/04/24 05:37:52 gshapiro Exp $
+define(`confCC', `cc -A nansi -A,systype,any -A,runtype,bsd4.3')
+define(`confBEFORE', `dirent.h')
+define(`confMAPDEF', `-DNDBM')
+define(`confSBINDIR', `/usr/etc')
+define(`confMBINDIR', `/usr/lib')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+PUSHDIVERT(3)
+dirent.h:
+ echo "#include <sys/dir.h>" > dirent.h
+ echo "#define dirent direct" >> dirent.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/Dynix b/gnu/usr.sbin/sendmail/devtools/OS/Dynix
new file mode 100644
index 00000000000..09cc1bde7f9
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/Dynix
@@ -0,0 +1,12 @@
+# $Sendmail: Dynix,v 8.10 1999/05/07 17:19:01 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confOPTIMIZE', `-O -g')
+define(`confLIBS', `-lseq')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `staff # no kmem group,')
+define(`confOBJADD', `strtol.o')
+define(`confSRCADD', `strtol.c')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/EWS-UX_V b/gnu/usr.sbin/sendmail/devtools/OS/EWS-UX_V
new file mode 100644
index 00000000000..27fcd04ddcc
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/EWS-UX_V
@@ -0,0 +1,28 @@
+# $Sendmail: EWS-UX_V,v 8.10 1999/06/02 22:53:36 gshapiro Exp $
+define(`confCC', `/usr/abiccs/bin/cc -KOlimit=1000')
+define(`confBEFORE', `sysexits.h ndbm.h ndbm.o')
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confENVDEF', `-Dnec_ews_svr4')
+define(`confLIBS', `ndbm.o -lsocket -lnsl -lelf # # with NDBM')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINGRP', `sys')
+define(`confSTDIR', `/var/ucblib')
+define(`confINSTALL', `/usr/ucb/install')
+PUSHDIVERT(3)
+sysexits.h:
+ echo '#ifndef _LOCAL_SYSEXITS_H_' > sysexits.h;
+ echo '#define _LOCAL_SYSEXITS_H_' >> sysexits.h;
+ cat /usr/abiccs/ucbinclude/sysexits.h >> sysexits.h;
+ echo '#endif /* _LOCAL_SYSEXITS_H_ */' >> sysexits.h;
+# ln -s /usr/abiccs/ucbinclude/sysexits.h .
+
+ndbm.h:
+ ln -s /usr/abiccs/ucbinclude/ndbm.h .
+
+ndbm.o:
+ ar x /usr/abiccs/ucblib/libucb.a ndbm.o
+# ar x /usr/ucblib/libucb.a ndbm.o
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/FreeBSD b/gnu/usr.sbin/sendmail/devtools/OS/FreeBSD
new file mode 100644
index 00000000000..20ad9e6ede3
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/FreeBSD
@@ -0,0 +1,11 @@
+# $Sendmail: FreeBSD,v 8.19 1999/10/07 23:14:25 peterh Exp $
+define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX')
+define(`confLIBS', `-lutil')
+define(`confMTLDOPTS', `-pthread')
+define(`confSTDIO_TYPE', `torek')
+
+define(`confLD', `cc')
+define(`confLDOPTS_SO', `-shared')
+define(`confCCOPTS_SO', `-fPIC')
+
+define(`confPERL_CONFIGURE_ARGS', `-Dlddlflags=-shared -Dccdlflags="-export-dynamic"')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/GNU b/gnu/usr.sbin/sendmail/devtools/OS/GNU
new file mode 100644
index 00000000000..31be5133ea1
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/GNU
@@ -0,0 +1,18 @@
+# $Sendmail: GNU,v 8.2 2000/01/28 18:50:33 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confOPTIMIZE', `-g -O2')
+define(`confDEPEND_TYPE', `CC-M')
+define(`confEBINDIR', `/libexec')
+define(`confMANROOT', `/man/man')
+define(`confMANOWN', `root')
+define(`confMANGRP', `wheel')
+define(`confMANMODE', `644')
+define(`confMBINDIR', `/sbin')
+define(`confSBINDIR', `/sbin')
+define(`confSBINOWN', `root')
+define(`confSBINGRP', `wheel')
+define(`confSBINMODE', `4755')
+define(`confUBINDIR', `/bin')
+define(`confUBINOWN', `root')
+define(`confUBINGRP', `wheel')
+define(`confUBINMODE', `755')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/HP-UX b/gnu/usr.sbin/sendmail/devtools/OS/HP-UX
new file mode 100644
index 00000000000..919f1615009
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/HP-UX
@@ -0,0 +1,11 @@
+# $Sendmail: HP-UX,v 8.12 1999/08/10 00:06:41 gshapiro Exp $
+define(`confCC', `cc -Aa')
+define(`confENVDEF', `-D_HPUX_SOURCE')
+define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX')
+define(`confOPTIMIZE', `+O1')
+define(`confLIBS', `-lndbm')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/HP-UX.10.x b/gnu/usr.sbin/sendmail/devtools/OS/HP-UX.10.x
new file mode 100644
index 00000000000..707d9f31ed4
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/HP-UX.10.x
@@ -0,0 +1,9 @@
+# $Sendmail: HP-UX.10.x,v 8.14 1999/08/10 00:06:41 gshapiro Exp $
+define(`confCC', `cc -Aa')
+define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX')
+define(`confENVDEF', `-D_HPUX_SOURCE -DV4FS')
+define(`confOPTIMIZE', `+O3')
+define(`confLIBS', `-lndbm')
+define(`confSHELL', `/usr/bin/sh')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confSBINGRP', `mail')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/HP-UX.11.x b/gnu/usr.sbin/sendmail/devtools/OS/HP-UX.11.x
new file mode 100644
index 00000000000..80475e8a71e
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/HP-UX.11.x
@@ -0,0 +1,17 @@
+# $Sendmail: HP-UX.11.x,v 8.11 1999/07/02 23:54:55 rand Exp $
+
+# +z is to generate position independant code
+define(`confCC', `cc -Ae +z')
+define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX')
+define(`confENVDEF', `-DV4FS -DHPUX11')
+define(`confOPTIMIZE', `+O3')
+define(`confLIBS', `-ldbm -lnsl')
+define(`confSHELL', `/usr/bin/sh')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confSBINGRP', `mail')
+
+define(`confMTCCOPTS', `-D_POSIX_C_SOURCE=199506L')
+define(`confMTLDOPTS', `-lpthread')
+define(`confLD', `ld')
+define(`confLDOPTS_SO', `-b')
+define(`confCCOPTS_SO', `')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/IRIX b/gnu/usr.sbin/sendmail/devtools/OS/IRIX
new file mode 100644
index 00000000000..e139c62a302
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/IRIX
@@ -0,0 +1,11 @@
+# $Sendmail: IRIX,v 8.10 1999/06/02 22:53:37 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confENVDEF', `-DIRIX')
+define(`confLIBS', `-lmld -lmalloc -lsun')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/bsd')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/IRIX.5.x b/gnu/usr.sbin/sendmail/devtools/OS/IRIX.5.x
new file mode 100644
index 00000000000..2f6e7df7189
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/IRIX.5.x
@@ -0,0 +1,13 @@
+# $Sendmail: IRIX.5.x,v 8.11 1999/07/24 23:37:45 gshapiro Exp $
+define(`confCC', `cc -mips2')
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confENVDEF', `-DIRIX5')
+define(`confLIBS', `-lmld -lmalloc')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/bsd')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confSTDIR', `/var')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/IRIX.6.5 b/gnu/usr.sbin/sendmail/devtools/OS/IRIX.6.5
new file mode 100644
index 00000000000..043797ab742
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/IRIX.6.5
@@ -0,0 +1,13 @@
+# $Sendmail: IRIX.6.5,v 8.12 2000/01/27 19:27:45 ca Exp $
+define(`confCC', `cc -mips3 -n32 -OPT:Olimit=2700')
+define(`confLIBSEARCHPATH', `/lib32 /usr/lib32')
+define(`confMAPDEF', `-DNEWDB -DNDBM -DNIS -DMAP_REGEX -DMAP_NSD')
+define(`confENVDEF', `-DIRIX6 -DHASSNPRINTF=1')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/bsd')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confSTDIR', `/var')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/IRIX.6.x b/gnu/usr.sbin/sendmail/devtools/OS/IRIX.6.x
new file mode 100644
index 00000000000..875d38ea807
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/IRIX.6.x
@@ -0,0 +1,13 @@
+# $Sendmail: IRIX.6.x,v 8.20 1999/12/13 02:08:29 ca Exp $
+define(`confCC', `cc -mips3 -n32 -OPT:Olimit=2700')
+define(`confLIBSEARCHPATH', `/lib32 /usr/lib32')
+define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX')
+define(`confENVDEF', `-DIRIX6')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/bsd')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confSTDIR', `/var')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.0 b/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.0
new file mode 100644
index 00000000000..5f5524e23f0
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.0
@@ -0,0 +1,11 @@
+# $Sendmail: IRIX64.6.0,v 8.14 1999/07/24 23:37:45 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-DIRIX64')
+define(`confLIBS', `-lelf -lmalloc')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/bsd')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.1 b/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.1
new file mode 100644
index 00000000000..721a05d0096
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.1
@@ -0,0 +1,11 @@
+# $Sendmail: IRIX64.6.1,v 8.14 1999/07/24 23:37:46 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-DIRIX64')
+define(`confLIBS', `-lelf -lmalloc')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/bsd')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.5 b/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.5
new file mode 100644
index 00000000000..b8d65885df5
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.5
@@ -0,0 +1,13 @@
+# $Sendmail: IRIX64.6.5,v 8.9 2000/01/27 19:27:45 ca Exp $
+define(`confCC', `cc -mips3 -n32 -OPT:Olimit=2700')
+define(`confLIBSEARCHPATH', `/lib32 /usr/lib32')
+define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX')
+define(`confENVDEF', `-DIRIX6 -DHASSNPRINTF=1')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/bsd')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confSTDIR', `/var')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.x b/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.x
new file mode 100644
index 00000000000..31da3358447
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/IRIX64.6.x
@@ -0,0 +1,13 @@
+# $Sendmail: IRIX64.6.x,v 8.19 2000/01/27 19:27:46 ca Exp $
+define(`confCC', `cc -mips3 -n32 -OPT:Olimit=2700')
+define(`confLIBSEARCHPATH', `/lib32 /usr/lib32')
+define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX')
+define(`confENVDEF', `-DIRIX6')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/bsd')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confSTDIR', `/var')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/ISC b/gnu/usr.sbin/sendmail/devtools/OS/ISC
new file mode 100644
index 00000000000..de0ed1848f7
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/ISC
@@ -0,0 +1,9 @@
+# $Sendmail: ISC,v 8.8 1999/06/02 22:53:38 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confENVDEF', `-DISC_UNIX -D_POSIX_SOURCE -D_SYSV3')
+define(`confLIBS', `-lyp -lrpc -lndbm -linet -lcposix')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confSTDIR', `/usr/spool/log')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/KSR b/gnu/usr.sbin/sendmail/devtools/OS/KSR
new file mode 100644
index 00000000000..73c613973c6
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/KSR
@@ -0,0 +1,6 @@
+# $Sendmail: KSR,v 8.6 1999/04/24 05:37:55 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confLIBDIRS', `-L/usr/shlib -L/usr/lib')
+define(`confLIBS', `-ldbm')
+define(`confSTDIR', `/var/adm/sendmail')
+define(`confINSTALL', `installbsd')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/LUNA b/gnu/usr.sbin/sendmail/devtools/OS/LUNA
new file mode 100644
index 00000000000..5da37333f6e
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/LUNA
@@ -0,0 +1,44 @@
+# $Sendmail: LUNA,v 8.10 1999/04/24 05:37:55 gshapiro Exp $
+define(`confBEFORE', `dirent.h stddef.h stdlib.h unistd.h limits.h time.h sys/time.h')
+define(`confMAPDEF', `-DNDBM')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+PUSHDIVERT(3)
+dirent.h:
+ echo "#include <sys/dir.h>" > dirent.h
+ echo "#define dirent direct" >> dirent.h
+
+stddef.h unistd.h limits.h:
+ if [ -f /usr/include/$@ ]; then \
+ ln -s /usr/include/$@ .; \
+ else \
+ cp /dev/null $@; \
+ fi
+
+stdlib.h:
+ if [ -f /usr/include/stdlib.h ]; then \
+ ln -s /usr/include/stdlib.h .; \
+ else \
+ if [ -f /usr/include/libc.h ]; then \
+ ln -s /usr/include/libc.h stdlib.h; \
+ else \
+ cp /dev/null stdlib.h; \
+ fi; \
+ fi
+
+# just for UNIOS-B
+time.h:
+ echo "#ifndef _LOCAL_TIME_H_" > time.h
+ echo "#define _LOCAL_TIME_H_" >> time.h
+ cat /usr/include/time.h >> time.h
+ echo "#endif" >> time.h
+
+sys/time.h:
+ -mkdir sys
+ echo "#ifndef _LOCAL_SYS_TIME_H_" > sys/time.h
+ echo "#define _LOCAL_SYS_TIME_H_" >> sys/time.h
+ cat /usr/include/sys/time.h >> sys/time.h
+ echo "#endif" >> sys/time.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/Linux b/gnu/usr.sbin/sendmail/devtools/OS/Linux
new file mode 100644
index 00000000000..85da7d69ff6
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/Linux
@@ -0,0 +1,9 @@
+# $Sendmail: Linux,v 8.17 1999/12/27 18:53:09 tony Exp $
+define(`confDEPEND_TYPE', `CC-M')
+define(`confMANROOT', `/usr/man/man')
+define(`confLIBS', `-ldl')
+define(`confEBINDIR', `/usr/sbin')
+APPENDDEF(`confLIBSEARCH', `crypt nsl')
+
+define(`confMTLDOPTS', `-lpthread')
+define(`confLDOPTS_SO', `-shared')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/Mach386 b/gnu/usr.sbin/sendmail/devtools/OS/Mach386
new file mode 100644
index 00000000000..a46dd62f33c
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/Mach386
@@ -0,0 +1,9 @@
+# $Sendmail: Mach386,v 8.8 1999/04/24 05:37:55 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confMAPDEF', `-DNDBM')
+define(`confLIBS', `-ldbm')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/NCR.MP-RAS.2.x b/gnu/usr.sbin/sendmail/devtools/OS/NCR.MP-RAS.2.x
new file mode 100644
index 00000000000..b8245fc3628
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/NCR.MP-RAS.2.x
@@ -0,0 +1,14 @@
+# $Sendmail: NCR.MP-RAS.2.x,v 8.13 1999/06/02 22:53:39 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-DNCR_MP_RAS2')
+define(`confOPTIMIZE', `-O2')
+APPENDDEF(`confINCDIRS', `-I/usr/include -I/usr/ucbinclude')
+define(`confLIBDIRS', `-L/usr/ucblib')
+define(`confLIBS', `-lnsl -lnet -lsocket -lelf -lc -lucb')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSTDIR', `/var/ucblib')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confDEPEND_TYPE', `NCR')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/NCR.MP-RAS.3.x b/gnu/usr.sbin/sendmail/devtools/OS/NCR.MP-RAS.3.x
new file mode 100644
index 00000000000..f5be81114cd
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/NCR.MP-RAS.3.x
@@ -0,0 +1,14 @@
+# $Sendmail: NCR.MP-RAS.3.x,v 8.16 1999/10/25 16:32:02 ca Exp $
+define(`confMAPDEF', `-DNDBM -DMAP_REGEX')
+define(`confENVDEF', `-DNCR_MP_RAS3')
+define(`confOPTIMIZE', `-O2')
+APPENDDEF(`confINCDIRS', `-I/usr/include -I/usr/ucbinclude')
+define(`confLIBDIRS', `-L/usr/ucblib')
+define(`confLIBS', `-lsocket -lnsl -lelf -lc -lucb')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSTDIR', `/var/ucblib')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confDEPEND_TYPE', `NCR')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/NEWS-OS.4.x b/gnu/usr.sbin/sendmail/devtools/OS/NEWS-OS.4.x
new file mode 100644
index 00000000000..15f4889ba3c
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/NEWS-OS.4.x
@@ -0,0 +1,12 @@
+# $Sendmail: NEWS-OS.4.x,v 8.8 1999/04/24 05:37:56 gshapiro Exp $
+define(`confBEFORE', `limits.h')
+define(`confMAPDEF', `-DNDBM')
+define(`confLIBS', `-lmld')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+PUSHDIVERT(3)
+limits.h:
+ touch limits.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/NEWS-OS.6.x b/gnu/usr.sbin/sendmail/devtools/OS/NEWS-OS.6.x
new file mode 100644
index 00000000000..a8199e4696f
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/NEWS-OS.6.x
@@ -0,0 +1,25 @@
+# $Sendmail: NEWS-OS.6.x,v 8.13 1999/08/08 06:42:07 gshapiro Exp $
+define(`confCC', `/bin/cc')
+define(`confBEFORE', `sysexits.h ndbm.o')
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confLIBS', `ndbm.o -lelf -lsocket -lnsl')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `/usr/ucb/install')
+PUSHDIVERT(3)
+sysexits.h:
+ ln -s /usr/ucbinclude/sysexits.h .
+
+ndbm.o:
+ if [ ! -f /usr/include/ndbm.h ]; then \
+ ln -s /usr/ucbinclude/ndbm.h .; \
+ fi; \
+ if [ -f /usr/lib/libndbm.a ]; then \
+ ar x /usr/lib/libndbm.a ndbm.o; \
+ else \
+ ar x /usr/ucblib/libucb.a ndbm.o; \
+ fi;
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/NEXTSTEP.4.x b/gnu/usr.sbin/sendmail/devtools/OS/NEXTSTEP.4.x
new file mode 100644
index 00000000000..ecc85596596
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/NEXTSTEP.4.x
@@ -0,0 +1,27 @@
+# $Sendmail: NEXTSTEP.4.x,v 8.5 1999/12/08 06:08:07 gshapiro Exp $
+PUSHDIVERT(1)
+# NEXTSTEP 3.1 and 3.2 only support m68k and i386
+#ARCH= -arch m68k -arch i386 -arch hppa -arch sparc
+#ARCH= -arch m68k -arch i386
+#ARCH= ${RC_CFLAGS}
+# For new sendmail Makefile structure, this must go in the ENVDEF and LDOPTS
+POPDIVERT
+define(`confBEFORE', `unistd.h dirent.h')
+define(`confMAPDEF', `-DNDBM -DNIS -DNETINFO')
+define(`confENVDEF', `-DNeXT -Wno-precomp -pipe ${RC_CFLAGS}')
+define(`confLDOPTS', `${RC_CFLAGS}')
+define(`confLIBS', `-ldbm')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confRANLIBOPTS', `-c')
+PUSHDIVERT(3)
+unistd.h:
+ cp /dev/null unistd.h
+
+dirent.h:
+ echo "#include <sys/dir.h>" > dirent.h
+ echo "#define dirent direct" >> dirent.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/NeXT.2.x b/gnu/usr.sbin/sendmail/devtools/OS/NeXT.2.x
new file mode 100644
index 00000000000..641386adcfb
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/NeXT.2.x
@@ -0,0 +1,19 @@
+# $Sendmail: NeXT.2.x,v 8.11 1999/12/08 06:08:07 gshapiro Exp $
+define(`confBEFORE', `unistd.h dirent.h')
+define(`confMAPDEF', `-DNDBM -DNIS -DNETINFO')
+define(`confENVDEF', `-DNeXT')
+define(`confLIBS', `-ldbm')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confRANLIBOPTS', `-c')
+PUSHDIVERT(3)
+unistd.h:
+ cp /dev/null unistd.h
+
+dirent.h:
+ echo "#include <sys/dir.h>" > dirent.h
+ echo "#define dirent direct" >> dirent.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/NeXT.3.x b/gnu/usr.sbin/sendmail/devtools/OS/NeXT.3.x
new file mode 100644
index 00000000000..f3dad83d47c
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/NeXT.3.x
@@ -0,0 +1,30 @@
+# $Sendmail: NeXT.3.x,v 8.12 2000/02/01 08:39:38 gshapiro Exp $
+PUSHDIVERT(1)
+# NEXTSTEP 3.1 and 3.2 only support m68k and i386
+#ARCH= -arch m68k -arch i386 -arch hppa -arch sparc
+#ARCH= -arch m68k -arch i386
+#ARCH= ${RC_CFLAGS}
+# For new sendmail Makefile structure, this must go in the ENVDEF and LDOPTS
+POPDIVERT
+define(`confBEFORE', `unistd.h dirent.h')
+define(`confMAPDEF', `-DNDBM -DNIS -DNETINFO')
+define(`confENVDEF', `-DNeXT -Wno-precomp -pipe ${RC_CFLAGS}')
+define(`confLDOPTS', `${RC_CFLAGS}')
+define(`confLIBS', `-ldbm')
+define(`confMANROOT', `/usr/man/cat')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confUBINOWN', `root')
+define(`confMANOWN', `root')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confRANLIBOPTS', `-c')
+PUSHDIVERT(3)
+unistd.h:
+ cp /dev/null unistd.h
+
+dirent.h:
+ echo "#include <sys/dir.h>" > dirent.h
+ echo "#define dirent direct" >> dirent.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/NeXT.4.x b/gnu/usr.sbin/sendmail/devtools/OS/NeXT.4.x
new file mode 100644
index 00000000000..b4e5d863ade
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/NeXT.4.x
@@ -0,0 +1,31 @@
+# $Sendmail: NeXT.4.x,v 8.15 2000/02/02 07:16:30 gshapiro Exp $
+PUSHDIVERT(1)
+# NEXTSTEP 3.1 and 3.2 only support m68k and i386
+#ARCH= -arch m68k -arch i386 -arch hppa -arch sparc
+#ARCH= -arch m68k -arch i386
+#ARCH= ${RC_CFLAGS}
+# For new sendmail Makefile structure, this must go in the ENVDEF and LDOPTS
+POPDIVERT
+define(`confBEFORE', `unistd.h dirent.h')
+define(`confMAPDEF', `-DNDBM -DNIS -DNETINFO')
+define(`confENVDEF', `-DNeXT -Wno-precomp -pipe ${RC_CFLAGS}')
+define(`confLDOPTS', `${RC_CFLAGS}')
+define(`confLIBS', `-ldbm')
+define(`confRANLIBOPTS', `-c')
+define(`confMANROOT', `/usr/man/cat')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confUBINOWN', `root')
+define(`confMANOWN', `root')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confRANLIBOPTS', `-c')
+PUSHDIVERT(3)
+unistd.h:
+ cp /dev/null unistd.h
+
+dirent.h:
+ echo "#include <sys/dir.h>" > dirent.h
+ echo "#define dirent direct" >> dirent.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/NetBSD b/gnu/usr.sbin/sendmail/devtools/OS/NetBSD
new file mode 100644
index 00000000000..d2621cbca31
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/NetBSD
@@ -0,0 +1,10 @@
+# $Sendmail: NetBSD,v 8.9 1999/12/25 01:24:09 gshapiro Exp $
+define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX')
+define(`confENVDEF', ` -DNETISO')
+define(`confDEPEND_TYPE', `CC-M')
+define(`confSTDIO_TYPE', `torek')
+define(`confSBINGRP', `wheel')
+define(`confUBINOWN', `root')
+define(`confUBINGRP', `wheel')
+define(`confMANOWN', `root')
+define(`confMANGRP', `wheel')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/NetBSD.8.3 b/gnu/usr.sbin/sendmail/devtools/OS/NetBSD.8.3
new file mode 100644
index 00000000000..d5b47995615
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/NetBSD.8.3
@@ -0,0 +1,2 @@
+# $Sendmail: NetBSD.8.3,v 8.8 1999/08/08 02:52:05 gshapiro Exp $
+define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/NonStop-UX b/gnu/usr.sbin/sendmail/devtools/OS/NonStop-UX
new file mode 100644
index 00000000000..52606b6744b
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/NonStop-UX
@@ -0,0 +1,14 @@
+# $Sendmail: NonStop-UX,v 8.12 1999/06/02 22:53:39 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-DNonStop_UX_BXX -D_SVID')
+APPENDDEF(`confINCDIRS', `-I/usr/include -I/usr/ucbinclude')
+define(`confLIBDIRS', `-L/usr/ucblib')
+define(`confLIBS', `-lsocket -lnsl -lelf -lucb')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/OSF1 b/gnu/usr.sbin/sendmail/devtools/OS/OSF1
new file mode 100644
index 00000000000..2c4f2de84b3
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/OSF1
@@ -0,0 +1,11 @@
+# $Sendmail: OSF1,v 8.12 1999/11/12 21:19:05 rand Exp $
+define(`confCC', `cc -std1 -Olimit 1000')
+define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX')
+define(`confLIBS', `-ldbm')
+define(`confSTDIR', `/var/adm/sendmail')
+define(`confINSTALL', `installbsd')
+define(`confEBINDIR', `/usr/lbin')
+define(`confUBINDIR', `${BINDIR}')
+define(`confDEPEND_TYPE', `CC-M')
+
+define(`confMTLDOPTS', `-lpthread')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/OpenBSD b/gnu/usr.sbin/sendmail/devtools/OS/OpenBSD
new file mode 100644
index 00000000000..936ebc44227
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/OpenBSD
@@ -0,0 +1,4 @@
+# $Sendmail: OpenBSD,v 8.7 1999/05/06 19:45:41 gshapiro Exp $
+define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX')
+define(`confENVDEF', ` -DNETISO')
+define(`confSTDIO_TYPE', `torek')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/PTX b/gnu/usr.sbin/sendmail/devtools/OS/PTX
new file mode 100644
index 00000000000..a3acfeaf6ff
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/PTX
@@ -0,0 +1,8 @@
+# $Sendmail: PTX,v 8.8 1999/04/24 05:37:57 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM')
+define(`confOPTIMIZE', `-g')
+define(`confLIBS', `-lsocket -linet -lelf -lnsl -lseq')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/Paragon b/gnu/usr.sbin/sendmail/devtools/OS/Paragon
new file mode 100644
index 00000000000..32a347a6106
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/Paragon
@@ -0,0 +1,7 @@
+# $Sendmail: Paragon,v 8.5 1999/04/24 05:37:57 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM')
+define(`confLIBDIRS', `-L/usr/shlib -L/usr/lib')
+define(`confLIBS', `-ldbm')
+define(`confSTDIR', `/var/adm/sendmail')
+define(`confINSTALL', `installbsd')
+define(`confUBINDIR', `${BINDIR}')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/PowerUX b/gnu/usr.sbin/sendmail/devtools/OS/PowerUX
new file mode 100644
index 00000000000..9e4d9c9a469
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/PowerUX
@@ -0,0 +1,9 @@
+# $Sendmail: PowerUX,v 8.7 1999/06/02 22:53:39 gshapiro Exp $
+define(`confENVDEF', `-D__svr4__')
+define(`confLIBS', `-Bstatic -lsocket -lnsl -lelf -lgen')
+define(`confMBINDIR', `/usr/local/etc')
+define(`confSBINDIR', `/usr/local/etc')
+define(`confUBINDIR', `/usr/local/bin')
+define(`confEBINDIR', `/usr/local/lib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `/usr/ucb/install')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/QNX b/gnu/usr.sbin/sendmail/devtools/OS/QNX
new file mode 100644
index 00000000000..5d06fb45d2b
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/QNX
@@ -0,0 +1,15 @@
+# $Sendmail: QNX,v 8.6 1999/04/05 20:00:39 gshapiro Exp $
+PUSHDIVERT(1)
+#
+# For this Makefile to work you must compile and install the libdb package
+# and then change DBMINC and DBMLIB as appropriate.
+#
+DBMINC= /usr/local/include
+DBMLIB= /usr/local/lib
+POPDIVERT
+define(`confENVDEF', `-Osax -w4 -zc -fr= -D__BIT_TYPES_DEFINED__')
+APPENDDEF(`confINCDIRS', `${DBMINC}')
+define(`confLIBDIRS', `${DBMLIB}')
+define(`confLIBS', `-lsocket')
+define(`confLDOPTS', `-M -N256k')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/RISCos b/gnu/usr.sbin/sendmail/devtools/OS/RISCos
new file mode 100644
index 00000000000..e2310935455
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/RISCos
@@ -0,0 +1,23 @@
+# $Sendmail: RISCos,v 8.8 1999/06/02 22:53:40 gshapiro Exp $
+define(`confCC', `cc -systype bsd43 -Olimit 900')
+define(`confBEFORE', `stdlib.h dirent.h unistd.h stddef.h')
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-DRISCOS')
+define(`confLIBS', `-lmld')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `/usr/bsd43/bin/install')
+PUSHDIVERT(3)
+stdlib.h stddef.h:
+ cp /dev/null $@
+
+unistd.h:
+ echo "typedef unsigned short mode_t;" > unistd.h
+
+dirent.h:
+ echo "#include <sys/dir.h>" > dirent.h
+ echo "#define dirent direct" >> dirent.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/RISCos.4_0 b/gnu/usr.sbin/sendmail/devtools/OS/RISCos.4_0
new file mode 100644
index 00000000000..871d70c49cc
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/RISCos.4_0
@@ -0,0 +1,23 @@
+# $Sendmail: RISCos.4_0,v 8.9 1999/06/02 22:53:40 gshapiro Exp $
+define(`confCC', `cc -systype bsd43 -Olimit 900')
+define(`confBEFORE', `stdlib.h dirent.h unistd.h stddef.h')
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-DRISCOS -DRISCOS_4_0')
+define(`confLIBS', `-lmld')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+PUSHDIVERT(3)
+stdlib.h stddef.h:
+ cp /dev/null $@
+
+unistd.h:
+ echo "typedef unsigned short mode_t;" > unistd.h
+
+dirent.h:
+ echo "#include <sys/dir.h>" > dirent.h
+ echo "#define dirent direct" >> dirent.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/Rhapsody b/gnu/usr.sbin/sendmail/devtools/OS/Rhapsody
new file mode 100644
index 00000000000..e23c5af91a9
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/Rhapsody
@@ -0,0 +1,18 @@
+# $Sendmail: Rhapsody,v 8.4 1999/08/13 21:31:10 gshapiro Exp $
+#
+# Wilfredo Sanchez <wsanchez@apple.com>:
+# We look a lot more like 4.4BSD than NeXTStep or OpenStep.
+#
+define(`confCC', `cc -traditional-cpp -pipe ${Extra_CC_Flags}')
+define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX -DNETINFO -DAUTO_NETINFO_ALIASES -DAUTO_NETINFO_HOSTS')
+define(`confENVDEF', `-DNETISO')
+define(`confLDOPTS', `${Extra_LD_Flags}')
+define(`confOPTIMIZE', `-O3')
+define(`confRANLIBOPTS', `-c')
+define(`confHFDIR', `/usr/share/sendmail')
+define(`confMANOWN', `root')
+define(`confMANGRP', `wheel')
+define(`confUBINOWN', `root')
+define(`confUBINGRP', `wheel')
+define(`confSBINOWN', `root')
+define(`confSBINGRP', `wheel')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SCO b/gnu/usr.sbin/sendmail/devtools/OS/SCO
new file mode 100644
index 00000000000..121cec34c55
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SCO
@@ -0,0 +1,7 @@
+# $Sendmail: SCO,v 8.6 1999/06/02 22:53:40 gshapiro Exp $
+define(`confENVDEF', `-D_SCO_unix_')
+define(`confLIBS', `-lsocket -lprot_s -lx -lc_s')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SCO.4.2 b/gnu/usr.sbin/sendmail/devtools/OS/SCO.4.2
new file mode 100644
index 00000000000..1887569d2fd
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SCO.4.2
@@ -0,0 +1,9 @@
+# $Sendmail: SCO.4.2,v 8.8 1999/06/02 22:53:40 gshapiro Exp $
+define(`confENVDEF', `-D_SCO_unix_4_2')
+define(`confLIBS', `-lsocket -lndbm -lprot_s -lx -lc_s')
+define(`confMAPDEF', `-DNDBM')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `bin')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SCO.5.x b/gnu/usr.sbin/sendmail/devtools/OS/SCO.5.x
new file mode 100644
index 00000000000..8c10390376a
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SCO.5.x
@@ -0,0 +1,9 @@
+# $Sendmail: SCO.5.x,v 8.13 1999/04/26 16:11:50 gshapiro Exp $
+define(`confCC', `cc -b elf')
+define(`confLIBS', `-lsocket -lndbm -lprot -lcurses -lm -lx -lgen')
+define(`confMAPDEF', `-DMAP_REGEX -DNDBM')
+define(`confSBINGRP', `bin')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/bin')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SINIX.5.43 b/gnu/usr.sbin/sendmail/devtools/OS/SINIX.5.43
new file mode 100644
index 00000000000..38c88df3f9e
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SINIX.5.43
@@ -0,0 +1,11 @@
+# $Sendmail: SINIX.5.43,v 8.2 1999/04/24 05:37:59 gshapiro Exp $
+define(`confCC', `/usr/bin/cc')
+define(`confENVDEF', `-W0 -D__svr4__')
+define(`confLIBS', `-lsocket -lnsl -lelf -lmproc')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confLDOPTS', `-s')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SINIX.5.44 b/gnu/usr.sbin/sendmail/devtools/OS/SINIX.5.44
new file mode 100644
index 00000000000..94034100b7a
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SINIX.5.44
@@ -0,0 +1,11 @@
+# $Sendmail: SINIX.5.44,v 8.2 1999/04/24 05:37:59 gshapiro Exp $
+define(`confCC', `/usr/bin/cc')
+define(`confENVDEF', `-W0 -D__svr4__ -Klp64')
+define(`confLIBS', `-lsocket -lnsl -lelf -lmproc')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confLDOPTS', `-Klp64 -s')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SVR4 b/gnu/usr.sbin/sendmail/devtools/OS/SVR4
new file mode 100644
index 00000000000..0e36d94b936
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SVR4
@@ -0,0 +1,12 @@
+# $Sendmail: SVR4,v 8.9 1999/06/02 22:53:40 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-D__svr4__')
+define(`confLIBS', `-ldbm -lsocket -lnsl -lelf')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SunOS b/gnu/usr.sbin/sendmail/devtools/OS/SunOS
new file mode 100644
index 00000000000..5c97b0353f7
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SunOS
@@ -0,0 +1,8 @@
+# $Sendmail: SunOS,v 8.8 1999/04/24 05:37:59 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confLDOPTS', `-Bstatic')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SunOS.4.0 b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.4.0
new file mode 100644
index 00000000000..ff8bc30e7a7
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.4.0
@@ -0,0 +1,13 @@
+# $Sendmail: SunOS.4.0,v 8.9 1999/06/02 22:53:41 gshapiro Exp $
+define(`confBEFORE', `stdlib.h stddef.h limits.h')
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confENVDEF', `-DSUNOS403')
+define(`confLDOPTS', `-Bstatic')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+PUSHDIVERT(3)
+stddef.h stdlib.h limits.h:
+ cp /dev/null $@
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.1 b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.1
new file mode 100644
index 00000000000..6161adf474d
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.1
@@ -0,0 +1,20 @@
+# $Sendmail: SunOS.5.1,v 8.11 1999/06/02 22:53:41 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confBEFORE', `sysexits.h')
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confENVDEF', `-DSOLARIS=20100')
+define(`confLIBS', `-lsocket -lnsl -lelf')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
+PUSHDIVERT(3)
+sysexits.h:
+ if [ -r /usr/ucbinclude/sysexits.h ]; \
+ then \
+ ln -s /usr/ucbinclude/sysexits.h; \
+ fi
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.2 b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.2
new file mode 100644
index 00000000000..d521b2842b7
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.2
@@ -0,0 +1,20 @@
+# $Sendmail: SunOS.5.2,v 8.11 1999/06/02 22:53:41 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confBEFORE', `sysexits.h')
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confENVDEF', `-DSOLARIS=20100')
+define(`confLIBS', `-lsocket -lnsl -lelf')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
+PUSHDIVERT(3)
+sysexits.h:
+ if [ -r /usr/ucbinclude/sysexits.h ]; \
+ then \
+ ln -s /usr/ucbinclude/sysexits.h; \
+ fi
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.3 b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.3
new file mode 100644
index 00000000000..743329409a1
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.3
@@ -0,0 +1,18 @@
+# $Sendmail: SunOS.5.3,v 8.11 1999/06/02 22:53:41 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confBEFORE', `sysexits.h')
+define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS')
+define(`confENVDEF', `-DSOLARIS=20300')
+define(`confLIBS', `-lsocket -lnsl -lelf')
+define(`confMBINDIR', `/usr/lib')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
+PUSHDIVERT(3)
+sysexits.h:
+ if [ -r /usr/ucbinclude/sysexits.h ]; \
+ then \
+ ln -s /usr/ucbinclude/sysexits.h; \
+ fi
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.4 b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.4
new file mode 100644
index 00000000000..5a20ae7258f
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.4
@@ -0,0 +1,18 @@
+# $Sendmail: SunOS.5.4,v 8.13 1999/06/02 22:53:41 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confBEFORE', `sysexits.h')
+define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS')
+define(`confENVDEF', `-DSOLARIS=20400')
+define(`confLIBS', `-lsocket -lnsl -lelf')
+define(`confMBINDIR', `/usr/lib')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
+PUSHDIVERT(3)
+sysexits.h:
+ if [ -r /usr/include/sysexits.h ]; \
+ then \
+ ln -s /usr/include/sysexits.h; \
+ fi
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.5 b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.5
new file mode 100644
index 00000000000..8f2b401547a
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.5
@@ -0,0 +1,18 @@
+# $Sendmail: SunOS.5.5,v 8.14 1999/06/02 22:53:42 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confBEFORE', `sysexits.h')
+define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX')
+define(`confENVDEF', `-DSOLARIS=20500')
+define(`confLIBS', `-lsocket -lnsl -lkstat')
+define(`confMBINDIR', `/usr/lib')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
+PUSHDIVERT(3)
+sysexits.h:
+ if [ -r /usr/include/sysexits.h ]; \
+ then \
+ ln -s /usr/include/sysexits.h; \
+ fi
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.6 b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.6
new file mode 100644
index 00000000000..a0e79ab4c8b
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.6
@@ -0,0 +1,19 @@
+# $Sendmail: SunOS.5.6,v 8.14 1999/06/02 22:53:42 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confBEFORE', `sysexits.h')
+define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX')
+define(`confENVDEF', `-DSOLARIS=20600')
+define(`confLIBS', `-lsocket -lnsl -lkstat')
+define(`confMTLDOPTS', `-lpthread')
+define(`confMBINDIR', `/usr/lib')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
+PUSHDIVERT(3)
+sysexits.h:
+ if [ -r /usr/include/sysexits.h ]; \
+ then \
+ ln -s /usr/include/sysexits.h; \
+ fi
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.7 b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.7
new file mode 100644
index 00000000000..03cee185ba6
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.7
@@ -0,0 +1,19 @@
+# $Sendmail: SunOS.5.7,v 8.15 1999/07/30 22:42:47 rand Exp $
+define(`confCC', `gcc')
+define(`confBEFORE', `sysexits.h')
+define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX')
+define(`confENVDEF', `-DSOLARIS=20700')
+define(`confLIBS', `-lsocket -lnsl')
+define(`confMTLDOPTS', `-lpthread')
+define(`confMBINDIR', `/usr/lib')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
+PUSHDIVERT(3)
+sysexits.h:
+ if [ -r /usr/include/sysexits.h ]; \
+ then \
+ ln -s /usr/include/sysexits.h; \
+ fi
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.8 b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.8
new file mode 100644
index 00000000000..8bcdf21dc7d
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.8
@@ -0,0 +1,19 @@
+# $Sendmail: SunOS.5.8,v 8.6 1999/10/27 03:02:03 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confBEFORE', `sysexits.h')
+define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DLDAPMAP')
+define(`confENVDEF', `-DSOLARIS=20800')
+define(`confLIBS', `-lsocket -lnsl -lldap')
+define(`confMTLDOPTS', `-lpthread')
+define(`confMBINDIR', `/usr/lib')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `sys')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confDEPEND_TYPE', `CC-M')
+PUSHDIVERT(3)
+sysexits.h:
+ if [ -r /usr/include/sysexits.h ]; \
+ then \
+ ln -s /usr/include/sysexits.h; \
+ fi
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/Titan b/gnu/usr.sbin/sendmail/devtools/OS/Titan
new file mode 100644
index 00000000000..11e033007fb
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/Titan
@@ -0,0 +1,13 @@
+# $Sendmail: Titan,v 8.6 1999/02/07 03:21:22 gshapiro Exp $
+define(`confCC', `cc -43')
+define(`confBEFORE', `stddef.h stdlib.h')
+define(`confMAPDEF', `-DNDBM')
+define(`confLIBS', `-ldbm')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+PUSHDIVERT(3)
+stddef.h stdlib.h:
+ cp /dev/null $@
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/ULTRIX b/gnu/usr.sbin/sendmail/devtools/OS/ULTRIX
new file mode 100644
index 00000000000..4293e2aafcf
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/ULTRIX
@@ -0,0 +1,9 @@
+# $Sendmail: ULTRIX,v 8.12 1999/09/23 20:51:48 gshapiro Exp $
+define(`confCC', `cc -Olimit 1095')
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confHFDIR', `/usr/lib')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/UMAX b/gnu/usr.sbin/sendmail/devtools/OS/UMAX
new file mode 100644
index 00000000000..bc27df753bd
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/UMAX
@@ -0,0 +1,15 @@
+# $Sendmail: UMAX,v 8.7 1999/06/02 22:53:42 gshapiro Exp $
+define(`confBEFORE', `stddef.h')
+define(`confMAPDEF', `-DNIS')
+define(`confENVDEF', `-DUMAXV')
+define(`confLIBS', `-lyp -lrpc')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confHFDIR', `/usr/lib')
+PUSHDIVERT(3)
+stddef.h:
+ echo "#define _STDDEF_H" > stddef.h
+ chmod 444 stddef.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/UNICOS b/gnu/usr.sbin/sendmail/devtools/OS/UNICOS
new file mode 100644
index 00000000000..207f3b8620d
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/UNICOS
@@ -0,0 +1,7 @@
+# $Sendmail: UNICOS,v 8.10 1999/06/02 22:53:43 gshapiro Exp $
+define(`confENVDEF', `-DUNICOS')
+define(`confOPTIMIZE', `-O')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/UNIX_SV.4.x.i386 b/gnu/usr.sbin/sendmail/devtools/OS/UNIX_SV.4.x.i386
new file mode 100644
index 00000000000..fbd801c128e
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/UNIX_SV.4.x.i386
@@ -0,0 +1,11 @@
+# $Sendmail: UNIX_SV.4.x.i386,v 8.10 1999/09/17 20:49:59 gshapiro Exp $
+define(`confCC', `gcc')
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-D__svr4__ -DUNIXWARE')
+define(`confLIBS', `-lc -ldbm -lsocket -lnsl -lgen -lelf')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `/usr/ucb/install')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/UX4800 b/gnu/usr.sbin/sendmail/devtools/OS/UX4800
new file mode 100644
index 00000000000..7739e7afb20
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/UX4800
@@ -0,0 +1,23 @@
+# $Sendmail: UX4800,v 8.13 1999/08/08 02:52:05 gshapiro Exp $
+define(`confCC', `/usr/abiccs/bin/cc -KOlimit=1000')
+define(`confBEFORE', `sysexits.h ndbm.h')
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confENVDEF', `-DHASSNPRINTF=1')
+define(`confLIBS', `-lsocket -lnsl -lelf')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINGRP', `sys')
+define(`confSTDIR', `/var/ucblib')
+define(`confINSTALL', `/usr/ucb/install')
+PUSHDIVERT(3)
+sysexits.h:
+ echo '#ifndef _LOCAL_SYSEXITS_H_' > sysexits.h;
+ echo '#define _LOCAL_SYSEXITS_H_' >> sysexits.h;
+ cat /usr/abiccs/ucbinclude/sysexits.h >> sysexits.h;
+ echo '#endif /* _LOCAL_SYSEXITS_H_ */' >> sysexits.h;
+
+ndbm.h:
+ sed 's/void/char/' /usr/abiccs/include/ndbm.h > ndbm.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/UXPDS.V10 b/gnu/usr.sbin/sendmail/devtools/OS/UXPDS.V10
new file mode 100644
index 00000000000..69792cb19ae
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/UXPDS.V10
@@ -0,0 +1,13 @@
+# $Sendmail: UXPDS.V10,v 8.13 1999/06/02 22:53:45 gshapiro Exp $
+define(`confCC', `/usr/ccs/bin/cc')
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confENVDEF', `-DUXPDS=10')
+APPENDDEF(`confINCDIRS', `-I/usr/include -I/usr/ucbinclude')
+define(`confLIBS', `/usr/ucblib/libdbm.a /usr/ucblib/libucb.a -lsocket -lnsl -lelf')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confMANROOT', `/usr/local/man/man')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/UXPDS.V20 b/gnu/usr.sbin/sendmail/devtools/OS/UXPDS.V20
new file mode 100644
index 00000000000..7c599bce3c5
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/UXPDS.V20
@@ -0,0 +1,20 @@
+# $Sendmail: UXPDS.V20,v 8.12 1999/06/02 22:53:45 gshapiro Exp $
+define(`confCC', `/usr/ccs/bin/cc')
+define(`confBEFORE', `netinet/ip_var.h')
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confENVDEF', `-DUXPDS=20')
+define(`confLIBS', `/usr/ucblib/libdbm.a -lsocket -lnsl -lelf')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+define(`confMANROOT', `/usr/local/man/man')
+PUSHDIVERT(3)
+netinet/ip_var.h: netinet /usr/include/netinet/ip_var.h
+ sed '/ip_var_f.h/d' /usr/include/netinet/ip_var.h > netinet/ip_var.h
+
+netinet:
+ mkdir netinet
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/UnixWare.5.i386 b/gnu/usr.sbin/sendmail/devtools/OS/UnixWare.5.i386
new file mode 100644
index 00000000000..2bb606330f8
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/UnixWare.5.i386
@@ -0,0 +1,16 @@
+# $Sendmail: UnixWare.5.i386,v 8.4 1999/04/24 05:38:02 gshapiro Exp $
+#
+# System V Rel 5.x (a.k.a Unixware7 w/o BSD-Compatiblity Libs ie. native)
+# Contributed by Paul Gampe <paulg@apnic.net>
+#
+define(`confCC', `/usr/ccs/bin/cc')
+define(`confMAPDEF', `-DNDBM -DMAP_REGEX')
+define(`confENVDEF', `-D__svr5__')
+define(`confLIBS', `-lsocket -lnsl -lelf')
+define(`confSHELL', `/usr/bin/sh')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/etc/mail')
+define(`confUBINDIR', `/etc/mail')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `/usr/ucb/install')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/dcosx.1.x.NILE b/gnu/usr.sbin/sendmail/devtools/OS/dcosx.1.x.NILE
new file mode 100644
index 00000000000..79de489dc36
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/dcosx.1.x.NILE
@@ -0,0 +1,6 @@
+# $Sendmail: dcosx.1.x.NILE,v 8.5 1999/06/02 22:53:46 gshapiro Exp $
+define(`confENVDEF', `-D__svr4__ -DDCOSx')
+define(`confLIBS', `-lsocket -lnsl -lelf')
+define(`confHFDIR', `/usr/share/lib/mail')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confSBINGRP', `sys')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/dgux b/gnu/usr.sbin/sendmail/devtools/OS/dgux
new file mode 100644
index 00000000000..c9695d7f64b
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/dgux
@@ -0,0 +1,8 @@
+# $Sendmail: dgux,v 8.7 1999/04/24 05:38:02 gshapiro Exp $
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confLIBS', `-ldbm')
+define(`confMBINDIR', `/usr/bin')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `bin')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/m88k b/gnu/usr.sbin/sendmail/devtools/OS/m88k
new file mode 100644
index 00000000000..f72a1af38de
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/m88k
@@ -0,0 +1,20 @@
+# $Sendmail: m88k,v 8.2 2000/01/28 19:00:01 gshapiro Exp $
+#
+# Contributed by Sergey Rusanov <rsm@utfoms.udmnet.ru>
+#
+define(`confCC', `gcc')
+define(`confOPTIMIZE', `-O2')
+define(`confMAPDEF', `-DNDBM')
+define(`confENVDEF', `-DMOTO')
+define(`confINCDIRS', `-I/usr/include -I/usr/ucbinclude')
+define(`confLIBDIRS', `-L/usr/lib -L/usr/ucblib')
+define(`confLIBS', `-lc -ldbm -lsocket -lnsl -lelf -lucb')
+define(`confMBINDIR', `/usr/local/sbin')
+define(`confSBINDIR', `/usr/ucb')
+define(`confUBINDIR', `/usr/local/bin')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINGRP', `mail')
+define(`confSTDIR', `/var/log')
+define(`confHFDIR', `/usr/local/sbin')
+define(`confINSTALL', `/usr/ucb/install')
+define(`confDEPEND_TYPE', `CC-M')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/maxion b/gnu/usr.sbin/sendmail/devtools/OS/maxion
new file mode 100644
index 00000000000..226baf593ed
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/maxion
@@ -0,0 +1,13 @@
+# $Sendmail: maxion,v 8.8 1999/04/24 05:38:02 gshapiro Exp $
+define(`confCC', `/usr/ucb/cc')
+define(`confMAPDEF', `-DNDBM -DNIS')
+define(`confLIBDIRS', `-L/usr/ucblib')
+define(`confLIBS', `-ldbm -lgen -lucb')
+define(`confMBINDIR', `/usr/ucblib')
+define(`confSBINDIR', `/usr/ucbetc')
+define(`confUBINDIR', `/usr/ucb')
+define(`confEBINDIR', `/usr/ucblib')
+define(`confSBINOWN', `smtp')
+define(`confSBINGRP', `mail')
+define(`confSTDIR', `/var/adm/log')
+define(`confINSTALL', `/usr/ucb/install')
diff --git a/gnu/usr.sbin/sendmail/devtools/OS/uts.systemV b/gnu/usr.sbin/sendmail/devtools/OS/uts.systemV
new file mode 100644
index 00000000000..3f718f63b8e
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/OS/uts.systemV
@@ -0,0 +1,24 @@
+# $Sendmail: uts.systemV,v 8.14 1999/06/02 22:53:47 gshapiro Exp $
+PUSHDIVERT(1)
+# Sendmail 8 on UTS requires BIND 4.9's include files and lib44bsd and
+# libresolv libraries. The BIND version on UTS is much too old.
+#
+BINDPATH=../../../bind
+POPDIVERT
+define(`confBEFORE', `stddef.h')
+define(`confMAPDEF', `-DNIS -DNDBM')
+define(`confENVDEF', `-D_UTS')
+define(`confOPTIMIZE', `-g')
+APPENDDEF(`confINCDIRS', `-I${BINDPATH}/include -I${BINDPATH}/compat/include')
+define(`confLIBDIRS', `-L${BINDPATH}/res -L${BINDPATH}/compat/lib')
+define(`confLIBS', `-lyp -lrpc -lbsd -lsocket -la')
+define(`confMBINDIR', `/usr/lib')
+define(`confSBINDIR', `/usr/etc')
+define(`confUBINDIR', `/usr/lib')
+define(`confEBINDIR', `/usr/lib')
+define(`confSBINGRP', `mail')
+define(`confINSTALL', `${BUILDBIN}/install.sh')
+PUSHDIVERT(3)
+stddef.h:
+ echo "#include <sys/types.h>" > stddef.h
+POPDIVERT
diff --git a/gnu/usr.sbin/sendmail/devtools/README b/gnu/usr.sbin/sendmail/devtools/README
new file mode 100644
index 00000000000..13fe619c221
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/README
@@ -0,0 +1,311 @@
+This directory contains tools. Do not attempt to actually build
+anything in this directory.
+
+The Build script allows you to specify a base location for the object
+files by using the -O flag:
+
+ Build -O /tmp
+
+will put the object files in /tmp/obj.*/. Also, if the SENDMAIL_SUFFIX
+environment variable is set, its value will be used in the obj.* directory
+name.
+
+The Build script allows you to specify a site configuration file by using
+the -f flag:
+
+ Build -f siteconfig.m4
+
+You can put such site configuration files in the Site sub-directory;
+see Site/README for details.
+
+If you need to support multiple build configurations from the same tree,
+you can use prefixes to differentiate your configurations. Use the -Q
+flag to Build:
+
+ Build -Q prefix
+
+Build will select a prefix.*.m4 file instead of the site.*.m4 file according
+to the conventions in Site/README, and use it to modify the build
+configuration. The object directory used will be obj.prefix.*/. Your
+prefix.*.m4 files should reside in the Site directory. You may not use
+-Q and -f simultaneously.
+
+While building a site configuration file, beyond using define() to set
+variables, you can also add to a definition using the APPENDDEF() and
+PREPENDDEF() macros. For example:
+
+ APPENDDEF(`confINCDIRS', `-I/usr/local/bind/include')
+
+will add -I/usr/local/bind/include to the already existing confINCDIRS.
+Note: There must be no trailing spaces after the last quote mark and
+before the closing parenthesis. Also you may need to properly quote
+m4 reserved words as specified by your vendor's m4 command.
+
+By default, sendmail will search your system for include and library
+directories as well as certain libraries (libdb.* for Berkeley DB and
+libbind.a or libresolv.* for name resolution). You can turn off this
+configuration step by specifying the -S flag with the Build command.
+
+The OS subtree contains definitions for variations on a standard
+model for system installation. The M4 variables that can be defined
+and their defaults before referencing the appropriate OS definitions
+are listed below. Note that variables preceded by an asterisk (*)
+are currently not used in the open source distribution.
+
+confBEFORE [empty] Files to create before sendmail is
+ compiled. The methods must be defined
+ in the Makefile using PUSHDIVERT(3).
+confBUILDBIN ../../devtools/bin The location of the build support
+ binaries, relative to the obj.*
+ directory.
+confCC cc The C compiler to use.
+confOPTIMIZE -O Flags passed to C compiler as ${O}.
+confCCOPTS [empty] Additional options to pass to confCC.
+*confCCOPTS_SO -fPIC Additional options for compiling
+ shared object libraries.
+*confMTCCOPTS [empty] Additional options for compiling
+ multi-threaded object files.
+confCOPY cp A program that copies files.
+confDEPEND_TYPE generic How to build dependencies. This should
+ be the name of a file in
+ devtools/M4/depend
+confEBINDIR /usr/libexec The location for binaries executed
+ from other binaries, e.g., mail.local
+ or smrsh.
+confENVDEF [empty] -D flags passed to C compiler.
+confFORCE_RMAIL [undefined] If defined, install the rmail program
+ without question.
+confHFDIR /etc/mail Location of the sendmail helpfile.
+confHFFILE helpfile Name of the installed helpfile.
+confINCDIRS [empty] -I flags passed to C compiler.
+confINSTALL install The BSD-compatible install program.
+ Use ${BUILDBIN}/install.sh if none
+ is available on your system.
+confINSTALL_RAWMAN [undefined] Install the unformatted manual pages.
+*confLD confCC Linker to use.
+confLDOPTS [empty] Linker options passed to ld.
+*confLDOPTS_SO -shared -Wl Additional linker options for
+ linking shared object libraries.
+*confMTLDOPTS [empty] Additional linker options for
+ linking multithreaded binaries.
+confLIBDIRS [empty] -L flags passed to ld.
+confLIBS [varies] -l flags passed to ld.
+confLIBSEARCH db bind resolv 44bsd
+ Search for these libraries for
+ linking with programs.
+confLIBSEARCHPATH /lib /usr/lib /usr/shlib
+ Locations to search for the
+ libraries specified by confLIBSEARCH.
+confLINKS ${UBINDIR}/newaliases ${UBINDIR}/mailq \
+ ${UBINDIR}/hoststat ${UBINDIR}/purgestat
+ Names of links to sendmail.
+confMANROOT /usr/share/man/cat The root of the man subtree.
+confMANROOTMAN /usr/share/man/man The root of the man subtree, for
+ unformatted manual pages.
+confMAN1 confMANROOT 1 The location of man1 files.
+confMAN1EXT 1 The extension on files in confMAN1.
+confMAN1SRC 0 The source for man pages installed
+ in confMAN1.
+confMAN3 confMANROOT 3 The location of man3 files.
+confMAN3EXT 4 The extension on files in confMAN3.
+confMAN3SRC 0 The source for man pages installed
+ in confMAN3.
+confMAN4 confMANROOT 4 The location of man4 files.
+confMAN4EXT 4 The extension on files in confMAN4.
+confMAN4SRC 0 The source for man pages installed
+ in confMAN4.
+confMAN5 confMANROOT 5 The location of man5 files.
+confMAN5EXT 5 The extension on files in confMAN5.
+confMAN5SRC 0 The source for man pages installed
+ in confMAN5.
+confMAN8 confMANROOT 8 The location of man8 files.
+confMAN8EXT 8 The extension on files in confMAN8.
+confMAN8SRC 0 The source for man pages installed
+ in confMAN8.
+confMANDOC -man The macros used to format man pages.
+confMANOWN bin The owner of installed man pages.
+confMANGRP bin The group of installed man pages.
+confMANMODE 444 The mode of installed man pages.
+confMAPDEF [varies] The map definitions, e.g.,
+ -DNDBM -DNEWDB. -DNEWDB is always
+ added if libdb.* can be found.
+confNO_MAN_BUILD [undefined] If defined, don't build the man
+ pages.
+confNO_HELPFILE_INSTALL [undefined] If defined, don't install the sendmail
+ helpfile by default.
+confNO_MAN_INSTALL [undefined] If defined, don't install the man
+ pages by default.
+confNO_STATISTICS_INSTALL [undefined] If defined, don't install the sendmail
+ statistics file by default.
+confMBINDIR /usr/sbin The location of the MTA (sendmail)
+ binary.
+confNROFF groff -Tascii The command to format man pages.
+confOBJADD [empty] Objects that should be included in
+ when linking sendmail and the
+ associated utilities. See also
+ confSRCADD.
+confRANLIB echo The path to the program to use
+ as ranlib.
+confRANLIBOPTS [empty] Options to pass to ranlib.
+confSBINDIR /usr/sbin The location of root-oriented
+ commands, such as makemap.
+confSBINOWN root The owner for setuid binaries.
+confSBINGRP sbin The group for setuid binaries.
+confSBINMODE 4555 The mode for setuid binaries.
+confSHELL /bin/sh The shell to use inside make.
+confSMOBJADD [empty] Objects that should be included in
+ when linking sendmail. See also
+ confSMSRCADD.
+confSMSRCADD [empty] C source files which correspond to
+ objects listed in confSMOBJADD.
+confSMSRCDIR [varies] The sendmail source directory
+ relative to support program obj.*
+ directories. If not set, the
+ Makefile will use a path set by the
+ Build script.
+confSRCADD [empty] C source files which correspond to
+ objects listed in confOBJADD.
+confSRCDIR [varies] The root of the source directories
+ relative to support program obj.*
+ directories. If not set, the
+ Makefile will use a path set by the
+ Build script.
+confSTDIO_TYPE portable Buffered file implementation
+ (based on stdio library). Either
+ portable or torek.
+confSTDIR /etc/mail The directory in which to store the
+ sendmail statistics file.
+confSTFILE statistics Name of the installed statistics file.
+confSTRIP strip What program to use for stripping
+ executables.
+confSTRIPOPTS [empty] Options to pass to the strip program.
+confUBINDIR /usr/bin The directory for user-executable
+ binaries.
+confUBINOWN bin The owner for user-executable binaries.
+confUBINGRP bin The group for user-executable binaries.
+confUBINMODE 555 The mode for user-executable binaries.
+
+There are also program specific variables for each of the programs
+in the sendmail distribution. Each has the form `conf_prog_ENVDEF',
+for example, `conf_sendmail_ENVDEF'. If the program name consists
+a '.' it must be replaced by '_' first, e.g., use `conf_mail_local_LIBS'
+instead of `conf_mail.local_LIBS'. The variables are:
+
+conf_prog_ENVDEF [empty] -D flags passed to C compiler when
+ compiling prog.
+conf_prog_LIBS [varies] -l flags passed to ld when linking
+ prog.
+conf_prog_SRCADD [empty] C source files to compile and link
+ for prog.
+conf_prog_OBJADD [empty] Additional object files given to ld
+ when linking prog.
+
+----------------------------------------------------------------
+
+----------------
+New build system
+----------------
+
+Sendmail's build system has undergone some rearrangement to accommodate
+future development. To the end user building sendmail from a distribution,
+this should have little effect. All the same configuration files and macros
+should still behave the same.
+
+If you need to make some radical changes to a Makefile.m4 or are adding new
+libraries or utilities, you may want to read the rest of this document on
+how to work with the new system.
+
+
+--------
+Overview
+--------
+
+The purpose of the redesign is twofold. First, it cuts down massively on
+replicated information. Second, the new design should lend itself better to
+working on platforms with somewhat different build tools than on standard
+unix.
+
+The main idea is to have the Makefile.m4 in each subdirectory contain the
+minimum amount of information needed to describe the elements needed for
+the build process and the products produced.
+
+Each product has a type and each type has a template that provides a basic
+makefile for that type. Right now the templates are organized by the broad
+type of the operating system. The two existing types are UNIX and NT.
+
+
+------------------
+Makefile.m4 basics
+------------------
+
+Each Makefile.m4 is split into separate products. For the most part, the
+products are considered totally separate from other products in the
+Makefile.m4. Each products is delineated by two macros: bldPRODUCT_START and
+bldPRODUCT_END.
+
+The form for bldPRODUCT_START is:
+bldPRODUCT_START(<product_type>, <product_name>)
+where <product_type> is the type of product to be produced (e.g., executable,
+library, manpage) and <product_name> is a unique identifier within the
+product_type name space for this Makefile.m4
+
+The form for bldPRODUCT_END is:
+bldPRODUCT_END
+
+This is marks the end of all the information for the current product.
+
+There is one other macro required in any Makefile.m4 and that is bldFINISH
+which takes no arguments and must appear after all the products have been
+defined.
+
+When the actual makefile is generated each product appears in two sections.
+The first is where makefile variables are set (e.g., CFLAGS=-O). The second
+is where the targets appear (e.g., foo.o: foo.c). Anything diverted to
+bldTARGETS_SECTION ends up in the second part of the makefile. Anything
+else turns up in the header part where variables are defined.
+
+As always, any straight text put into Makefile.m4 will just show up as is
+in the finished makefile.
+
+
+-------------
+Product Types
+-------------
+
+executable
+----------
+
+This means an executable created from C sources. The name of the executable
+is derived from the product_name in the bldPRODUCT_START macro.
+
+bldSOURCES - This should be defined to a space separated list of source
+files that make up the executable.
+
+bldBIN_TYPE - This determines where the binaries will be installed and what
+permissions they will have. Available types are `U', `K', `S', and `E'. See
+M4/make/executable.m4 for what the different types mean.
+
+bldTARGET_LINKS - This determines where additional symbolic links to the
+executable are placed. These should be full pathnames, separated by
+spaces.
+
+
+manpage
+-------
+
+This builds manpages from source using *roff.
+
+bldSOURCES - This should be defined to a space separated list of man source
+files.
+
+
+library
+-------
+
+This builds a static library from C sources.
+
+bldSOURCES - This should be defined to a space separated list of C source
+files that make up the library.
+
+
+$Revision: 1.1 $, Last updated $Date: 2000/04/02 19:05:37 $
diff --git a/gnu/usr.sbin/sendmail/devtools/Site/README b/gnu/usr.sbin/sendmail/devtools/Site/README
new file mode 100644
index 00000000000..02203c39778
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/Site/README
@@ -0,0 +1,18 @@
+The Build script will look for the default site configuration files in
+this directory. Build will include the following files if they are
+present in this directory:
+
+ site.config.m4
+ site.OS.$SENDMAIL_SUFFIX.m4
+ site.OS.m4
+ site.post.m4
+
+OS is the name of the operating system file selected from the devtools/OS
+directory. SENDMAIL_SUFFIX is a user environment variable which can be
+used to further distinguish between site configuration files in this
+directory. If set, it will also be used in generating the obj.* directory
+name.
+
+See the README in the devtools directory for more information.
+
+$Revision: 1.1 $, Last updated $Date: 2000/04/02 19:05:39 $
diff --git a/gnu/usr.sbin/sendmail/devtools/bin/Build b/gnu/usr.sbin/sendmail/devtools/bin/Build
new file mode 100644
index 00000000000..52e3a7d72a1
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/bin/Build
@@ -0,0 +1,743 @@
+#!/bin/sh
+
+# Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers.
+# All rights reserved.
+# Copyright (c) 1993, 1996-1997 Eric P. Allman. All rights reserved.
+# Copyright (c) 1993
+# The Regents of the University of California. 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.
+#
+#
+# $Sendmail: Build,v 8.145 2000/02/01 05:49:49 gshapiro Exp $
+#
+
+#
+# A quick-and-dirty script to compile sendmail and related programs
+# in the presence of multiple architectures. To use, just use
+# "sh Build".
+#
+
+trap "rm -f $obj/.settings$$; exit" 1 2 3 15
+
+cflag=""
+mflag=""
+Mflag=""
+Aflag=""
+sflag=""
+makeargs=""
+libdirs=""
+incdirs=""
+libsrch=""
+libpath=""
+siteconfig=""
+pfx=""
+obj=""
+oscf=""
+arch=""
+os=""
+rel=""
+mkdir="mkdir -p"
+SENDMAIL_BUILD_FLAGS=""
+EX_OK=0
+EX_USAGE=64
+EX_NOINPUT=66
+EX_UNAVAILABLE=69
+
+full_src_dir=`pwd`
+if [ -z "$src_dir" ]
+then
+ src_dir=`basename ${full_src_dir}`
+fi
+absolute_base_dir=`echo ${full_src_dir} | sed "s#${src_dir}\\$##"`
+obj_rel_base_dir='../..'
+
+while [ ! -z "$1" ]
+do
+ case $1
+ in
+ -c) # clean out existing $obj tree
+ cflag=1
+ SENDMAIL_BUILD_FLAGS="$SENDMAIL_BUILD_FLAGS $1"
+ shift
+ ;;
+
+ -m) # show Makefile name only
+ mflag=1
+ shift
+ ;;
+
+ -M) # show the name of the obj. directory
+ Mflag=1
+ shift
+ ;;
+
+ -A) # show the name of the architecture
+ Aflag=1
+ shift
+ ;;
+
+ -E*) # environment variables to pass into Build
+ arg=`echo $1 | sed 's/^-E//'`
+ if [ -z "$arg" ]
+ then
+ shift # move to argument
+ arg=$1
+ fi
+ if [ -z "$arg" ]
+ then
+ echo "Empty -E flag" >&2
+ exit $EX_USAGE
+ else
+ case $arg
+ in
+ *=*) # check format
+ eval $arg
+ export `echo $arg | sed 's;=.*;;'`
+ SENDMAIL_BUILD_FLAGS="$SENDMAIL_BUILD_FLAGS -E \"$arg\""
+ ;;
+ *) # bad format
+ echo "Bad format for -E argument ($arg)" >&2
+ exit $EX_USAGE
+ ;;
+ esac
+ shift
+ fi
+ ;;
+
+ -L*) # set up LIBDIRS
+ libdirs="$libdirs $1"
+ SENDMAIL_BUILD_FLAGS="$SENDMAIL_BUILD_FLAGS $1"
+ shift
+ ;;
+
+ -I*) # set up INCDIRS
+ incdirs="$incdirs $1"
+ SENDMAIL_BUILD_FLAGS="$SENDMAIL_BUILD_FLAGS $1"
+ shift
+ ;;
+
+ -f*) # select site config file
+ arg=`echo $1 | sed 's/^-f//'`
+ if [ -z "$arg" ]
+ then
+ shift # move to argument
+ arg=$1
+ fi
+ if [ "$pfx" ]
+ then
+ echo "May not use -f and -Q together"
+ exit $EX_USAGE
+ fi
+ if [ "$siteconfig" ]
+ then
+ echo "Only one -f flag allowed" >&2
+ exit $EX_USAGE
+ else
+ siteconfig=$arg
+ if [ -z "$siteconfig" ]
+ then
+ echo "Missing argument for -f flag" >&2
+ exit $EX_USAGE
+ elif [ ! -f "$siteconfig" ]
+ then
+ echo "${siteconfig}: File not found"
+ exit $EX_NOINPUT
+ else
+ shift # move past argument
+ case $arg
+ in
+ /*)
+ SENDMAIL_BUILD_FLAGS="$SENDMAIL_BUILD_FLAGS -f \"$siteconfig\""
+ ;;
+ *)
+ SENDMAIL_BUILD_FLAGS="$SENDMAIL_BUILD_FLAGS -f \"${full_src_dir}/$siteconfig\""
+ ;;
+ esac
+ fi
+ fi
+ ;;
+
+ -O*) # Set object directory manually.
+ arg="`echo $1 | sed 's/^-O//'`"
+ if [ -z "$arg" ]
+ then
+ shift # move to argument
+ arg="$1"
+ fi
+ case $arg
+ in
+ /*)
+ OBJ_ROOT="$arg"
+ SENDMAIL_BUILD_FLAGS="$SENDMAIL_BUILD_FLAGS -O \"$OBJ_ROOT\""
+ obj_rel_base_dir=$absolute_base_dir
+ ;;
+ *)
+ echo "Absolute directory path required for -O flag" >&2
+ exit $EX_USAGE
+ ;;
+ esac
+ shift
+ ;;
+
+ -S) # skip auto-configure
+ sflag="-s"
+ SENDMAIL_BUILD_FLAGS="$SENDMAIL_BUILD_FLAGS $1"
+ shift
+ ;;
+
+ -Q*) # Select a prefix for the Site/*.config.m4 file
+ arg=`echo $1 | sed 's/^-Q//'`
+ if [ -z "$arg" ]
+ then
+ shift # move to argument
+ arg=$1
+ fi
+ if [ -z "$arg" ]
+ then
+ echo "Empty -Q flag" >&2
+ exit $EX_USAGE
+ elif [ "$siteconfig" ]
+ then
+ echo "May not use -Q and -f together" >&2
+ exit $EX_USAGE
+ elif [ "$pfx" ]
+ then
+ echo "Only one -Q allowed" >&2
+ exit $EX_USAGE
+ else
+ pfx=$arg
+ SENDMAIL_BUILD_FLAGS="$SENDMAIL_BUILD_FLAGS -Q \"$pfx\""
+ fi
+ shift
+ ;;
+
+ *) # pass argument to make
+ makeargs="$makeargs \"$1\""
+ SENDMAIL_BUILD_FLAGS="$SENDMAIL_BUILD_FLAGS \"$1\""
+ shift
+ ;;
+ esac
+done
+
+#
+# Do heuristic guesses !ONLY! for machines that do not have uname
+#
+if [ -d /NextApps -a ! -f /bin/uname -a ! -f /usr/bin/uname ]
+then
+ # probably a NeXT box
+ arch=`hostinfo | sed -n 's/.*Processor type: \([^ ]*\).*/\1/p'`
+ os=NeXT
+ rel=`hostinfo | sed -n 's/.*NeXT Mach \([0-9\.]*\).*/\1/p'`
+elif [ -f /usr/sony/bin/machine -a -f /etc/osversion ]
+then
+ # probably a Sony NEWS 4.x
+ os=NEWS-OS
+ rel=`awk '{ print $3}' /etc/osversion`
+ arch=`/usr/sony/bin/machine`
+elif [ -d /usr/omron -a -f /bin/luna ]
+then
+ # probably a Omron LUNA
+ os=LUNA
+ if [ -f /bin/luna1 ] && /bin/luna1
+ then
+ rel=unios-b
+ arch=luna1
+ elif [ -f /bin/luna2 ] && /bin/luna2
+ then
+ rel=Mach
+ arch=luna2
+ elif [ -f /bin/luna88k ] && /bin/luna88k
+ then
+ rel=Mach
+ arch=luna88k
+ fi
+elif [ -d /usr/apollo -a -d \`node_data ]
+then
+ # probably a Apollo/DOMAIN
+ os=DomainOS
+ arch=$ISP
+ rel=`/usr/apollo/bin/bldt | grep Domain | awk '{ print $4 }' | sed -e 's/,//g'`
+fi
+
+if [ ! "$arch" -a ! "$os" -a ! "$rel" ]
+then
+ arch=`uname -m | sed -e 's/ //g' -e 's/\//-/g'`
+ os=`uname -s | sed -e 's/\//-/g' -e 's/ //g'`
+ rel=`uname -r | sed -e 's/(/-/g' -e 's/)//g' -e 's/ //g'`
+fi
+
+#
+# Tweak the values we have already got. PLEASE LIMIT THESE to
+# tweaks that are absolutely necessary because your system uname
+# routine doesn't return something sufficiently unique. Don't do
+# it just because you don't like the name that is returned. You
+# can combine the architecture name with the os name to create a
+# unique Makefile name.
+#
+
+# tweak machine architecture
+case $arch
+in
+ sun4*) arch=sun4;;
+
+ 9000/*) arch=`echo $arch | sed -e 's/9000.//' -e 's/..$/xx/'`;;
+
+ DS/907000) arch=ds90;;
+
+ NILE*) arch=NILE
+ os=`uname -v`;;
+
+ CRAYT3E|CRAYTS)
+ os=$arch;;
+
+esac
+
+# tweak operating system type and release
+node=`uname -n | sed -e 's/\//-/g' -e 's/ //g'`
+if [ "$os" = "$node" -a "$arch" = "i386" -a "$rel" = 3.2 -a "`uname -v`" = 2 ]
+then
+ # old versions of SCO UNIX set uname -s the same as uname -n
+ os=SCO_SV
+fi
+if [ "$rel" = 4.0 ]
+then
+ case $arch in
+ 3[34]??|3[34]??,*)
+ if [ -d /usr/sadm/sysadm/add-ons/WIN-TCP ]
+ then
+ os=NCR.MP-RAS.2.x
+ elif [ -d /usr/sadm/sysadm/add-ons/inet ]
+ then
+ os=NCR.MP-RAS.3.x
+ fi
+ ;;
+ esac
+fi
+
+case $os
+in
+ DYNIX-ptx) os=PTX;;
+ Paragon*) os=Paragon;;
+ HP-UX) rel=`echo $rel | sed -e 's/^[^.]*\.0*//'`;;
+ AIX) rela=$rel
+ rel=`uname -v`
+ arch=PPC
+ rel=$rel.$rela
+ ;;
+ BSD-386) os=BSD-OS;;
+ SCO_SV) os=SCO; rel=`uname -X | sed -n 's/Release = 3.2v//p'`;;
+ UNIX_System_V) if [ "$arch" = "ds90" ]
+ then
+ os="UXPDS"
+ rel=`uname -v | sed -e 's/\(V.*\)L.*/\1/'`
+ fi;;
+ ReliantUNIX-?|SINIX-?) os=SINIX;;
+ DomainOS) case $rel in
+ 10.4*) rel=10.4;;
+ esac
+ ;;
+ IRIX*) rel=`echo $rel | sed -e 's/-.*$//'`;;
+ NeXT) mkdir="mkdirs";;
+esac
+
+# get "base part" of operating system release
+rroot=`echo $rel | sed -e 's/\.[^.]*$//'`
+rbase=`echo $rel | sed -e 's/\..*//'`
+if [ "$rroot" = "$rbase" ]
+then
+ rroot=$rel
+fi
+
+# heuristic tweaks to clean up names -- PLEASE LIMIT THESE!
+if [ "$os" = "unix" ]
+then
+ # might be Altos System V
+ case $rel
+ in
+ 5.3*) os=Altos;;
+ esac
+elif [ -r /unix -a -r /usr/lib/libseq.a -a -r /lib/cpp ]
+then
+ # might be a DYNIX/ptx 2.x system, which has a broken uname
+ if strings /lib/cpp | grep _SEQUENT_ > /dev/null
+ then
+ os=PTX
+ fi
+elif [ -d /usr/nec ]
+then
+ # NEC machine -- what is it running?
+ if [ "$os" = "UNIX_System_V" ]
+ then
+ os=EWS-UX_V
+ elif [ "$os" = "UNIX_SV" ]
+ then
+ os=UX4800
+ fi
+elif [ "$arch" = "mips" ]
+then
+ case $rel
+ in
+ 4_*)
+ if [ `uname -v` = "UMIPS" ]
+ then
+ os=RISCos
+ fi;;
+ esac
+fi
+
+# see if there is a "user suffix" specified
+if [ "${SENDMAIL_SUFFIX-}x" = "x" ]
+then
+ sfx=""
+else
+ sfx=".${SENDMAIL_SUFFIX}"
+fi
+
+if [ ! -n "$Mflag" -a ! -n "$Aflag" ]
+then
+ echo "Configuration: pfx=$pfx, os=$os, rel=$rel, rbase=$rbase, rroot=$rroot, arch=$arch, sfx=$sfx"
+fi
+
+SMROOT=${SMROOT-..}
+BUILDTOOLS=${BUILDTOOLS-$SMROOT/devtools}
+export SMROOT BUILDTOOLS
+
+# see if we are in a Build-able directory
+if [ ! -f Makefile.m4 -a ! -n "$Aflag" ]; then
+ echo "Makefile.m4 not found. Build can only be run from a source directory."
+ exit $EX_UNAVAILABLE
+fi
+
+incdirs="$incdirs -I\${SRCDIR}/include"
+
+if [ -z "$OBJ_ROOT" ]; then
+ OBJ_ROOT=${SMROOT}
+fi
+
+if [ "${pfx}x" = "x" ]
+then
+ prefix=""
+else
+ prefix=".$pfx"
+fi
+
+# Print out the architecture (to build up an obj dir path) and exit
+if [ -n "$Aflag" ]
+then
+ echo "$os.$rel.$arch$sfx"
+ exit $EX_OK
+fi
+
+# now try to find a reasonable object directory
+if [ -r ${OBJ_ROOT}/obj${prefix}.$os.$rel.$arch$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$os.$rel.$arch$sfx
+elif [ -r ${OBJ_ROOT}/obj${prefix}.$os.$rroot.$arch$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$os.$rroot.$arch$sfx
+elif [ -r ${OBJ_ROOT}/obj${prefix}.$os.$rbase.x.$arch$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$os.$rbase.x.$arch$sfx
+elif [ -r ${OBJ_ROOT}/obj${prefix}.$os.$rel$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$os.$rel$sfx
+elif [ -r ${OBJ_ROOT}/obj${prefix}.$os.$rbase.x$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$os.$rbase.x$sfx
+elif [ -r ${OBJ_ROOT}/obj${prefix}.$os.$arch$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$os.$arch$sfx
+elif [ -r ${OBJ_ROOT}/obj${prefix}.$rel.$arch$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$rel.$arch$sfx
+elif [ -r ${OBJ_ROOT}/obj${prefix}.$rbase.x.$arch$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$rbase.x.$arch$sfx
+elif [ -r ${OBJ_ROOT}/obj${prefix}.$os$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$os$sfx
+elif [ -r ${OBJ_ROOT}/obj${prefix}.$arch$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$arch$sfx
+elif [ -r ${OBJ_ROOT}/obj${prefix}.$rel$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$rel$sfx
+elif [ -r ${OBJ_ROOT}/obj${prefix}.$sfx ]; then
+ obj=${OBJ_ROOT}/obj${prefix}.$sfx
+fi
+
+if [ -n "$obj" ]
+then
+ obj=${obj}/${src_dir}
+fi
+
+# Print the directory which would be used for the build and exit
+if [ -n "$Mflag" ]
+then
+ if [ ! -n "$obj" ]
+ then
+ obj=${OBJ_ROOT}/obj.$os.$rel.$arch$sfx/${src_dir}
+ fi
+ echo "$obj"
+ exit $EX_OK
+fi
+
+# Check if trying to use -f with an existing obj directory
+if [ -n "$siteconfig" -a -n "$obj" -a -d "$obj" -a -z "$cflag" ]
+then
+ echo "Can not use Build's -f flag with an existing object tree."
+ echo "If you wish to change configuration information, use the -c flag to clear"
+ echo "the existing $obj tree."
+ exit $EX_USAGE
+fi
+
+# Check if trying to use -Q with an existing obj directory
+if [ -n "$pfx" -a -n "$obj" -a -d "$obj" -a -z "$cflag" ]
+then
+ echo "Can not use Build's -Q flag with an existing object tree."
+ echo "If you wish to change configuration information, use the -c flag to clear"
+ echo "the existing $obj tree."
+ exit $EX_USAGE
+fi
+
+
+# Clean out the directory before building.
+if [ "$cflag" ]
+then
+ if [ -n "$obj" ]
+ then
+ echo "Clearing out existing $obj tree"
+ rm -rf $obj
+ fi
+fi
+
+# If we didn't detect an existing obj directory, makeup a new obj name.
+if [ -z "$obj" ]
+then
+ obj=${OBJ_ROOT}/obj${prefix}.$os.$rel.$arch$sfx/${src_dir}
+fi
+
+# Check if obj directory exists
+if [ ! -r "$obj" ]
+then
+ if [ -r $BUILDTOOLS/OS/$os.$rel.$arch$sfx ]; then
+ oscf=$os.$rel.$arch$sfx
+ elif [ -r $BUILDTOOLS/OS/$os.$rel.$arch ]; then
+ oscf=$os.$rel.$arch
+ elif [ -r $BUILDTOOLS/OS/$os.$rroot.$arch$sfx ]; then
+ oscf=$os.$rroot.$arch$sfx
+ elif [ -r $BUILDTOOLS/OS/$os.$rroot.$arch ]; then
+ oscf=$os.$rroot.$arch
+ elif [ -r $BUILDTOOLS/OS/$os.$rbase.x.$arch$sfx ]; then
+ oscf=$os.$rbase.x.$arch$sfx
+ elif [ -r $BUILDTOOLS/OS/$os.$rbase.x.$arch ]; then
+ oscf=$os.$rbase.x.$arch
+ elif [ -r $BUILDTOOLS/OS/$os.$rel$sfx ]; then
+ oscf=$os.$rel$sfx
+ elif [ -r $BUILDTOOLS/OS/$os.$rel ]; then
+ oscf=$os.$rel
+ elif [ -r $BUILDTOOLS/OS/$os.$rroot$sfx ]; then
+ oscf=$os.$rroot$sfx
+ elif [ -r $BUILDTOOLS/OS/$os.$rroot ]; then
+ oscf=$os.$rroot
+ elif [ -r $BUILDTOOLS/OS/$os.$rbase.x$sfx ]; then
+ oscf=$os.$rbase.x$sfx
+ elif [ -r $BUILDTOOLS/OS/$os.$rbase.x ]; then
+ oscf=$os.$rbase.x
+ elif [ -r $BUILDTOOLS/OS/$os.$arch$sfx ]; then
+ oscf=$os.$arch$sfx
+ elif [ -r $BUILDTOOLS/OS/$os.$arch ]; then
+ oscf=$os.$arch
+ elif [ -r $BUILDTOOLS/OS/$rel.$arch$sfx ]; then
+ oscf=$rel.$arch$sfx
+ elif [ -r $BUILDTOOLS/OS/$rel.$arch ]; then
+ oscf=$rel.$arch
+ elif [ -r $BUILDTOOLS/OS/$rroot.$arch$sfx ]; then
+ oscf=$rroot.$arch$sfx
+ elif [ -r $BUILDTOOLS/OS/$rroot.$arch ]; then
+ oscf=$rroot.$arch
+ elif [ -r $BUILDTOOLS/OS/$rbase.x.$arch$sfx ]; then
+ oscf=$rbase.x.$arch$sfx
+ elif [ -r $BUILDTOOLS/OS/$rbase.x.$arch ]; then
+ oscf=$rbase.x.$arch
+ elif [ -r $BUILDTOOLS/OS/$os$sfx ]; then
+ oscf=$os$sfx
+ elif [ -r $BUILDTOOLS/OS/$os ]; then
+ oscf=$os
+ elif [ -r $BUILDTOOLS/OS/$arch$sfx ]; then
+ oscf=$arch$sfx
+ elif [ -r $BUILDTOOLS/OS/$arch ]; then
+ oscf=$arch
+ elif [ -r $BUILDTOOLS/OS/$rel$sfx ]; then
+ oscf=$rel$sfx
+ elif [ -r $BUILDTOOLS/OS/$rel ]; then
+ oscf=$rel
+ elif [ -r $BUILDTOOLS/OS/$rel$sfx ]; then
+ oscf=$rel$sfx
+ else
+ echo "Cannot determine how to support $arch.$os.$rel" >&2
+ exit $EX_UNAVAILABLE
+ fi
+ M4=`sh $BUILDTOOLS/bin/find_m4.sh`
+ ret=$?
+ if [ $ret -ne 0 ]
+ then
+ exit $ret
+ fi
+ echo "Using M4=$M4"
+ export M4
+ if [ "$mflag" ]
+ then
+ echo "Will run in virgin $obj using $BUILDTOOLS/OS/$oscf"
+ exit $EX_OK
+ fi
+
+ echo "Creating $obj using $BUILDTOOLS/OS/$oscf"
+ ${mkdir} $obj
+
+ # If this is WINNT then compile with relative paths
+ # (based on REL_SRC_DIR), so we don't need to do any "linking"
+ if [ ! $os = "WINNT" ]
+ then
+ ln="ln -s"
+ (cd $obj; $ln ${obj_rel_base_dir}/${src_dir}/*.[ch13458] .)
+ (cd $obj
+ # This glob doesn't actually glob to something everywhere,
+ # thus the protective measures.
+ for i in ${obj_rel_base_dir}/${src_dir}/*.0
+ do
+ if [ -f $i ]
+ then
+ $ln $i `basename $i`.dist
+ fi
+ done)
+ if [ -f helpfile ]
+ then
+ (cd $obj; $ln ${obj_rel_base_dir}/${src_dir}/helpfile .)
+ fi
+ fi
+
+ rm -f $obj/.settings$$
+ echo 'divert(-1)' > $obj/.settings$$
+ cat $BUILDTOOLS/M4/header.m4 >> $obj/.settings$$
+ cat $BUILDTOOLS/OS/$oscf >> $obj/.settings$$
+
+ if [ $os = "WINNT" ]
+ then
+ # Append C: onto pwd's which don't have the preceding //
+ # so that we can compile on non-network drives.
+ # (Is there a way to get the real drive letter?)
+ dir_prefix=`echo $absolute_base_dir | sed 's#\(..\).*#\1#'`
+ if [ ! $dir_prefix = "//" ]
+ then
+ absolute_base_dir="//C$absolute_base_dir"
+ fi
+
+ # Convert sh's //X to X: drive letters to make make (and cl) happy
+ obj_rel_base_dir=`echo $absolute_base_dir | sed 's#^//\([a-zA-Z]\)#\1:#'`
+ cur_dir=`pwd`
+ cd $obj/..
+ absolute_obj_dir=`pwd | sed 's#/#\\\\\\\\#g'`
+ cd $cur_dir
+ echo "ifdef(\`bldABS_OBJ_DIR',,define(\`bldABS_OBJ_DIR', \`$absolute_obj_dir'))" >> $obj/.settings$$
+ rel_src_dir="$obj_rel_base_dir/$src_dir"
+ echo "define(\`bldREL_SRC_DIR', \`$rel_src_dir')" >> $obj/.settings$$
+ else
+ cur_dir=`pwd`
+ cd $obj/..
+ absolute_obj_dir=`pwd`
+ cd $cur_dir
+ echo "ifdef(\`bldABS_OBJ_DIR',,define(\`bldABS_OBJ_DIR', \`$absolute_obj_dir'))" >> $obj/.settings$$
+ rel_src_dir="$obj_rel_base_dir/$src_dir"
+ echo "define(\`bldREL_SRC_DIR', \`$rel_src_dir')" >> $obj/.settings$$
+ fi
+
+ if [ ! -z "$pfx" ]
+ then
+ # They gave us a specific prefix, let's try it out.
+ if [ -f $BUILDTOOLS/Site/$pfx.$oscf$sfx.m4 ]
+ then
+ siteconfig=$BUILDTOOLS/Site/$pfx.$oscf$sfx.m4
+ elif [ -f $BUILDTOOLS/Site/$pfx.$oscf.m4 ]
+ then
+ siteconfig=$BUILDTOOLS/Site/$pfx.$oscf.m4
+ fi
+ if [ -f $BUILDTOOLS/Site/$pfx.config.m4 ]
+ then
+ siteconfig="$BUILDTOOLS/Site/$pfx.config.m4 $siteconfig"
+ fi
+ elif [ -z "$siteconfig" ]
+ then
+ # none specified, use defaults
+ if [ -f $BUILDTOOLS/Site/site.$oscf$sfx.m4 ]
+ then
+ siteconfig=$BUILDTOOLS/Site/site.$oscf$sfx.m4
+ elif [ -f $BUILDTOOLS/Site/site.$oscf.m4 ]
+ then
+ siteconfig=$BUILDTOOLS/Site/site.$oscf.m4
+ fi
+ if [ -f $BUILDTOOLS/Site/site.config.m4 ]
+ then
+ siteconfig="$BUILDTOOLS/Site/site.config.m4 $siteconfig"
+ fi
+ if [ -f $BUILDTOOLS/Site/site.post.m4 ]
+ then
+ siteconfig="$siteconfig $BUILDTOOLS/Site/site.post.m4"
+ fi
+ fi
+ if [ ! -z "$siteconfig" ]
+ then
+ echo "Including $siteconfig"
+ cat $siteconfig >> $obj/.settings$$
+ fi
+ if [ "$libdirs" ]
+ then
+ echo "define(\`confLIBDIRS', confLIBDIRS \`\`$libdirs'')" >> $obj/.settings$$
+ fi
+ if [ "$incdirs" ]
+ then
+ echo "define(\`confINCDIRS', \`\`$incdirs'' confINCDIRS)" >> $obj/.settings$$
+ fi
+ echo "define(\`_SRC_PATH_', \`\`$obj_rel_base_dir'')" >> $obj/.settings$$
+ echo 'divert(0)dnl' >> $obj/.settings$$
+ libdirs=`(cat $obj/.settings$$; echo "_SRIDBIL_= confLIBDIRS" ) | \
+ sed -e 's/\(.\)include/\1_include_/g' -e 's/#define/#_define_/g' | \
+ ${M4} -DconfBUILDTOOLSDIR=$BUILDTOOLS - | \
+ grep "^_SRIDBIL_=" | \
+ sed -e 's/#_define_/#define/g' -e 's/_include_/include/g' -e "s/^_SRIDBIL_=//"`
+ libsrch=`(cat $obj/.settings$$; echo "_HCRSBIL_= confLIBSEARCH" ) | \
+ sed -e 's/\(.\)include/\1_include_/g' -e 's/#define/#_define_/g' | \
+ ${M4} -DconfBUILDTOOLSDIR=$BUILDTOOLS - | \
+ grep "^_HCRSBIL_=" | \
+ sed -e 's/#_define_/#define/g' -e 's/_include_/include/g' -e "s/^_HCRSBIL_=//"`
+ libpath=`(cat $obj/.settings$$; echo "_HCRSBIL_= confLIBSEARCHPATH" ) | \
+ sed -e 's/\(.\)include/\1_include_/g' -e 's/#define/#_define_/g' | \
+ ${M4} -DconfBUILDTOOLSDIR=$BUILDTOOLS - | \
+ grep "^_HCRSBIL_=" | \
+ sed -e 's/#_define_/#define/g' -e 's/_include_/include/g' -e "s/^_HCRSBIL_=//"`
+ echo 'divert(-1)' >> $obj/.settings$$
+ LIBDIRS="$libdirs" LIBSRCH="$libsrch" LIBPATH="$libpath" SITECONFIG="$siteconfig" sh $BUILDTOOLS/bin/configure.sh $sflag $oscf >> $obj/.settings$$
+ echo 'divert(0)dnl' >> $obj/.settings$$
+ sed -e 's/\(.\)include/\1_include_/g' -e 's/#define/#_define_/g' -e 's/ //g' $obj/.settings$$ | \
+ ${M4} -DconfBUILDTOOLSDIR=$BUILDTOOLS - Makefile.m4 | \
+ sed -e 's/#_define_/#define/g' -e 's/_include_/include/g' -e 's/ //g' > $obj/Makefile
+ # That ^M up there was added by quoting it in emacs.
+ # Make has problems if lines end in ^M^M, but not in ^M apparently
+ if [ $? -ne 0 -o ! -s $obj/Makefile ]
+ then
+ echo "ERROR: ${M4} failed; You may need a newer version of M4, at least as new as System V or GNU" 1>&2
+ rm -rf $obj
+ exit $EX_UNAVAILABLE
+ fi
+ rm -f $obj/.settings$$
+ echo "Making dependencies in $obj"
+ (cd $obj; ${MAKE-make} depend)
+fi
+
+if [ "$mflag" ]
+then
+ makefile=`ls -l $obj/Makefile | sed 's/.* //'`
+ if [ -z "$makefile" ]
+ then
+ echo "ERROR: $obj exists but has no Makefile" >&2
+ exit $EX_NOINPUT
+ fi
+ echo "Will run in existing $obj using $makefile"
+ exit $EX_OK
+fi
+
+echo "Making in $obj"
+cd $obj
+eval exec ${MAKE-make} SENDMAIL_BUILD_FLAGS=\"$SENDMAIL_BUILD_FLAGS\" $makeargs
diff --git a/gnu/usr.sbin/sendmail/devtools/bin/configure.sh b/gnu/usr.sbin/sendmail/devtools/bin/configure.sh
new file mode 100644
index 00000000000..e0e2f988610
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/bin/configure.sh
@@ -0,0 +1,182 @@
+#!/bin/sh
+
+# Copyright (c) 1998-2000 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.
+#
+#
+# $Sendmail: configure.sh,v 8.39 2000/02/26 01:32:07 gshapiro Exp $
+
+#
+# Special script to autoconfigure for M4 generation of Makefile
+#
+
+os=""
+resolver=""
+sflag=""
+bin_dir=`echo $0 | sed -e 's/\/[^/]*$//'`
+if [ ! -d $bin_dir ]
+then
+ bin_dir="."
+fi
+find_prog=$bin_dir/find_in_path.sh
+
+while [ ! -z "$1" ]
+do
+ case $1
+ in
+ -s) # skip auto-configure
+ sflag=1
+ shift
+ ;;
+
+ *) # OS definition
+ os=$1
+ shift
+ ;;
+ esac
+done
+
+usewhoami=0
+usehostname=0
+for p in `echo $PATH | sed 's/:/ /g'`
+do
+ if [ "x$p" = "x" ]
+ then
+ p="."
+ fi
+ if [ -f $p/whoami ]
+ then
+ usewhoami=1
+ if [ $usehostname -ne 0 ]
+ then
+ break;
+ fi
+ fi
+ if [ -f $p/hostname ]
+ then
+ usehostname=1
+ if [ $usewhoami -ne 0 ]
+ then
+ break;
+ fi
+ fi
+done
+if [ $usewhoami -ne 0 ]
+then
+ user=`whoami`
+else
+ user=$LOGNAME
+fi
+
+if [ $usehostname -ne 0 ]
+then
+ host=`hostname`
+else
+ host=`uname -n`
+fi
+echo "PUSHDIVERT(0)"
+echo "####################################################################"
+echo "##### This file is automatically generated -- edit at your own risk"
+echo '#####' Built by $user@$host
+echo '#####' on `date` using template OS/$os
+if [ ! -z "$SITECONFIG" ]
+then
+ echo '#####' including $SITECONFIG
+fi
+echo '#####' in `pwd` | sed 's/\/tmp_mnt//'
+echo "####################################################################"
+echo ""
+echo "POPDIVERT"
+echo "define(\`__HOST__', \`$host')dnl"
+echo "ifdef(\`confMAPDEF',, \`define(\`confMAPDEF', \`')')dnl"
+echo "ifdef(\`confLIBS',, \`define(\`confLIBS', \`')')dnl"
+
+LIBDIRS="$LIBDIRS $LIBPATH"
+libs=""
+mapdef=""
+for l in $LIBSRCH
+do
+ for p in `echo $LIBDIRS | sed -e 's/:/ /g' -e 's/^-L//g' -e 's/ -L/ /g'`
+ do
+ if [ "x$p" = "x" ]
+ then
+ p = "."
+ fi
+ if [ -f $p/lib$l.a -o -f $p/lib$l.so ]
+ then
+ case $l
+ in
+ db)
+ mapdef="$mapdef -DNEWDB"
+ ;;
+ bind|resolv)
+ if [ -n "$resolver" ]
+ then
+ continue
+ else
+ resolver=$l
+ fi
+ ;;
+ 44bsd)
+ if [ "x$resolver" != "xresolv" ]
+ then
+ continue
+ fi
+ ;;
+ esac
+ libs="$libs -l$l"
+ break
+ fi
+ done
+done
+
+for p in `echo $PATH | sed 's/:/ /g'`
+do
+ pbase=`echo $p | sed -e 's,/bin,,'`
+ if [ "x$p" = "x" ]
+ then
+ p="."
+ fi
+ if [ -f $p/mkdep ]
+ then
+ echo "ifdef(\`confDEPEND_TYPE',, \`define(\`confDEPEND_TYPE', \`BSD')')dnl"
+ fi
+done
+
+if [ -z "$sflag" ]
+then
+ echo "define(\`confMAPDEF', \`$mapdef' confMAPDEF)dnl"
+ echo "define(\`confLIBS', \`$libs' confLIBS)dnl"
+fi
+
+if [ ! -z "`sh $find_prog ranlib`" ]
+then
+ echo "define(\`confRANLIB', \`ranlib')dnl"
+fi
+
+roff_progs="groff nroff"
+for roff_prog in $roff_progs
+do
+ if [ ! -z "`sh $find_prog $roff_prog`" ]
+ then
+ found_roff=$roff_prog
+ break;
+ fi
+done
+
+case $found_roff
+in
+ groff)
+ echo "ifdef(\`confNROFF',,define(\`confNROFF', \`$found_roff -Tascii'))dnl"
+ ;;
+ nroff)
+ echo "ifdef(\`confNROFF',,define(\`confNROFF', \`$found_roff'))dnl"
+ ;;
+ *)
+ echo "ifdef(\`confNROFF',,define(\`confNO_MAN_BUILD'))dnl"
+ ;;
+esac
diff --git a/gnu/usr.sbin/sendmail/devtools/bin/find_in_path.sh b/gnu/usr.sbin/sendmail/devtools/bin/find_in_path.sh
new file mode 100644
index 00000000000..f0affd2ec94
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/bin/find_in_path.sh
@@ -0,0 +1,19 @@
+#! /bin/sh
+#
+# $Sendmail: find_in_path.sh,v 8.2 1999/09/23 20:42:22 gshapiro Exp $
+#
+EX_OK=0
+EX_NOT_FOUND=1
+
+ifs="$IFS"; IFS="${IFS}:"
+for dir in $PATH /usr/5bin /usr/ccs/bin
+do
+ if [ -r $dir/$1 ]
+ then
+ echo $dir/$1
+ exit $EX_OK
+ fi
+done
+IFS=$ifs
+
+exit $EX_NOT_FOUND
diff --git a/gnu/usr.sbin/sendmail/devtools/bin/find_m4.sh b/gnu/usr.sbin/sendmail/devtools/bin/find_m4.sh
new file mode 100644
index 00000000000..684b45a29f5
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/bin/find_m4.sh
@@ -0,0 +1,83 @@
+#!/bin/sh
+
+# Copyright (c) 1998, 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.
+#
+#
+# $Sendmail: find_m4.sh,v 8.7 1999/02/07 07:25:58 gshapiro Exp $
+#
+
+# Try to find a working M4 program.
+# If $M4 is already set, we use it, otherwise we prefer GNU m4.
+
+EX_UNAVAILABLE=69
+
+test="ifdef(\`pushdef', \`',
+\`errprint(\`You need a newer version of M4, at least as new as System V or GNU')
+include(NoSuchFile)')
+define(\`BadNumber', \`10')
+ifdef(\`BadNumber', \`', \`errprint(\`This version of m4 is broken')')"
+
+if [ "$M4" ]
+then
+ err=`(echo "$test" | $M4) 2>&1 >/dev/null`
+ code=$?
+else
+ firstfound=
+ ifs="$IFS"; IFS="${IFS}:"
+ for m4 in gm4 gnum4 pdm4 m4
+ do
+ for dir in $PATH /usr/5bin /usr/ccs/bin
+ do
+ [ -z "$dir" ] && dir=.
+ if [ -f $dir/$m4 ]
+ then
+ err=`(echo "$test" | $dir/$m4) 2>&1 >/dev/null`
+ ret=$?
+ if [ $ret -eq 0 -a "X$err" = "X" ]
+ then
+ M4=$dir/$m4
+ code=0
+ break
+ else
+ case "$firstfound:$err" in
+ :*version\ of*)
+ firstfound=$dir/$m4
+ firsterr="$err"
+ firstcode=$ret
+ ;;
+ esac
+ fi
+ fi
+ done
+ [ "$M4" ] && break
+ done
+ IFS="$ifs"
+ if [ ! "$M4" ]
+ then
+ if [ "$firstfound" ]
+ then
+ M4=$firstfound
+ err="$firsterr"
+ code=$firstcode
+ else
+ echo "ERROR: Can not locate an M4 program" >&2
+ exit $EX_UNAVAILABLE
+ fi
+ fi
+fi
+if [ $code -ne 0 ]
+then
+ echo "ERROR: Using M4=$M4: $err" | grep -v NoSuchFile >&2
+ exit $EX_UNAVAILABLE
+elif [ "X$err" != "X" ]
+then
+ echo "WARNING: $err" >&2
+fi
+echo $M4
+exit 0
+
diff --git a/gnu/usr.sbin/sendmail/devtools/bin/install.sh b/gnu/usr.sbin/sendmail/devtools/bin/install.sh
new file mode 100644
index 00000000000..49ad7ead40d
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/devtools/bin/install.sh
@@ -0,0 +1,133 @@
+#!/bin/sh
+
+# Copyright (c) 1998, 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.
+#
+#
+# $Sendmail: install.sh,v 8.13 1999/02/22 21:34:38 gshapiro Exp $
+
+# Set default program
+program=mv
+owner=""
+group=""
+mode=""
+strip=""
+
+# chown program -- ultrix keeps it in /etc/chown and /usr/etc/chown
+if [ -f /etc/chown ]
+then
+ chown=/etc/chown
+elif [ -f /usr/etc/chown ]
+then
+ chown=/usr/etc/chown
+else
+ chown=chown
+fi
+
+# Check arguments
+while [ ! -z "$1" ]
+do
+ case $1
+ in
+ -o) owner=$2
+ shift; shift
+ ;;
+
+ -g) group=$2
+ shift; shift
+ ;;
+
+ -m) mode=$2
+ shift; shift
+ ;;
+
+ -c) program=cp
+ shift
+ ;;
+
+ -s) strip="strip"
+ shift
+ ;;
+
+ -*) echo $0: Unknown option $1
+ exit 1
+ ;;
+
+ *) break
+ ;;
+ esac
+done
+
+# Check source file
+if [ -z "$1" ]
+then
+ echo "Source file required" >&2
+ exit 1
+elif [ -f $1 -o $1 = /dev/null ]
+then
+ src=$1
+else
+ echo "Source file must be a regular file or /dev/null" >&2
+ exit 1
+fi
+
+# Check destination
+if [ -z "$2" ]
+then
+ echo "Destination required" >&2
+ exit 1
+elif [ -d $2 ]
+then
+ dst=$2/$src
+else
+ dst=$2
+fi
+
+# Do install operation
+$program $src $dst
+if [ $? != 0 ]
+then
+ exit 1
+fi
+
+# Strip if requested
+if [ ! -z "$strip" ]
+then
+ $strip $dst
+fi
+
+# Change owner if requested
+if [ ! -z "$owner" ]
+then
+ $chown $owner $dst
+ if [ $? != 0 ]
+ then
+ exit 1
+ fi
+fi
+
+# Change group if requested
+if [ ! -z "$group" ]
+then
+ chgrp $group $dst
+ if [ $? != 0 ]
+ then
+ exit 1
+ fi
+fi
+
+# Change mode if requested
+if [ ! -z "$mode" ]
+then
+ chmod $mode $dst
+ if [ $? != 0 ]
+ then
+ exit 1
+ fi
+fi
+
+exit 0