]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
autotools: pthread deps is needed on ubuntu.
authorEric Leblond <eric@regit.org>
Thu, 5 Jul 2012 08:53:44 +0000 (10:53 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 5 Jul 2012 10:34:08 +0000 (12:34 +0200)
It is weird but adding pthread in needed on ubuntu 1204.

configure.in

index 406a8a53d5b723d98d23198aec5240f4d0320ecc..02f3ce6e5fadd0f65c806a5f49daca7109321ae8 100644 (file)
@@ -802,7 +802,7 @@ AC_INIT(configure.in)
     fi
 
     LIBPCAP=""
-    AC_CHECK_LIB(pcap, pcap_open_live,, LIBPCAP="no")
+    AC_CHECK_LIB(pcap, pcap_open_live,, LIBPCAP="no", [-lpthread])
     if test "$LIBPCAP" = "no"; then
         echo
         echo "   ERROR!  libpcap library not found, go get it"