Skip to content

Commit

Permalink
add explicit lua5.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mslacken committed Nov 29, 2019
1 parent 17b3773 commit 25f510d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config/ac_lua_extensions.m4
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ AC_DEFUN([AC_LUA_EXTENSIONS],
;;
esac ]
)
AC_MSG_RESULT(${ac_with_lua_extensions=yes})
AC_MSG_RESULT(${ac_with_lua_extensions=no})
])
21 changes: 12 additions & 9 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -208,20 +208,23 @@ AM_CONDITIONAL(WITH_CPLUSPLUS_EXTENSIONS, [test "$ac_with_cplusplus_extensions"
AC_JAVA_EXTENSIONS
AM_CONDITIONAL(WITH_JAVA_EXTENSIONS, [test "$ac_with_java_extensions" = "yes"])


#
# Check for lua, which means create commanline conditional
#
AC_LUA_EXTENSIONS
AM_CONDITIONAL(WITH_LUA_EXTENSIONS, [test "$ac_with_lua_extensions" = "yes"])
#
# expand lua
#
AX_PROG_LUA
if test "x$ac_with_lua_extensions" = "xyes" ; then
# beware, the ACTION-IF-NOT-FOUND is not working
AX_PROG_LUA([5.3],,,:)
# The test of headers fail, if LUA_VERSION is empty
if test LUA_VERSION ; then
AX_LUA_HEADERS
AX_LUA_LIBS

#
# Check for lua
#

AC_LUA_EXTENSIONS
AM_CONDITIONAL(WITH_LUA_EXTENSIONS, [test "$ac_with_lua_extensions" = "yes"])
fi
fi

##
# Checks for typedefs, structures, and compiler characteristics.
Expand Down

0 comments on commit 25f510d

Please sign in to comment.