From ab812a048538583ce47f74154ab0541a6d369c33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fridrich=20=C5=A0trba?= Date: Mon, 19 Jul 2010 10:30:58 +0200 Subject: [PATCH] Make respect also XML2_CONFIG env variable --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 13355f8..7cad340 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,12 @@ ifeq ($(PKG_CONFIG),) PKG_CONFIG=pkg-config endif -XML2_CFLAGS += $(shell xml2-config --cflags) -XML2_LDFLAGS += $(shell xml2-config --libs) +ifeq ($(XML2_CONFIG),) +XML2_CONFIG=xml2-config +endif + +XML2_CFLAGS += $(shell $(XML2_CONFIG) --cflags) +XML2_LDFLAGS += $(shell $(XML2_CONFIG) --libs) ifeq ($(XML2_LDFLAGS),) $(error "No libxml2 support. Cannot continue"); endif -- 2.49.0