]> granicus.if.org Git - pdns/commitdiff
Add check for gss libraries
authorAki Tuomi <cmouse@cmouse.fi>
Thu, 21 May 2015 19:14:25 +0000 (22:14 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Thu, 28 May 2015 13:48:12 +0000 (16:48 +0300)
m4/pdns_enable_gss_tsig.m4 [new file with mode: 0644]

diff --git a/m4/pdns_enable_gss_tsig.m4 b/m4/pdns_enable_gss_tsig.m4
new file mode 100644 (file)
index 0000000..9acd756
--- /dev/null
@@ -0,0 +1,24 @@
+AC_DEFUN([PDNS_ENABLE_GSS_TSIG],[
+  AC_MSG_CHECKING([whether to enable experimental GSS-TSIG support])
+  AC_ARG_ENABLE([experimental_gss_tsig],
+    AS_HELP_STRING([--enable-experimental-gss-tsig],
+      [enable experimental GSS-TSIG support @<:@default=no@:>@]
+    ),
+    [enable_experimental_gss_tsig=$enableval],
+    [enable_experimental_gss_tsig=no]
+  )
+
+  AC_MSG_RESULT([$enable_experimental_gss_tsig])
+
+  AM_CONDITIONAL([GSS_TSIG],[test "x$enable_experimental_gss_tsig" != "xno"])
+  AC_SUBST(GSS_TSIG)
+  AS_IF([test "x$enable_experimental_gss_tsig" != "xno"],
+   [PKG_CHECK_MODULES([GSS], [krb5 krb5-gssapi gss],
+      [
+        AC_DEFINE([ENABLE_GSS_TSIG], [1], [Define to 1 if you want to enable GSS-TSIG support])
+        GSS_TSIG=yes
+      ],
+      [AC_MSG_ERROR([Required libraries for GSS-TSIG not found])]
+   )],
+    [GSS_TSIG=no])
+])