Forráskód Böngészése

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

Daniel-Constantin Mierla 5 éve
szülő
commit
77ad9e626a
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      src/modules/presence_xml/Makefile

+ 6 - 0
src/modules/presence_xml/Makefile

@@ -8,6 +8,12 @@ LIBS=
 
 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 \