build: Use dummy=yes assignment for pkg-config check

This commit is contained in:
Marcel Holtmann 2013-07-19 08:30:19 -07:00
parent dff2657093
commit aacc10271e
1 changed files with 1 additions and 2 deletions

View File

@ -181,8 +181,7 @@ AC_ARG_ENABLE(bluez4, AC_HELP_STRING([--enable-bluez4],
[enable_bluez4=${enableval}])
if (test "${enable_bluez4}" = "yes"); then
PKG_CHECK_MODULES(BLUEZ, bluez >= 4.99 bluez < 5,
enable_bluez4=yes,
PKG_CHECK_MODULES(BLUEZ, bluez >= 4.99 bluez < 5, dummy=yes,
AC_MSG_ERROR(Bluetooth library >= 4.99 and < 5 is required))
AC_SUBST(BLUEZ_CFLAGS)
AC_SUBST(BLUEZ_LIBS)