From: Andrew Nelless Date: Fri, 11 Mar 2016 16:26:38 +0000 (+0000) Subject: Add ifdef HAVE_CONFIG_H X-Git-Tag: dnsdist-1.0.0-beta1~113^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3554%2Fhead;p=thirdparty%2Fpdns.git Add ifdef HAVE_CONFIG_H --- diff --git a/pdns/mtasker_context.cc b/pdns/mtasker_context.cc index e1e2553033..59cfeef5c2 100644 --- a/pdns/mtasker_context.cc +++ b/pdns/mtasker_context.cc @@ -1,4 +1,6 @@ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #if defined(HAVE_BOOST_CONTEXT) #include "mtasker_fcontext.cc" diff --git a/pdns/recursordist/configure.ac b/pdns/recursordist/configure.ac index c606064cb7..8e4346fef5 100644 --- a/pdns/recursordist/configure.ac +++ b/pdns/recursordist/configure.ac @@ -47,7 +47,7 @@ AC_DEFUN([PDNS_SELECT_CONTEXT_IMPL], [ LDFLAGS="$LDFLAGS $BOOST_THREAD_LDFLAGS" fi AC_MSG_NOTICE([checking whether the Boost context library actually links...]) - BOOST_FIND_LIB([context], [], [boost/context/fcontext.hpp], [[]]) + BOOST_FIND_LIB([context], [$1], [boost/context/fcontext.hpp], [[]]) case $boost_cv_lib_context in (yes) AC_MSG_NOTICE([MTasker will use the Boost context library for context switching])