4 AM_INIT_AUTOMAKE([foreign subdir-objects color-tests])
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))
38 AC_CHECK_HEADER([sys/inotify.h],
39 [AC_DEFINE([HAVE_SYS_INOTIFY_H], 1,
40 [Define to 1 if you have <sys/inotify.h>.])],
41 [AC_MSG_ERROR(inotify headers are required and missing)])
55 AC_ARG_WITH([systemdunitdir], AC_HELP_STRING([--with-systemdunitdir=DIR],
56 [path to systemd system service directory]), [path_systemdunit=${withval}],
57 [path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"])
58 if (test -n "${path_systemdunit}"); then
59 SYSTEMD_UNITDIR="${path_systemdunit}"
60 AC_SUBST(SYSTEMD_UNITDIR)
62 AM_CONDITIONAL(SYSTEMD, test -n "${path_systemdunit}")
64 AC_OUTPUT(Makefile doc/version.xml src/bluetoothd.8 src/bluetooth.service bluez.pc)