Module: sip-router
Branch: master
Commit: 2489d57d6a6ba632d04da04271a0a2825aa7cbd7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2489d57…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Oct 5 23:38:20 2010 +0200
app_lua: fix finding lua libs
- if pkg-config fails to find lua libs, use default values
(cherry picked from commit 6e65634bb10568767700d999437ee5194765d6e8)
---
modules/app_lua/Makefile | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/modules/app_lua/Makefile b/modules/app_lua/Makefile
index 74e0460..89fc8d6 100644
--- a/modules/app_lua/Makefile
+++ b/modules/app_lua/Makefile
@@ -16,8 +16,14 @@ ifeq ($(BUILDER),)
DEFS+=-I/usr/include/lua5.1
LIBS= -llua5.1
else
- DEFS+ = $(shell pkg-config --cflags lua)
- LIBS = $(shell pkg-config --libs lua)
+ LUALIBS = $(shell pkg-config --silence-errors --libs lua)
+ ifeq ($(LUALIBS),)
+ DEFS+=-I/usr/include/lua5.1
+ LIBS= -llua5.1
+ else
+ DEFS+ = $(shell pkg-config --cflags lua)
+ LIBS = $(shell pkg-config --libs lua)
+ endif
endif
else
DEFS+ = $(shell lua-config --include)