use libnl3
This commit is contained in:
parent
93cb64ca6f
commit
6e3ce9ed74
23
configure.ac
23
configure.ac
@ -207,17 +207,28 @@ fi
|
|||||||
|
|
||||||
# Check Netlink library
|
# Check Netlink library
|
||||||
PKG_CHECK_MODULES(
|
PKG_CHECK_MODULES(
|
||||||
[LIBNL],
|
[LIBNL3],
|
||||||
[libnl-1],
|
[libnl-3.0 >= 3.1],
|
||||||
[AC_DEFINE([HAVE_LIBNL_10], [1], [Use libnl-1.0 library])],
|
[have_libnl3=yes],
|
||||||
[PKG_CHECK_MODULES(
|
[PKG_CHECK_MODULES(
|
||||||
[LIBNL],
|
[LIBNL],
|
||||||
[libnl-tiny],
|
[libnl-1],
|
||||||
[AC_DEFINE([HAVE_LIBNL_TINY], [1], [Use libnl-tiny library])],
|
[AC_DEFINE([HAVE_LIBNL_10], [1], [Use libnl-1.0 library])],
|
||||||
[AC_MSG_ERROR(You need the libnl or libnl-tiny)]
|
[PKG_CHECK_MODULES(
|
||||||
|
[LIBNL],
|
||||||
|
[libnl-tiny],
|
||||||
|
[AC_DEFINE([HAVE_LIBNL_TINY], [1], [Use libnl-tiny library])],
|
||||||
|
[AC_MSG_ERROR(You need the libnl or libnl-tiny)]
|
||||||
|
)]
|
||||||
)]
|
)]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if test "${have_libnl3}" = "yes"; then
|
||||||
|
AC_DEFINE([HAVE_LIBNL_3], [1], [Use libnl-3.1+ library])
|
||||||
|
CFLAGS="${CFLAGS} ${LIBNL3_CFLAGS}"
|
||||||
|
LIBS="${LIBS} ${LIBNL3_LIBS}"
|
||||||
|
fi
|
||||||
|
|
||||||
AC_CHECK_HEADERS([netlink/genl/genl.h netlink/genl/family.h netlink/genl/ctrl.h], [], [AC_MSG_ERROR(You need the netlink header)])
|
AC_CHECK_HEADERS([netlink/genl/genl.h netlink/genl/family.h netlink/genl/ctrl.h], [], [AC_MSG_ERROR(You need the netlink header)])
|
||||||
AC_CHECK_HEADER([linux/nl80211.h], [], [AC_MSG_ERROR(You need the nl80211 header)])
|
AC_CHECK_HEADER([linux/nl80211.h], [], [AC_MSG_ERROR(You need the nl80211 header)])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user