LUA_INCLUDE belongs to CPPFLAGS, not CFLAGS

This commit is contained in:
Dmitrij D. Czarkoff 2014-02-27 00:52:30 +01:00
parent b64159aff7
commit f3fb958ce4
2 changed files with 4 additions and 4 deletions

4
configure vendored
View File

@ -4755,7 +4755,7 @@ else
fi
EXTRA_LIBS="${EXTRA_LIBS} ${LUA_LIB}" ;
CFLAGS="${CFLAGS} ${LUA_INCLUDE}" ;
CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}" ;
$as_echo "#define USE_LUA 1" >>confdefs.h
@ -5424,7 +5424,7 @@ else
fi
EXTRA_LIBS="${EXTRA_LIBS} ${LUA_LIB}" ;
CFLAGS="${CFLAGS} ${LUA_INCLUDE}" ;
CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}" ;
$as_echo "#define USE_LUA 1" >>confdefs.h

View File

@ -55,7 +55,7 @@ AC_ARG_ENABLE(liblua,[--enable-liblua/--disable-liblua],
AX_LUA_HEADERS([],[AC_MSG_ERROR([No lua headers found. Try --disable-liblua])])
AX_LUA_LIBS([],[AC_MSG_ERROR([No lua libs found. Try --disable-liblua])])
[EXTRA_LIBS="${EXTRA_LIBS} ${LUA_LIB}" ; ]
[CFLAGS="${CFLAGS} ${LUA_INCLUDE}" ; ]
[CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}" ; ]
AC_DEFINE(USE_LUA,1,[use lua])
],
[
@ -69,7 +69,7 @@ AC_ARG_ENABLE(liblua,[--enable-liblua/--disable-liblua],
AX_LUA_HEADERS([],[AC_MSG_ERROR([No lua headers found. Try --disable-liblua])])
AX_LUA_LIBS([],[AC_MSG_ERROR([No lua libs found. Try --disable-liblua])])
[EXTRA_LIBS="${EXTRA_LIBS} ${LUA_LIB}" ; ]
[CFLAGS="${CFLAGS} ${LUA_INCLUDE}" ; ]
[CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}" ; ]
AC_DEFINE(USE_LUA,1,[use lua])
],
[