]>
Commit | Line | Data |
---|---|---|
e201cdf6 AT |
1 | AC_DEFUN([PDNS_ENABLE_GSS_TSIG],[ |
2 | AC_MSG_CHECKING([whether to enable experimental GSS-TSIG support]) | |
3 | AC_ARG_ENABLE([experimental_gss_tsig], | |
4 | AS_HELP_STRING([--enable-experimental-gss-tsig], | |
5 | [enable experimental GSS-TSIG support @<:@default=no@:>@] | |
6 | ), | |
7 | [enable_experimental_gss_tsig=$enableval], | |
8 | [enable_experimental_gss_tsig=no] | |
9 | ) | |
10 | ||
11 | AC_MSG_RESULT([$enable_experimental_gss_tsig]) | |
12 | ||
13 | AM_CONDITIONAL([GSS_TSIG],[test "x$enable_experimental_gss_tsig" != "xno"]) | |
14 | AC_SUBST(GSS_TSIG) | |
15 | AS_IF([test "x$enable_experimental_gss_tsig" != "xno"], | |
16 | [PKG_CHECK_MODULES([GSS], [krb5 krb5-gssapi gss], | |
17 | [ | |
18 | AC_DEFINE([ENABLE_GSS_TSIG], [1], [Define to 1 if you want to enable GSS-TSIG support]) | |
19 | GSS_TSIG=yes | |
20 | ], | |
21 | [AC_MSG_ERROR([Required libraries for GSS-TSIG not found])] | |
22 | )], | |
23 | [GSS_TSIG=no]) | |
24 | ]) |