]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add ifdef HAVE_CONFIG_H 3554/head
authorAndrew Nelless <andrew@nelless.net>
Fri, 11 Mar 2016 16:26:38 +0000 (16:26 +0000)
committerAndrew Nelless <andrew@nelless.net>
Fri, 11 Mar 2016 16:26:38 +0000 (16:26 +0000)
pdns/mtasker_context.cc
pdns/recursordist/configure.ac

index e1e2553033c6d4d904b9726b7f619a4c42fb4d7e..59cfeef5c23212a332507f48a5f0d2a95ec29a0d 100644 (file)
@@ -1,4 +1,6 @@
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #if defined(HAVE_BOOST_CONTEXT)
 #include "mtasker_fcontext.cc"
index c606064cb79b1694c1877b5791cbf751ed6feab5..8e4346fef5660d9b8826d904b1ff18bb9021f614 100644 (file)
@@ -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])