Browse code

xhttp_pi: 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
... ...
@@ -9,6 +9,12 @@ LIBS +=
9 9
 
10 10
 ifeq ($(CROSS_COMPILE),)
11 11
 XML2CFG=$(shell which xml2-config)
12
+ifeq ($(XML2CFG),)
13
+XML2CFG=$(shell \
14
+	if pkg-config --exists libxml-2.0; then \
15
+		echo 'pkg-config libxml-2.0'; \
16
+	fi)
17
+endif
12 18
 endif
13 19
 
14 20
 ifneq ($(XML2CFG),)