aboutsummaryrefslogtreecommitdiffstats
path: root/Lua/configure.ac
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-30 19:19:49 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-30 19:19:49 +0000
commitb2170461c63561efff2fc3736c51856468f56d87 (patch)
tree91b868be0dbf9417795fe95ab2900158ee2461df /Lua/configure.ac
parent9864365f5c84efdcf8cb3d825737662089d2c492 (diff)
downloadusdx-b2170461c63561efff2fc3736c51856468f56d87.tar.gz
usdx-b2170461c63561efff2fc3736c51856468f56d87.tar.xz
usdx-b2170461c63561efff2fc3736c51856468f56d87.zip
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
Diffstat (limited to 'Lua/configure.ac')
-rw-r--r--Lua/configure.ac7
1 files changed, 6 insertions, 1 deletions
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