From: Ruben Kerkhof Date: Wed, 28 Jan 2015 09:22:41 +0000 (+0100) Subject: Build kqueue mplexer into recursor on FreeBSD X-Git-Tag: rec-3.7.0-rc2~18^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69f79f967672dc80291fc0680efbb1f6695b7f44;p=thirdparty%2Fpdns.git Build kqueue mplexer into recursor on FreeBSD --- diff --git a/configure.ac b/configure.ac index 4b2314aaa3..73f2c59e55 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 3c893ef397..76ff42f832 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