From: Pavel Roskin Date: Fri, 30 Jan 2009 22:33:06 +0000 (-0800) Subject: crda: report if no supported version of libnl is found X-Git-Tag: v1.0.2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e4ae9f3f025e681fbcbac87dc1394513a5b15be;p=platform%2Fupstream%2Fcrda.git crda: report if no supported version of libnl is found Otherwise, the error messase would be very confusing. --- diff --git a/Makefile b/Makefile index aaa9ca6..461103d 100644 --- a/Makefile +++ b/Makefile @@ -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)`