From: Jason Ish Date: Wed, 10 Jul 2024 21:41:41 +0000 (-0600) Subject: configure: fail on --enable-pfring and --disable-shared X-Git-Tag: suricata-8.0.0-beta1~1018 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d0e09c6b2ca850a394a160d5b6121180d0da934;p=thirdparty%2Fsuricata.git configure: fail on --enable-pfring and --disable-shared 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. --- diff --git a/configure.ac b/configure.ac index fbd9392623..433ed54590 100644 --- a/configure.ac +++ b/configure.ac @@ -1266,6 +1266,13 @@ 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