From: Eric Leblond Date: Wed, 11 Dec 2013 09:25:39 +0000 (+0000) Subject: pfring: workaround potential librt deps X-Git-Tag: suricata-2.0beta2~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a75911e02fdb3295d1545b30eef178d057fb2ab8;p=thirdparty%2Fsuricata.git pfring: workaround potential librt deps It seems some version of pfring needs to be link with librt. --- diff --git a/configure.ac b/configure.ac index 3556641573..0b29eeb277 100644 --- a/configure.ac +++ b/configure.ac @@ -876,12 +876,18 @@ LIBPFRING="" AC_CHECK_LIB(pfring, pfring_open,, LIBPFRING="no", [-lpcap]) if test "$LIBPFRING" = "no"; then - if test "x$enable_pfring" = "xyes"; then - echo - echo " ERROR! --enable-pfring was passed but the library was not found or version is >4, go get it" - echo " from http://www.ntop.org/PF_RING.html" - echo - exit 1 + LIBPFRING="" + AC_CHECK_LIB(pfring, pfring_stats,, LIBPFRING="no", [-lpcap -lrt]) + if test "$LIBPFRING" = "no"; then + if test "x$enable_pfring" = "xyes"; then + echo + echo " ERROR! --enable-pfring was passed but the library was not found or version is >4, go get it" + echo " from http://www.ntop.org/PF_RING.html" + echo + exit 1 + fi + else + LIBS="${LIBS} -lrt" fi fi