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