]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
config/lua: Cross-compiling support
authorJeff Lucovsky <jeff@lucovsky.org>
Sat, 29 Aug 2020 14:59:49 +0000 (10:59 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 3 Sep 2020 10:55:05 +0000 (12:55 +0200)
This commit guards the run-time check for a Lua integer so that it no
longer attempts execution in a cross-compilation environment.

configure.ac

index 718dc6aeba9c55c4dfc813ccb0f9e40ce873ed2c..f51d7b2b52b5b5d2ac830082cb9fb00297e108b3 100644 (file)
@@ -2261,7 +2261,7 @@ return 0;
     AM_CONDITIONAL([HAVE_LUA], [test "x$enable_lua" != "xno"])
 
     # If Lua is enabled, test the integer size.
-    if test "x$enable_lua" = "xyes"; then
+    if test "x$enable_lua" = "xyes" -a "$cross_compiling" != "yes"; then
         TMPLIBS="$LIBS"
         LIBS=""