From b2170461c63561efff2fc3736c51856468f56d87 Mon Sep 17 00:00:00 2001 From: tobigun Date: Wed, 30 Dec 2009 19:19:49 +0000 Subject: The official name of the pkgconfig file is lua.pc (e.g. used in Mac OS X) and was renamed for Ubuntu to lua5.1.pc. Check for lua.pc and lua5.1. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2059 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Lua/configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Lua/configure.ac') diff --git a/Lua/configure.ac b/Lua/configure.ac index 02d57a2a..898af362 100644 --- a/Lua/configure.ac +++ b/Lua/configure.ac @@ -167,7 +167,12 @@ PKG_HAVE([freetype], [freetype2], yes) PKG_HAVE([sqlite3], [sqlite3], yes) # find lua 5.1 -PKG_HAVE([lua], [lua5.1], yes) +# (K)Ubuntu uses lua5.1.pc, Mac OS X and other +# linux distributions use lua.pc +PKG_HAVE([lua], [lua5.1], no) +if [[ x$lua_HAVE = xno ]]; then + PKG_HAVE([lua], [lua >= 5.1], yes) +fi # find FFMpeg # Note: do not use the min/max version parameters with ffmpeg -- cgit v1.2.3