- AC_CHECK_LIB(nl, nlmsg_get_src, [ : ],
- [ ensc_have_libnl=no ])
+ AC_CHECK_LIB(nl, nl_handle_alloc_cb, [
+ AC_DEFINE(HAVE_LIBNL_1_1, [],
+ [Define this to use the libnl 1.1 API])],
+ [AC_CHECK_LIB(nl, nlmsg_get_src,
+ [AC_DEFINE(HAVE_LIBNL_1_0, [],
+ [Define this to use the libnl 1.0-pre6 API])],
+ [ensc_have_libnl=no])])