Browse code

xmlrpc: Makefile - use pkg-config if xml2-config is not found

- GH #2199

Daniel-Constantin Mierla authored on 13/02/2020 09:25:51
Showing 1 changed files
... ...
@@ -7,6 +7,12 @@ NAME=xmlrpc.so
7 7
 
8 8
 ifeq ($(CROSS_COMPILE),)
9 9
 XML2CFG=$(shell which xml2-config)
10
+ifeq ($(XML2CFG),)
11
+XML2CFG=$(shell \
12
+	if pkg-config --exists libxml-2.0; then \
13
+		echo 'pkg-config libxml-2.0'; \
14
+	fi)
15
+endif
10 16
 endif
11 17
 
12 18
 ifneq ($(XML2CFG),)