[sr-dev] git:master:5ce96902: presence: Makefile - try to use pkg-config if xml2-config is not found

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 12 21:31:14 CET 2020


Module: kamailio
Branch: master
Commit: 5ce9690245e0a075742c7cb8eac1786622c976f4
URL: https://github.com/kamailio/kamailio/commit/5ce9690245e0a075742c7cb8eac1786622c976f4

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-02-12T21:29:25+01:00

presence: Makefile - try to use pkg-config if xml2-config is not found

---

Modified: src/modules/presence/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/5ce9690245e0a075742c7cb8eac1786622c976f4.diff
Patch: https://github.com/kamailio/kamailio/commit/5ce9690245e0a075742c7cb8eac1786622c976f4.patch

---

diff --git a/src/modules/presence/Makefile b/src/modules/presence/Makefile
index bf5586a32f..3cc6ae6c19 100644
--- a/src/modules/presence/Makefile
+++ b/src/modules/presence/Makefile
@@ -7,6 +7,12 @@ NAME=presence.so
 
 ifeq ($(CROSS_COMPILE),)
 XML2CFG=$(shell which xml2-config)
+ifeq ($(XML2CFG),)
+XML2CFG=$(shell \
+	if pkg-config --exists libxml-2.0; then \
+		echo 'pkg-config libxml-2.0'; \
+	fi)
+endif
 ifeq ($(OS), darwin)
 ICU_BUILDER = $(shell \
 	if pkg-config --exists icu-uc; then \




More information about the sr-dev mailing list