From: Pavel Roskin Date: Fri, 30 Jan 2009 22:33:34 +0000 (-0500) Subject: iw: report if no supported version of libnl is found X-Git-Tag: v0.9.10~12^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34b6e0f5b34c572bfa408b8e26057ba708e11da4;p=thirdparty%2Fiw.git iw: report if no supported version of libnl is found Otherwise, the error messase would be very confusing. --- diff --git a/Makefile b/Makefile index 4de66e8..89ebd7f 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,10 @@ LIBS += -lnl-genl NLLIBNAME = libnl-2.0 endif +ifeq ($(NLLIBNAME),) +$(error Cannot find development files for any supported version of libnl) +endif + LIBS += $(shell pkg-config --libs $(NLLIBNAME)) CFLAGS += $(shell pkg-config --cflags $(NLLIBNAME))