[sr-dev] git:master:517283c2: presence_dialoginfo: Makefile - try to use pkg-config if xml2-config is not found

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


Module: kamailio
Branch: master
Commit: 517283c245be8c35d3c6ee9721fa1e85865b4638
URL: https://github.com/kamailio/kamailio/commit/517283c245be8c35d3c6ee9721fa1e85865b4638

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

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

---

Modified: src/modules/presence_dialoginfo/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/517283c245be8c35d3c6ee9721fa1e85865b4638.diff
Patch: https://github.com/kamailio/kamailio/commit/517283c245be8c35d3c6ee9721fa1e85865b4638.patch

---

diff --git a/src/modules/presence_dialoginfo/Makefile b/src/modules/presence_dialoginfo/Makefile
index 32ecedfba2..93232b2e7a 100644
--- a/src/modules/presence_dialoginfo/Makefile
+++ b/src/modules/presence_dialoginfo/Makefile
@@ -1,4 +1,4 @@
-# 
+#
 # WARNING: do not run this directly, it should be run by the master Makefile
 
 include ../../Makefile.defs
@@ -7,6 +7,12 @@ NAME=presence_dialoginfo.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
 endif
 
 ifneq ($(XML2CFG),)




More information about the sr-dev mailing list