Explorar o código

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

Daniel-Constantin Mierla %!s(int64=4) %!d(string=hai) anos
pai
achega
664542adf4
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  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