1 AC_DEFUN([PDNS_WITH_LIBDECAF],[
2 AC_MSG_CHECKING([whether we will be linking in libdecaf])
3 AC_ARG_WITH([libdecaf],
4 [AS_HELP_STRING([--with-libdecaf],[use libdecaf @<:@default=no@:>@])],
5 [with_libdecaf=$withval],
8 AC_MSG_RESULT([$with_libdecaf])
10 AM_CONDITIONAL([LIBDECAF],[test "x$with_libdecaf" != "xno"])
12 AS_IF([test "x$with_libdecaf" != "xno"],[
15 AC_SEARCH_LIBS([decaf_ed25519_sign],[decaf],[
16 AC_DEFINE([HAVE_LIBDECAF],[1],[Define to 1 if you have libdecaf])
17 AC_SUBST([LIBDECAF_LIBS],["$LIBS"])
19 AC_MSG_ERROR([Could not find libdecaf])