From 69f79f967672dc80291fc0680efbb1f6695b7f44 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 28 Jan 2015 10:22:41 +0100 Subject: [PATCH] Build kqueue mplexer into recursor on FreeBSD --- configure.ac | 6 ++++++ pdns/Makefile.am | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index 4b2314aaa..73f2c59e5 100644 --- a/configure.ac +++ b/configure.ac @@ -154,12 +154,18 @@ linux*) darwin*) CXXFLAGS="-D__APPLE_USE_RFC_3542 -D_XOPEN_SOURCE $CXXFLAGS" ;; +freebsd*) + LDFLAGS="-pthread $LDFLAGS" + CXXFLAGS="-pthread $CXXFLAGS" + have_freebsd="yes" + ;; *) LDFLAGS="-pthread $LDFLAGS" CXXFLAGS="-pthread $CXXFLAGS" ;; esac +AM_CONDITIONAL([HAVE_FREEBSD], [test "x$have_freebsd" = "xyes"]) AM_CONDITIONAL([HAVE_LINUX], [test "x$have_linux" = "xyes"]) AC_SUBST(THREADFLAGS) diff --git a/pdns/Makefile.am b/pdns/Makefile.am index 3c893ef39..76ff42f83 100644 --- a/pdns/Makefile.am +++ b/pdns/Makefile.am @@ -979,6 +979,10 @@ if LUA pdns_recursor_LDADD += $(LUA_LIBS) endif +if HAVE_FREEBSD +pdns_recursor_SOURCES += kqueuemplexer.cc +endif + if HAVE_LINUX pdns_recursor_SOURCES += epollmplexer.cc endif -- 2.40.0