]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: fail on --enable-pfring and --disable-shared
authorJason Ish <jason.ish@oisf.net>
Wed, 10 Jul 2024 21:41:41 +0000 (15:41 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 15 Jul 2024 12:25:34 +0000 (14:25 +0200)
Plugins can't be build using the standard autoconf/automake
methods. We can get around this by creating our own Makefiles, but
they're often less portable.

For now, fail during ./configure instead of during compile.

configure.ac

index fbd939262354ccf1e57e5d0fbe172510275eb331..433ed5459004a4812446672405b9fa958d33dde1 100644 (file)
     AC_ARG_ENABLE(pfring,
            AS_HELP_STRING([--enable-pfring], [Enable Native PF_RING support]),[enable_pfring=$enableval],[enable_pfring=no])
     AS_IF([test "x$enable_pfring" = "xyes"], [
+        if test "x$enable_shared" = "xno"; then
+            echo
+            echo "   ERROR! pfring cannot be enabled with --disable-shared"
+            echo
+            exit 1
+        fi
+
         AC_DEFINE([HAVE_PFRING],[1],(PF_RING support enabled))
 
         #We have to set CFLAGS for AC_COMPILE_IFELSE as it doesn't pay attention to CPPFLAGS