1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-20 03:51:18 +00:00

Fix Lua extra compiler includes.

This commit is contained in:
Brenden Matthews 2009-07-30 22:21:09 -06:00
parent 985a72b444
commit 46effdcbc4
2 changed files with 8 additions and 3 deletions

View File

@ -486,11 +486,16 @@ if test x$want_lua = xyes; then
else
AC_SEARCH_LIBS(tolua_error,
[tolua++ tolua++5.1],
AC_SUBST(tolua_LIBS,"${LIBS}"),
[
AC_SUBST(tolua_LIBS, "${LIBS}")
AC_SUBST(tolua_CFLAGS, "${CFLAGS}")
],
AC_MSG_ERROR([tolua_error not found]),
$LUA51_LIBS)
fi
conky_LIBS="$conky_LIBS $tolua_LIBS"
tolua_CFLAGS="$tolua_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
tolua_LIBS="$tolua_LIBS $LUA_LIBS $LUA51_LIBS"
fi
AC_DEFINE(HAVE_LUA, 1, [Define if you want Lua scripting support])
fi

View File

@ -36,7 +36,7 @@ if BUILD_LUA_CAIRO
libcairo = libcairo.la
libcairo_la_CFLAGS = $(cairo_CFLAGS) $(cairo_xlib_CFLAGS) -I$(prefix)/include/lua5.1
libcairo_la_CFLAGS = $(cairo_CFLAGS) $(cairo_xlib_CFLAGS) $(tolua_CFLAGS)
libcairo_la_LIBADD = $(cairo_LIBS) $(cairo_xlib_LIBS) $(tolua_LIBS)
libcairo.c: cairo.pkg
@ -48,7 +48,7 @@ if BUILD_LUA_IMLIB2
libimlib2 = libimlib2.la
libimlib2_la_CFLAGS = $(Imlib2_CFLAGS) -I$(prefix)/include/lua5.1
libimlib2_la_CFLAGS = $(Imlib2_CFLAGS) $(tolua_LIBS)
libimlib2_la_LIBADD = $(Imlib2_LIBS) $(tolua_LIBS)
libimlib2.c: imlib2.pkg