4 AM_INIT_AUTOMAKE([foreign subdir-objects])
5 AM_CONFIG_HEADER(config.h)
7 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
27 m4_define([_LT_AC_TAGCONFIG], [])
28 m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
35 AC_CHECK_LIB(dl, dlopen, dummy=yes,
36 AC_MSG_ERROR(dynamic linking loader is required))
47 AC_ARG_ENABLE(capng, AC_HELP_STRING([--enable-capng],
48 [enable capabilities support]), [enable_capng=${enableval}])
49 if (test "${enable_capng}" = "yes"); then
50 PKG_CHECK_MODULES(CAPNG, libcap-ng, dummy=yes,
51 AC_MSG_ERROR(Capabilities library is required))
52 AC_SUBST(CAPNG_CFLAGS)
54 AC_DEFINE(HAVE_CAPNG, 1, [Define to 1 if you have capabilities library.])
57 AC_ARG_ENABLE(netlink, AC_HELP_STRING([--enable-netlink],
58 [enable netlink support]), [enable_netlink=${enableval}])
59 if (test "${enable_netlink}" = "yes"); then
60 PKG_CHECK_MODULES(NETLINK, libnl-1, dummy=yes,
61 AC_MSG_ERROR(Netlink library is required))
62 AC_SUBST(NETLINK_CFLAGS)
63 AC_SUBST(NETLINK_LIBS)
65 AM_CONDITIONAL(NETLINK, test "${enable_netlink}" = "yes")
67 AC_OUTPUT(Makefile scripts/bluetooth.rules doc/version.xml
68 src/bluetoothd.8 bluez.pc)