Browse Source

modules/carrierroute: update linking flags on CentOS systems

Ovidiu Sas 15 years ago
parent
commit
63e14405ea
1 changed files with 10 additions and 4 deletions
  1. 10 4
      modules/carrierroute/Makefile

+ 10 - 4
modules/carrierroute/Makefile

@@ -12,10 +12,16 @@ NAME=carrierroute.so
 BUILDER = $(shell which confuse-config)
 
 ifeq ($(BUILDER),)
-	CONFUSEDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
-		-I/usr/sfw/include
-	CONFUSELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
-		-L/opt/lib -lconfuse
+	BUILDER = $(shell which pkg-config)
+	ifeq ($(BUILDER),)
+		CONFUSEDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
+			-I/usr/sfw/include
+		CONFUSELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
+			-L/opt/lib -lconfuse
+	else
+		CONFUSEDEFS = $(shell pkg-config --cflags libconfuse)
+		CONFUSELIBS = $(shell pkg-config --libs libconfuse)
+	endif
 else
 		CONFUSEDEFS = $(shell confuse-config --cflags)
 		CONFUSELIBS = $(shell confuse-config --libs)