Fix failure to detect lua.h on some systems
Fixes "present but cannot be compiled" autoconf failure looking for lua.h
This commit is contained in:
parent
db54a8d5d1
commit
eaf74df22f
1 changed files with 4 additions and 1 deletions
|
|
@ -2347,7 +2347,10 @@ if test "$LUABIN"; then
|
||||||
AC_CHECK_FILE($LUAINCLUDE/lua.h,[LUAFLAGS="$ISYSTEM$LUAINCLUDE"],[LUABIN=])
|
AC_CHECK_FILE($LUAINCLUDE/lua.h,[LUAFLAGS="$ISYSTEM$LUAINCLUDE"],[LUABIN=])
|
||||||
else
|
else
|
||||||
LUA_OK="1"
|
LUA_OK="1"
|
||||||
AC_CHECK_HEADER(lua.h,[LUAFLAGS=""],[LUA_OK=""])
|
CFLAGS_SAVED=$CFLAGS
|
||||||
|
CFLAGS= # Use empty CFLAGS to avoid failure: "present but cannot be compiled"
|
||||||
|
AC_CHECK_HEADER([lua.h],[LUAFLAGS=""],[LUA_OK=""])
|
||||||
|
CFLAGS=$CFLAGS_SAVED
|
||||||
# if we didn't get it, going to have to look elsewhere (the hard way)
|
# if we didn't get it, going to have to look elsewhere (the hard way)
|
||||||
if test -z "$LUA_OK"; then
|
if test -z "$LUA_OK"; then
|
||||||
AC_MSG_CHECKING(for lua.h in other locations)
|
AC_MSG_CHECKING(for lua.h in other locations)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue