configure: Check for bluez >= 4.30.

Earlier versions lack struct sockaddr_l2::l2_cid and/or
struct bt_security.
This commit is contained in:
Andrzej Zaborowski 2011-02-15 09:55:51 +01:00 committed by Marcel Holtmann
parent 817c1e2a34
commit 7d63b41ca5
1 changed files with 2 additions and 2 deletions

View File

@ -184,8 +184,8 @@ AC_ARG_ENABLE(bluetooth, AC_HELP_STRING([--disable-bluetooth],
[disable Bluetooth modem support]),
[enable_bluetooth=${enableval}])
if (test "${enable_bluetooth}" != "no"); then
PKG_CHECK_MODULES(BLUEZ, bluez, dummy=yes,
AC_MSG_ERROR(Bluetooth library is required))
PKG_CHECK_MODULES(BLUEZ, bluez >= 4.30, dummy=yes,
AC_MSG_ERROR(Bluetooth library >= 4.30 is required))
fi
AC_SUBST(BLUEZ_CFLAGS)
AC_SUBST(BLUEZ_LIBS)