]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output-lua: display warning if no lua support
authorVictor Julien <victor@inliniac.net>
Wed, 19 Feb 2014 11:50:57 +0000 (12:50 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 15 Aug 2014 11:58:24 +0000 (13:58 +0200)
Display a warning that the lua module is not available if we're
not compiled against lua(jit).

src/runmodes.c

index 03f28d7c37eab47c67cbb32c08d969cbb24615d0..2546384a9cb898038b6018eb5894932224793cc5 100644 (file)
@@ -674,6 +674,14 @@ void RunModeInitializeOutputs(void)
                     "recompile with libjansson and its development "
                     "files installed to add eve-log support.");
             continue;
+#endif
+        } else if (strcmp(output->val, "lua") == 0) {
+#ifndef HAVE_LUA
+            SCLogWarning(SC_ERR_NOT_SUPPORTED,
+                    "lua support not compiled in. Reconfigure/"
+                    "recompile with lua(jit) and its development "
+                    "files installed to add lua support.");
+            continue;
 #endif
         }