소스 검색

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

Daniel-Constantin Mierla 5 년 전
부모
커밋
02cf454fc6
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/modules/utils/Makefile

+ 6 - 0
src/modules/utils/Makefile

@@ -10,6 +10,12 @@ NAME=utils.so
 
 
 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),)