--- CMakeModules/FindBluetooth.cmake | 16 ++++++++++++++++ acinclude.m4 | 2 ++ 2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/CMakeModules/FindBluetooth.cmake b/CMakeModules/FindBluetooth.cmake index 4c36282..b2dd2e1 100644 --- a/CMakeModules/FindBluetooth.cmake +++ b/CMakeModules/FindBluetooth.cmake @@ -64,6 +64,14 @@ elseif ( CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" ) ) mark_as_advanced ( Bluetooth_INCLUDE_DIRS ) + find_library ( Bluetooth_LIBRARIES + NAMES + bluetooth + PATH_SUFFIXES + lib + ) + mark_as_advanced ( Bluetooth_LIBRARIES ) + if ( Bluetooth_INCLUDE_DIRS ) set ( CMAKE_REQUIRED_INCLUDES ${Bluetooth_INLUDE_DIRS} ) CHECK_C_SOURCE_COMPILES ( @@ -85,6 +93,14 @@ elseif ( CMAKE_SYSTEM_NAME STREQUAL "NetBSD" ) ) mark_as_advanced ( Bluetooth_INCLUDE_DIRS ) + find_library ( Bluetooth_LIBRARIES + NAMES + bluetooth + PATH_SUFFIXES + lib + ) + mark_as_advanced ( Bluetooth_LIBRARIES ) + if ( Bluetooth_INCLUDE_DIRS ) set ( CMAKE_REQUIRED_INCLUDES ${Bluetooth_INLUDE_DIRS} ) CHECK_C_SOURCE_COMPILES ( diff --git a/acinclude.m4 b/acinclude.m4 index 7b67007..3da248a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -309,10 +309,12 @@ AC_DEFUN([AC_ARG_OPENOBEX], [ if (test "${netbsdbt_cv_found}" = "yes"); then AC_DEFINE(HAVE_BLUETOOTH_NETBSD, 1, [Define if system supports Bluetooth stack for NetBSD]) + BLUETOOTH_LIBS="-lbluetooth" fi if (test "${freebsdbt_cv_found}" = "yes"); then AC_DEFINE(HAVE_BLUETOOTH_FREEBSD, 1, [Define if system supports Bluetooth stack for FreeBSD]) + BLUETOOTH_LIBS="-lbluetooth" fi if (test "${bluez_found}" = "yes"); then -- 1.7.4.1 ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users