Module Name:    src
Committed By:   christos
Date:           Wed Mar 13 12:56:31 UTC 2024

Modified Files:
        src/external/mpl/bind: Makefile.inc
        src/external/mpl/bind/include: config.h

Log Message:
centrally control if we are building kerberos


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/mpl/bind/Makefile.inc
cvs rdiff -u -r1.16 -r1.17 src/external/mpl/bind/include/config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mpl/bind/Makefile.inc
diff -u src/external/mpl/bind/Makefile.inc:1.14 src/external/mpl/bind/Makefile.inc:1.15
--- src/external/mpl/bind/Makefile.inc:1.14	Sun Feb 25 13:50:43 2024
+++ src/external/mpl/bind/Makefile.inc	Wed Mar 13 08:56:31 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.14 2024/02/25 18:50:43 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.15 2024/03/13 12:56:31 christos Exp $
 
 .if !defined(BIND9_MAKEFILE_INC)
 BIND9_MAKEFILE_INC=yes
@@ -79,6 +79,7 @@ LIBDPLIBS+=      pthread  ${NETBSDSRCDIR
 .endif
 
 .if ${MKKERBEROS} != "no"
+CPPFLAGS+=-DWITH_KERBEROS
 .if !defined (LIB) || empty(LIB)
 LDADD+= -lgssapi -lheimntlm ${LIBKRB5_LDADD}
 DPADD+= ${LIBGSSAPI} ${LIBHEIMNTLM} ${LIBKRB5_DPADD}

Index: src/external/mpl/bind/include/config.h
diff -u src/external/mpl/bind/include/config.h:1.16 src/external/mpl/bind/include/config.h:1.17
--- src/external/mpl/bind/include/config.h:1.16	Wed Feb 21 17:52:52 2024
+++ src/external/mpl/bind/include/config.h	Wed Mar 13 08:56:31 2024
@@ -178,6 +178,7 @@
 /* Define to 1 if you have the <glob.h> header file. */
 #define HAVE_GLOB_H 1
 
+#ifdef WITH_KERBEROS
 /* Define to 1 if you have the Kerberos Framework available */
 #define HAVE_GSSAPI 1
 
@@ -195,6 +196,7 @@
 
 /* Define to 1 if you have the `gss_acquire_cred' function. */
 #define HAVE_GSS_ACQUIRE_CRED 1
+#endif
 
 /* Define to 1 if you have the <idn2.h> header file. */
 /* #undef HAVE_IDN2_H */
@@ -214,6 +216,7 @@
 /* Use json-c library */
 /* #undef HAVE_JSON_C */
 
+#ifdef WITH_KERBEROS
 /* Define to 1 if you have the <krb5.h> header file. */
 /* #undef HAVE_KRB5_H */
 
@@ -222,6 +225,7 @@
 
 /* Define to 1 if you have the <krb5/krb5.h> header file. */
 #define HAVE_KRB5_KRB5_H 1
+#endif
 
 /* Define if libidn2 was found */
 /* #undef HAVE_LIBIDN2 */

Reply via email to