Просмотр исходного кода

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

- GH #2199
Daniel-Constantin Mierla 5 лет назад
Родитель
Сommit
7f6648a858
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      src/modules/pua_reginfo/Makefile

+ 6 - 0
src/modules/pua_reginfo/Makefile

@@ -10,6 +10,12 @@ LIBS=
 
 
 ifeq ($(CROSS_COMPILE),)
 ifeq ($(CROSS_COMPILE),)
 XML2CFG=$(shell which xml2-config)
 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
 endif
 
 
 ifneq ($(XML2CFG),)
 ifneq ($(XML2CFG),)