]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: OS X fixes
authorVictor Julien <victor@inliniac.net>
Wed, 17 Feb 2016 09:25:02 +0000 (10:25 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 23 Feb 2016 13:57:46 +0000 (14:57 +0100)
Remove unnecessary -lpthread from tests.

Make linker warnings non-fatal with -Werror.

configure.ac

index 662342245f66df7a33d4ca8a6849c3db28864f9f..118486fa2e2540778116817962294afbda7cf9ef 100644 (file)
@@ -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 <stdio.h>],
                 [ unsigned int i = 0; (void)__sync_bool_compare_and_swap(&i, 1, 1);],
         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"
     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"