Skip to contentSkip to conversation

crda: report if no supported version of libnl is found

PATCH In review Pavel Roskin 2 participants 2 messages Jan 30, 2009 – Feb 2, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crda: report if no supported version of libnl is found

Otherwise, the error messase would be very confusing.

---
 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Makefile +4 -0
index aaa9ca6..461103d 100644
@@ -52,6 +52,10 @@ NLLIBS += -lnl-genl
 NLLIBNAME = libnl-2.0
 endif
 
+ifeq ($(NLLIBNAME),)
+$(error Cannot find development files for any supported version of libnl)
+endif
+
 NLLIBS += `pkg-config --libs $(NLLIBNAME)`
 CFLAGS += `pkg-config --cflags $(NLLIBNAME)`
 
#1 lore raw
Quoted 1 line · Pavel Roskin

Otherwise, the error messase would be very confusing.

Heh yeah good catch. Applied, thanks.

Luis