From 6228f5f689d8016784b46cb400a368529de5b3bf Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 17 Feb 2016 14:27:10 +0100 Subject: [PATCH] lua: if pkg-config fails, try -llua --- configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 118486fa2e..087fef32f1 100644 --- a/configure.ac +++ b/configure.ac @@ -1600,8 +1600,14 @@ LDFLAGS="${LDFLAGS} ${LUA_LIBS}" fi - AC_DEFINE([HAVE_LUA],[1],[liblua available]) - enable_lua="yes" + if test "$LUA" = "no"; then + AC_CHECK_LIB(lua, luaL_openlibs,, LUA="no") + fi + + if test "$LUA" = "yes"; then + AC_DEFINE([HAVE_LUA],[1],[liblua available]) + enable_lua="yes" + fi else echo echo " ERROR! liblua headers not found, go get them"