summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-12-08 12:03:47 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-12-08 12:03:47 +0000
commitf90e45fa8fb3edc954ccb9e537d2d8082a3d8070 (patch)
treed13fafcf80e30eaa5406c7f1cc1696589c046af7 /acinclude.m4
parenta4a063c607c0d2693f253af261b6d8a0bf221f9c (diff)
Check for sdp_connect() in -lbluetooth first
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 8b25acf8..94f665c8 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -76,7 +76,7 @@ AC_DEFUN([AC_PATH_BLUEZ], [
LDFLAGS="$LDFLAGS $BLUEZ_LIBS"
AC_CHECK_LIB(bluetooth, hci_open_dev, BLUEZ_LIBS="$BLUEZ_LIBS -lbluetooth", AC_MSG_ERROR(Bluetooth library not found))
- AC_CHECK_LIB(sdp, sdp_connect, BLUEZ_LIBS="$BLUEZ_LIBS -lsdp")
+ AC_CHECK_LIB(bluetooth, sdp_connect,, AC_CHECK_LIB(sdp, sdp_connect, BLUEZ_LIBS="$BLUEZ_LIBS -lsdp"))
CPPFLAGS=$ac_save_CPPFLAGS
LDFLAGS=$ac_save_LDFLAGS