소스 검색

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

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

+ 6 - 0
src/modules/pua_usrloc/Makefile

@@ -8,6 +8,12 @@ LIBS=
 
 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),)