bluez/configure.ac

58 lines
1.3 KiB
Plaintext
Raw Normal View History

2008-12-22 05:26:32 +08:00
AC_PREREQ(2.60)
2012-10-07 00:31:07 +08:00
AC_INIT(bluez, 5.x)
2002-12-25 09:05:59 +08:00
2011-10-19 06:48:36 +08:00
AM_INIT_AUTOMAKE([foreign subdir-objects color-tests])
2004-04-03 13:13:53 +08:00
AM_CONFIG_HEADER(config.h)
AC_USE_SYSTEM_EXTENSIONS
2002-03-09 05:10:06 +08:00
2009-07-01 09:39:45 +08:00
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
2004-04-02 07:28:53 +08:00
AM_MAINTAINER_MODE
PKG_PROG_PKG_CONFIG
AC_INIT_BLUEZ
COMPILER_FLAGS
2004-04-02 07:28:53 +08:00
AC_LANG_C
2002-03-09 05:10:06 +08:00
AC_PROG_CC
AM_PROG_CC_C_O
2008-06-16 08:49:28 +08:00
AC_PROG_CC_PIE
2002-03-09 05:10:06 +08:00
AC_PROG_INSTALL
AC_PROG_MKDIR_P
2003-03-31 18:05:12 +08:00
2004-07-07 23:56:21 +08:00
m4_define([_LT_AC_TAGCONFIG], [])
2004-04-02 07:28:53 +08:00
m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
2004-03-03 11:56:18 +08:00
2005-02-10 08:21:01 +08:00
AC_DISABLE_STATIC
2004-03-03 11:56:18 +08:00
AC_PROG_LIBTOOL
2002-03-09 05:10:06 +08:00
AC_CHECK_LIB(dl, dlopen, dummy=yes,
AC_MSG_ERROR(dynamic linking loader is required))
AC_CHECK_HEADER([sys/inotify.h],
[AC_DEFINE([HAVE_SYS_INOTIFY_H], 1,
[Define to 1 if you have <sys/inotify.h>.])],
[AC_MSG_ERROR(inotify headers are required and missing)])
AC_PATH_DBUS
2006-08-21 08:55:17 +08:00
AC_PATH_GLIB
2004-07-16 02:29:31 +08:00
AC_PATH_USB
2011-04-28 17:08:47 +08:00
AC_PATH_UDEV
AC_PATH_OUI
AC_PATH_READLINE
AC_ARG_BLUEZ
AC_ARG_WITH([systemdunitdir], AC_HELP_STRING([--with-systemdunitdir=DIR],
[path to systemd system service directory]), [path_systemdunit=${withval}],
[path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"])
if (test -n "${path_systemdunit}"); then
SYSTEMD_UNITDIR="${path_systemdunit}"
AC_SUBST(SYSTEMD_UNITDIR)
fi
AM_CONDITIONAL(SYSTEMD, test -n "${path_systemdunit}")
AC_OUTPUT(Makefile doc/version.xml src/bluetoothd.8 src/bluetooth.service bluez.pc)