AC_SUBST(DYNLINKFLAGS)
-AC_MSG_CHECKING(whether we will be doing verbose logging)
-AC_ARG_ENABLE(verbose-logging,
- AS_HELP_STRING([--enable-verbose-logging],[do verbose logging]), [enable_verbose_logging=yes], [enable_verbose_logging=no])
-
-if test $enable_verbose_logging = yes; then AC_DEFINE(VERBOSELOG, 1, [If verbose logging should be enabled])
-fi
-AC_MSG_RESULT($enable_verbose_logging)
-
+PDNS_ENABLE_VERBOSE_LOGGING
PDNS_WITH_SYSTEM_POLARSSL
PDNS_ENABLE_BOTAN
PDNS_WITH_CRYPTOPP
--- /dev/null
+AC_DEFUN([PDNS_ENABLE_VERBOSE_LOGGING],[
+ AC_MSG_CHECKING([whether to enable verbose logging])
+
+ AC_ARG_ENABLE([verbose-logging],
+ AS_HELP_STRING([--enable-verbose-logging],
+ [enable verbose logging @<:@default=no@:>@]
+ ),
+ [enable_verbose_logging=yes],
+ [enable_verbose_logging=no]
+ )
+
+ AS_IF([test "x$enable_verbose_logging" = "xyes"],
+ [AC_DEFINE([VERBOSELOG], [1], [Define to 1 if verbose logging is enabled])]
+ )
+
+ AC_MSG_RESULT([$enable_verbose_logging])
+])