From ed5fcf5f1357fc42749408f705e9ec55531ff006 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Wed, 3 Mar 2010 17:21:59 -0700 Subject: [PATCH] arch linux prefers pkgconfig for finding lua --- configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 2f2bc1d..fa99616 100644 --- a/configure.ac +++ b/configure.ac @@ -264,12 +264,12 @@ AC_SEARCH_LIBS([alEnable], [openal OpenAL32],, ##### liblua ##### website="http://www.lua.org/" -AC_CHECK_HEADERS([lua.h],, - [missing=yes - echo "***** Missing lua headers ($website) *****"]) -AC_SEARCH_LIBS([lua_load], [lua],, - [missing=yes - echo "***** Missing liblua ($website) *****"]) +PKG_CHECK_MODULES([LUA], [lua], + [LIBS="$LIBS $LUA_LIBS" + CFLAGS="$CFLAGS $LUA_CFLAGS" + CXXFLAGS="$CXXFLAGS $LUA_CFLAGS"], + [missing=yes + echo "***** Missing liblua ($website) *****"]) ##### libpng ##### website="http://www.libpng.org/pub/png/libpng.html" -- 2.45.2