From: Ruben Kerkhof Date: Mon, 11 May 2015 17:20:32 +0000 (+0200) Subject: Build calidns only if we have detected recvmmsg X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~28^2~49^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ab95beaeda0aee64d8b76b1874f1ca126cc6a19;p=thirdparty%2Fpdns.git Build calidns only if we have detected recvmmsg Fixes #2498 Obsoletes #2509 --- diff --git a/configure.ac b/configure.ac index 807b64e4a3..0b20797828 100644 --- a/configure.ac +++ b/configure.ac @@ -132,7 +132,9 @@ PDNS_CHECK_MKDOCS PDNS_CHECK_LINKCHECKER dnl Checks for library functions. -AC_CHECK_FUNCS_ONCE([strcasestr localtime_r]) +AC_CHECK_FUNCS_ONCE([strcasestr localtime_r recvmmsg]) + +AM_CONDITIONAL([HAVE_RECVMMSG], [test "x$ac_cv_func_recvmmsg" = "xyes"]) AS_IF([test "x$lt_cv_dlopen" = "xno"], [AC_MSG_ERROR([Your system does not support dlopen])] diff --git a/pdns/Makefile.am b/pdns/Makefile.am index ebb22a8d91..84ec543189 100644 --- a/pdns/Makefile.am +++ b/pdns/Makefile.am @@ -73,7 +73,6 @@ bin_PROGRAMS = \ if TOOLS bin_PROGRAMS += \ - calidns\ dnsbulktest \ dnsgram \ dnsreplay \ @@ -86,6 +85,11 @@ bin_PROGRAMS += \ nproxy \ nsec3dig \ saxfr + +if HAVE_RECVMMSG +bin_PROGRAMS += calidns +endif + endif EXTRA_PROGRAMS = \