void-packages/srcpkgs/xmoto/patches/fix-configure_lua52.patch
2015-10-02 11:46:52 +02:00

32 lines
874 B
Diff

--- configure 2015-10-02 11:37:59.277559809 +0200
+++ configure 2015-10-02 11:41:32.042543210 +0200
@@ -7637,7 +7637,7 @@
return 0;
}
_ACEOF
-for ac_lib in '' lua lua5.1 lua50; do
+for ac_lib in '' lua lua5.2 lua5.1 lua50; do
if test -z "$ac_lib"; then
ac_res="none required"
else
@@ -7767,6 +7767,20 @@
fi
+ac_fn_c_check_header_mongrel "$LINENO" "lua52/lua.h" "ac_cv_header_lua52_lua_h" "$ac_includes_default"
+if test "x$ac_cv_header_lua52_lua_h" = xyes; then :
+ $as_echo "#define HAVE_LUA52_LUA_H 1" >>confdefs.h
+ USE_LUA_VERSION="5.2"
+fi
+
+
+ac_fn_c_check_header_mongrel "$LINENO" "lua5.2/lua.h" "ac_cv_header_lua5_2_lua_h" "$ac_includes_default"
+if test "x$ac_cv_header_lua5_2_lua_h" = xyes; then :
+ $as_echo "#define HAVE_LUA5_2_LUA_H 1" >>confdefs.h
+USE_LUA_VERSION="5.2"
+fi
+
+
$as_echo "#define LUA_COMPAT_MODULE 1" >>confdefs.h