1 AC_DEFUN([PDNS_ENABLE_IPCIPHER], [
2 AC_MSG_CHECKING([whether to enable ipcipher support])
4 AC_ARG_ENABLE([ipcipher],
5 AS_HELP_STRING([--enable-ipcipher], [enable ipcipher support (requires libcrypto) @<:@default=auto@:>@]),
6 [enable_ipcipher=$enableval],
9 AC_MSG_RESULT([$enable_ipcipher])
11 AS_IF([test "x$enable_ipcipher" != "xno"], [
12 AS_IF([test "x$enable_ipcipher" = "xyes" -o "x$enable_ipcipher" = "xauto"], [
13 AM_COND_IF([HAVE_LIBCRYPTO], [
14 AC_DEFINE([HAVE_IPCIPHER], [1], [Define to 1 if you enable ipcipher support])
19 AM_CONDITIONAL([IPCIPHER], [test "x$HAVE_IPCIPHER" != "x0"])
21 AS_IF([test "x$enable_ipcipher" = "xyes"], [
22 AS_IF([test x"$HAVE_IPCIPHER" = "x0"], [
23 AC_MSG_ERROR([ipcipher support requested but libcrypto is not available])