Assume that any user-provided liblua is recent enough when cross-compiling.

That this was a problem was reported by Nuno Gonçalves.
This commit is contained in:
david 2010-09-29 16:09:26 +00:00
parent 3032368934
commit 82ec5be065
2 changed files with 3 additions and 5 deletions

6
configure vendored
View file

@ -6695,10 +6695,8 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
$as_echo_n "checking for lua version >= 501... " >&6; }
if test "$cross_compiling" = yes; then :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run test program while cross compiling
See \`config.log' for more details." "$LINENO" 5; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling -- assuming yes" >&5
$as_echo "cross-compiling -- assuming yes" >&6; }; have_lua=yes
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

View file

@ -603,7 +603,7 @@ else
AC_RUN_IFELSE([ AC_LANG_PROGRAM(
[[#include <lua.h>]],
[[if(LUA_VERSION_NUM < 501) return 1;]])],
have_lua=yes, have_lua=no)
have_lua=yes, have_lua=no, AC_MSG_RESULT(cross-compiling -- assuming yes); have_lua=yes)
AC_LANG_POP(C++)
LUA_DEPENDS=""