summaryrefslogtreecommitdiffstats
path: root/usr.sbin/amd/include
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2004-11-13 20:40:32 +0000
committerbz <bz@FreeBSD.org>2004-11-13 20:40:32 +0000
commit4b83c5852a5bcba28ed7ce5d13ff021642859772 (patch)
treeda33d2aed5fb6a0c2319fb0d10f0957f518eee99 /usr.sbin/amd/include
parenta67c7e75123103251e304a51ba19d0530b75981d (diff)
downloadFreeBSD-src-4b83c5852a5bcba28ed7ce5d13ff021642859772.zip
FreeBSD-src-4b83c5852a5bcba28ed7ce5d13ff021642859772.tar.gz
Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on no NIS support and related programs will be built. Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il> PR: bin/68303 No objections: des, gshapiro, nectar Reviewed by: ru Approved by: rwatson (mentor) MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/amd/include')
-rw-r--r--usr.sbin/amd/include/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/amd/include/Makefile b/usr.sbin/amd/include/Makefile
index d3cf000..7fa54ae 100644
--- a/usr.sbin/amd/include/Makefile
+++ b/usr.sbin/amd/include/Makefile
@@ -8,6 +8,9 @@
# $NetBSD: Makefile,v 1.8 1998/08/08 22:33:37 christos Exp $
SRCS= config_local.h
+.if defined(NO_NIS)
+SRCS+= localconfig.h
+.endif
CLEANFILES= ${SRCS}
all depend: ${SRCS}
@@ -16,4 +19,9 @@ config_local.h: newvers.sh
@rm -f ${.TARGET}
sh ${.ALLSRC} ${.CURDIR}/../../../sys/conf/newvers.sh > ${.TARGET}
+localconfig.h:
+ @rm -f ${.TARGET}
+ @echo "/* NIS disabled by NO_NIS make.conf option */" >> ${.TARGET}
+ @echo "#undef HAVE_MAP_NIS" >> ${.TARGET}
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud