mirror of https://github.com/odrling/Aegisub
In r1876 the compiler flags were pushed up from the AC_CHECK* commands.
However they wern't removed from the CPP/LDFLAG settings so we ended up with -I-I and -L-L. Originally committed to SVN as r1882.
This commit is contained in:
parent
eee84bced9
commit
a55e392fc2
|
@ -285,12 +285,12 @@ AC_ARG_WITH(lua-include,
|
|||
if test "$with_lua" != no; then
|
||||
aegisub_save_LDFLAGS="$LDFLAGS"
|
||||
|
||||
LDFLAGS="$LDFLAGS -L$lua_lib_dir"
|
||||
LDFLAGS="$LDFLAGS $lua_lib_dir"
|
||||
AC_CHECK_LIB([lua], [lua_call], LUA_LDFLAGS="$lua_lib_dir -llua", with_lua_lib="no")
|
||||
LDFLAGS="$aegisub_save_LDFLAGS"
|
||||
|
||||
aegisub_save_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS -I$lua_include_dir"
|
||||
CPPFLAGS="$CPPFLAGS $lua_include_dir"
|
||||
AC_CHECK_HEADER([lua.h],[LUA_CPPFLAGS="$lua_include_dir"], with_lua_include="no")
|
||||
CPPFLAGS="$aegisub_save_CPPFLAGS"
|
||||
|
||||
|
|
Loading…
Reference in New Issue