]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
netmap: allow specifying a library directory 6707/head
authorJeff Lucovsky <jeff@lucovsky.org>
Sat, 11 Dec 2021 13:45:57 +0000 (08:45 -0500)
committerVictor Julien <vjulien@oisf.net>
Mon, 13 Dec 2021 17:49:11 +0000 (18:49 +0100)
Ticket: #4482

configure.ac

index d37fa6c5a822b5a8a06200d629526ab3e384685a..e6e036d8b783c18ac7514febbec78e9a9687a10f 100644 (file)
     AC_ARG_WITH(netmap_includes,
             [  --with-netmap-includes=DIR netmap include directory],
             [with_netmap_includes="$withval"],[with_netmap_includes=no])
+    AC_ARG_WITH(netmap_libraries,
+            [  --with-netmap-libraries=DIR netmap library directory],
+            [with_netmap_libraries="$withval"],[with_netmap_libraries=no])
 
     AS_IF([test "x$enable_netmap" = "xyes"], [
         AC_DEFINE([HAVE_NETMAP],[1],(NETMAP support enabled))
             CPPFLAGS="${CPPFLAGS} -I${with_netmap_includes}"
         fi
 
+        if test "$with_netmap_libraries" != "no"; then
+            LDFLAGS="${LDFLAGS} -L${with_netmap_libraries}"
+        fi
+
         AC_CHECK_HEADER(net/netmap_user.h,,[AC_MSG_ERROR(net/netmap_user.h not found ...)],)
 
         have_recent_netmap="no"