From 89d4c9faeb6d261e1441f7ce5bfbfabb0c295380 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Fri, 17 May 2013 00:19:44 +0400 Subject: [PATCH] Fix compilation on OpenBSD That OS doesn't support AI_ADDRCONFIG, but in that case we defined HAVE_PTHREAD, but didn't add needed params to compiler Thanks to fred for shell access for tests --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 2cbc3564..349d32a6 100644 --- a/configure.ac +++ b/configure.ac @@ -225,6 +225,8 @@ if test "x$TDNS" != "xno"; then old_TDNS=$TDNS AX_PTHREAD([ AC_DEFINE([HAVE_PTHREAD], [1], [Define if you have POSIX threads libraries and header files.]) + appendCXX "$PTHREAD_CFLAGS" + appendLib "$PTHREAD_LIBS" AC_MSG_CHECKING([whether getaddrinfo() supports AI_ADDRCONFIG]) AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ @@ -250,8 +252,6 @@ if test "x$TDNS" != "xno"; then if test "x$TDNS" = "xyes"; then DNS_TEXT=threads AC_DEFINE([HAVE_THREADED_DNS], [1], [Define if threaded DNS is enabled]) - appendCXX "$PTHREAD_CFLAGS" - appendLib "$PTHREAD_LIBS" else ZNC_AUTO_FAIL([TDNS], [support for threaded DNS not found. Try --disable-tdns.