On Sat, 2012-06-02 at 18:53 +0200, Guido Trentalancia wrote: > -NL1FOUND := $(shell $(PKG_CONFIG) --atleast-version=1 libnl-1 && echo Y) > -NL2FOUND := $(shell $(PKG_CONFIG) --atleast-version=2 libnl-2.0 && echo Y) > -NL3FOUND := $(shell $(PKG_CONFIG) --atleast-version=3 libnl-3.0 && echo Y) > -NL31FOUND := $(shell $(PKG_CONFIG) --exact-version=3.1 libnl-3.1 && echo Y) > +ifeq ($(NLLIBNAME),) > NL3xFOUND := $(shell $(PKG_CONFIG) --atleast-version=3.2 libnl-3.0 && echo Y) > +ifneq ($(NL3xFOUND),Y) > +NL31FOUND := $(shell $(PKG_CONFIG) --exact-version=3.1 libnl-3.1 && echo Y) > +ifneq ($(NL31FOUND),Y) > +NL3FOUND := $(shell $(PKG_CONFIG) --atleast-version=3 libnl-3.0 && echo Y) > +ifneq ($(NL3FOUND),Y) > +NL2FOUND := $(shell $(PKG_CONFIG) --atleast-version=2 libnl-2.0 && echo Y) > +ifneq ($(NL2FOUND),Y) > +NL1FOUND := $(shell $(PKG_CONFIG) --atleast-version=1 libnl-1 && echo Y) > +endif If you have this part, then > ifeq ($(NL2FOUND),Y) > -CFLAGS += -DCONFIG_LIBNL20 > -LIBS += -lnl-genl > +CFLAGS = -DCONFIG_LIBNL20 > +LIBS = -lnl-genl All these changes aren't necessary, right? I'd prefer not to make these changes since people might want to set some CFLAGS somewhere. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html