diff options
author | Florian Diebold <flodiebold@gmail.com> | 2014-04-19 12:43:09 +0200 |
---|---|---|
committer | Florian Diebold <flodiebold@gmail.com> | 2014-04-26 12:23:37 +0200 |
commit | c0ec6cfa46fdd39af0bfdbff64104ea1c5f86f8b (patch) | |
tree | 841ac8350f43f06b140f432248f12985fff0fd17 /crawl-ref/source/Makefile | |
parent | 4f3d0c6879f2baefcf3eb2749133ae3340dcbdca (diff) | |
download | crawl-ref-c0ec6cfa46fdd39af0bfdbff64104ea1c5f86f8b.tar.gz crawl-ref-c0ec6cfa46fdd39af0bfdbff64104ea1c5f86f8b.zip |
Make compilation work on Fedora 20 with the distribution lua.
In Fedora 20, lua 5.1 is in the compat-lua package and is called
lua-5.1 in pkg-config.
Diffstat (limited to 'crawl-ref/source/Makefile')
-rw-r--r-- | crawl-ref/source/Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile index 687be0e6f1..e7db9b0e47 100644 --- a/crawl-ref/source/Makefile +++ b/crawl-ref/source/Makefile @@ -586,14 +586,18 @@ ifndef BUILD_LUA endif else ifneq ($(shell $(PKGCONFIG) lua5.1 --exists || echo no),) - ifneq ($(shell $(PKGCONFIG) lua --exists || echo no),) - BUILD_LUA = yes - else - ifeq ($(shell $(PKGCONFIG) lua --modversion | head -c 3),5.1) - LUA_PACKAGE = lua - else + ifneq ($(shell $(PKGCONFIG) lua-5.1 --exists || echo no),) + ifneq ($(shell $(PKGCONFIG) lua --exists || echo no),) BUILD_LUA = yes + else + ifeq ($(shell $(PKGCONFIG) lua --modversion | head -c 3),5.1) + LUA_PACKAGE = lua + else + BUILD_LUA = yes + endif endif + else + LUA_PACKAGE = lua-5.1 endif else LUA_PACKAGE = lua5.1 |