]> granicus.if.org Git - pdns/commitdiff
Build calidns only if we have detected recvmmsg
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 11 May 2015 17:20:32 +0000 (19:20 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 11 May 2015 17:20:32 +0000 (19:20 +0200)
Fixes #2498
Obsoletes #2509

configure.ac
pdns/Makefile.am

index 807b64e4a374a1a5a24f78bf90a0dce74e74834f..0b2079782808b0fb896be1a3fdd43bcb6e520b3e 100644 (file)
@@ -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])]
index ebb22a8d9170bd395a1e188b19b632be35fb7adc..84ec5431892276728728d44685c34b030e70eba1 100644 (file)
@@ -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 = \