Ver Fonte

lib/ims: Makefile - try to use pkg-config if xml2-config is not found

- GH #2199

(cherry picked from commit 58deac2e7fd62afca409b17903deb951493b213a)
Daniel-Constantin Mierla há 5 anos atrás
pai
commit
96f0cbd8ff
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      src/lib/ims/Makefile

+ 6 - 0
src/lib/ims/Makefile

@@ -12,6 +12,12 @@ DEFS+=-DSER
 
 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),)