if bluez development files are not installed, compilation of the recently added native headset backend fails: CC modules/bluetooth/libbluez5_util_la-backend-native.lo modules/bluetooth/backend-native.c:36:33: fatal error: bluetooth/bluetooth.h: No such file or directory #include <bluetooth/bluetooth.h> this patch adds a check for bluez >= 4.101 Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net> --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index f165eb4..6e45dc6 100644 --- a/configure.ac +++ b/configure.ac @@ -1046,6 +1046,10 @@ fi AS_IF([test "x$BLUETOOTH_HEADSET_BACKEND" != "xofono" && test "x$BLUETOOTH_HEADSET_BACKEND" != "xnull" && test "x$BLUETOOTH_HEADSET_BACKEND" != "xnative"], [AC_MSG_ERROR([*** Invalid Bluetooth Headset backend])]) +AS_IF([test "x$BLUETOOTH_HEADSET_BACKEND" = "xnative"], + [PKG_CHECK_MODULES(BLUEZ, [ bluez >= 4.101 ], [], + [AC_MSG_ERROR([*** BLUEZ library not found (required by native headset backend)])])]) + AC_SUBST(BLUETOOTH_HEADSET_BACKEND) #### UDEV support (optional) #### -- 1.9.1