# Checks for libraries begin here
#
-# Check for HAL (hardware abstraction library)
-PKG_CHECK_MODULES([HAL], [hal],
- [
- SAVE_LIBS="$LIBS"
- LIBS="$HAL_LIBS $LIBS"
- AC_CHECK_LIB([hal], [libhal_device_property_exists],
- [
- SAVE_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$HAL_CFLAGS $CPPFLAGS"
- AC_CHECK_HEADERS([libhal.h],
- [
- with_libhal="yes"
- BUILD_WITH_LIBHAL_CFLAGS="$HAL_CFLAGS"
- BUILD_WITH_LIBHAL_LIBS="$HAL_LIBS"
- ])
- CPPFLAGS="$SAVE_CPPFLAGS"
- ],
- [with_libhal="no"]
- )
- LIBS="$SAVE_LIBS"
- ],
- [with_libhal="no"]
-)
-AC_SUBST(BUILD_WITH_LIBHAL_CFLAGS)
-AC_SUBST(BUILD_WITH_LIBHAL_LIBS)
-
-
# Check for libpthread
SAVE_LIBS="$LIBS"
AC_CHECK_LIB([pthread],
with_libkvm="no"
AC_CHECK_LIB([kvm], [kvm_getprocs],
[with_kvm_getprocs="yes"],
- []
+ [with_kvm_getprocs="no"]
)
if test "x$with_kvm_getprocs" = "xyes"; then
AC_CHECK_LIB([kvm], [kvm_getswapinfo],
[with_kvm_getswapinfo="yes"],
- []
+ [with_kvm_getswapinfo="no"]
)
if test "x$with_kvm_getswapinfo" = "xyes"; then
AC_CHECK_LIB([kvm], [kvm_nlist],
[with_kvm_nlist="yes"],
- []
+ [with_kvm_nlist="no"]
)
if test "x$with_kvm_nlist" = "xyes"; then
AC_CHECK_LIB([kvm], [kvm_openfiles],
[with_kvm_openfiles="yes"],
- []
+ [with_kvm_openfiles="no"]
)
if test "x$with_kvm_openfiles" = "xyes"; then
AC_CHECK_HEADERS([mysql.h],
[have_mysql_h="yes"],
- []
+ [have_mysql_h="no"]
)
if test "x$have_mysql_h" != "xyes"; then
[
AC_DEFINE([HAVE_AMQP_TCP_SOCKET], [1],
[Define if librabbitmq provides the new TCP socket interface.])
- ],
- []
+ ]
)
AC_CHECK_DECLS([amqp_socket_close],
AC_MSG_RESULT([ libgcrypt . . . . . . $with_libgcrypt])
AC_MSG_RESULT([ libgps . . . . . . . $with_libgps])
AC_MSG_RESULT([ libgrpc++ . . . . . . $with_libgrpcpp])
-AC_MSG_RESULT([ libhal . . . . . . . $with_libhal])
AC_MSG_RESULT([ libhiredis . . . . . $with_libhiredis])
AC_MSG_RESULT([ libi2c-dev . . . . . $with_libi2c])
AC_MSG_RESULT([ libiokit . . . . . . $with_libiokit])