Attempt to detect if Lua is configured for dynamic library loading. Not quite working yet though.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ef0eb857fd
commit
be0ceeaeb5
1 changed files with 14 additions and 1 deletions
15
configure.in
15
configure.in
|
|
@ -1503,6 +1503,7 @@ AC_SUBST(CSHARPSO)
|
||||||
LUABIN=
|
LUABIN=
|
||||||
LUAINCLUDE=
|
LUAINCLUDE=
|
||||||
LUALIB=
|
LUALIB=
|
||||||
|
LUADYNAMICLOADLIB=
|
||||||
|
|
||||||
AC_ARG_WITH(lua, AS_HELP_STRING([--without-lua], [Disable Lua])
|
AC_ARG_WITH(lua, AS_HELP_STRING([--without-lua], [Disable Lua])
|
||||||
AS_HELP_STRING([--with-lua=path], [Set location of Lua executable]),[ LUABIN="$withval"], [LUABIN=])
|
AS_HELP_STRING([--with-lua=path], [Set location of Lua executable]),[ LUABIN="$withval"], [LUABIN=])
|
||||||
|
|
@ -1521,6 +1522,18 @@ if test -z "$LUABIN"; then
|
||||||
AC_PATH_PROG(LUABIN, lua)
|
AC_PATH_PROG(LUABIN, lua)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$LUABIN"; then
|
||||||
|
AC_MSG_CHECKING(whether Lua dynamic loading is enabled)
|
||||||
|
# check if dynamic library loading is configured
|
||||||
|
# detection is not currently working currently
|
||||||
|
LUADYNAMICLOADLIB=`($LUABIN -e 'assert(loadlib) print ("1")') 2>/dev/null`
|
||||||
|
if test -z "$LUADYNAMICLOADLIB"; then
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# look for the header files
|
# look for the header files
|
||||||
AC_MSG_CHECKING(for Lua header files)
|
AC_MSG_CHECKING(for Lua header files)
|
||||||
if test -z "$LUAINCLUDE"; then
|
if test -z "$LUAINCLUDE"; then
|
||||||
|
|
@ -1679,7 +1692,7 @@ AC_SUBST(SKIP_MODULA3)
|
||||||
|
|
||||||
SKIP_LUA=
|
SKIP_LUA=
|
||||||
# do we really need the LUABIN?
|
# do we really need the LUABIN?
|
||||||
if test -z "$LUABIN" || test -z "$LUAINCLUDE" || test -z "$LUALIB" ; then
|
if test -z "$LUABIN" || test -z "$LUAINCLUDE" || test -z "$LUALIB" || test -z "$LUADYNAMICLOADLIB"; then
|
||||||
SKIP_LUA="1"
|
SKIP_LUA="1"
|
||||||
fi
|
fi
|
||||||
AC_SUBST(SKIP_LUA)
|
AC_SUBST(SKIP_LUA)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue