From 9858ae41bed1cbd62a65657b441e233752159595 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 17 Feb 2016 10:25:02 +0100 Subject: [PATCH] configure: OS X fixes Remove unnecessary -lpthread from tests. Make linker warnings non-fatal with -Werror. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 662342245f..118486fa2e 100644 --- a/configure.ac +++ b/configure.ac @@ -57,7 +57,7 @@ case "$compiler" in clang) - CLANG_CFLAGS="-Wextra -Werror-implicit-function-declaration" + CLANG_CFLAGS="-Wextra -Werror-implicit-function-declaration -Wno-error=unused-command-line-argument" AC_MSG_CHECKING([clang __sync_bool_compare_and_swap support]) AC_TRY_COMPILE([#include ], [ unsigned int i = 0; (void)__sync_bool_compare_and_swap(&i, 1, 1);], @@ -470,7 +470,7 @@ LDFLAGS="${LDFLAGS} -L${with_libpcre_libraries}" fi PCRE="" - AC_CHECK_LIB(pcre, pcre_get_substring,, PCRE="no",-lpthread) + AC_CHECK_LIB(pcre, pcre_get_substring,, PCRE="no") if test "$PCRE" = "no"; then echo echo " ERROR! pcre library not found, go get it" @@ -997,7 +997,7 @@ AC_CHECK_HEADERS([pcap.h pcap/pcap.h pcap/bpf.h]) LIBPCAP="" - AC_CHECK_LIB(pcap, pcap_open_live,, LIBPCAP="no", [-lpthread]) + AC_CHECK_LIB(pcap, pcap_open_live,, LIBPCAP="no") if test "$LIBPCAP" = "no"; then echo echo " ERROR! libpcap library not found, go get it" -- 2.47.2