diff --git a/configure.ac b/configure.ac index 718dc6aeba..f51d7b2b52 100644 --- a/configure.ac +++ b/configure.ac @@ -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=""