소스 검색

secsipid: Makefile - detect of pkg-config knows about libsecsipid

Daniel-Constantin Mierla 4 년 전
부모
커밋
664542adf4
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      src/modules/secsipid/Makefile

+ 10 - 1
src/modules/secsipid/Makefile

@@ -7,7 +7,16 @@ include ../../Makefile.defs
 auto_gen=
 NAME=secsipid.so
 
-BUILDER = $(shell which pkg-config)
+ifeq ($(CROSS_COMPILE),)
+	BUILDER = $(shell which pkg-config)
+ifneq ($(BUILDER),)
+	PKGLIBSECSIPID = $(shell $(BUILDER) --exists secsipid-1 > /dev/null 2>&1 ; echo $$? )
+ifneq ($(PKGLIBSECSIPID),0)
+	BUILDER =
+endif
+endif
+endif
+
 ifeq ($(BUILDER),)
 	DEFS+= -I.
 	LIBS = -L. -lsecsipid