2008-12-22 05:26:32 +08:00
|
|
|
AC_PREREQ(2.60)
|
2011-02-21 04:36:16 +08:00
|
|
|
AC_INIT(bluez, 4.89)
|
2002-12-25 09:05:59 +08:00
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
AM_INIT_AUTOMAKE([foreign subdir-objects])
|
2004-04-03 13:13:53 +08:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
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
|
|
|
|
|
2009-07-07 16:28:07 +08:00
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2004-08-13 00:00:35 +08:00
|
|
|
AC_INIT_BLUEZ
|
2002-03-23 03:45:46 +08:00
|
|
|
|
2008-12-23 13:04:54 +08:00
|
|
|
COMPILER_FLAGS
|
|
|
|
|
2004-04-02 07:28:53 +08:00
|
|
|
AC_LANG_C
|
|
|
|
|
2002-03-09 05:10:06 +08:00
|
|
|
AC_PROG_CC
|
2009-08-23 15:40:59 +08:00
|
|
|
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
|
2002-03-09 05:12:35 +08:00
|
|
|
AC_PROG_YACC
|
|
|
|
AM_PROG_LEX
|
2009-08-25 03:35:53 +08:00
|
|
|
AM_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
|
|
|
|
2006-08-16 18:54:06 +08:00
|
|
|
AC_FUNC_PPOLL
|
|
|
|
|
2008-10-19 01:03:30 +08:00
|
|
|
AC_CHECK_LIB(dl, dlopen, dummy=yes,
|
|
|
|
AC_MSG_ERROR(dynamic linking loader is required))
|
|
|
|
|
2008-08-06 03:52:39 +08:00
|
|
|
AC_PATH_DBUS
|
2006-08-21 08:55:17 +08:00
|
|
|
AC_PATH_GLIB
|
2007-04-04 17:39:23 +08:00
|
|
|
AC_PATH_ALSA
|
2007-08-25 00:55:28 +08:00
|
|
|
AC_PATH_GSTREAMER
|
2004-07-16 02:29:31 +08:00
|
|
|
AC_PATH_USB
|
2007-10-25 19:06:39 +08:00
|
|
|
AC_PATH_SNDFILE
|
2010-09-06 22:43:48 +08:00
|
|
|
AC_PATH_OUI
|
2011-02-16 01:09:43 +08:00
|
|
|
AC_PATH_READLINE
|
2004-08-13 00:03:09 +08:00
|
|
|
|
2004-08-13 00:00:35 +08:00
|
|
|
AC_ARG_BLUEZ
|
|
|
|
|
2010-02-04 06:33:13 +08:00
|
|
|
AC_ARG_ENABLE(capng, AC_HELP_STRING([--enable-capng],
|
|
|
|
[enable capabilities support]), [enable_capng=${enableval}])
|
|
|
|
if (test "${enable_capng}" = "yes"); then
|
|
|
|
PKG_CHECK_MODULES(CAPNG, libcap-ng, dummy=yes,
|
|
|
|
AC_MSG_ERROR(Capabilities library is required))
|
|
|
|
AC_SUBST(CAPNG_CFLAGS)
|
|
|
|
AC_SUBST(CAPNG_LIBS)
|
|
|
|
AC_DEFINE(HAVE_CAPNG, 1, [Define to 1 if you have capabilities library.])
|
|
|
|
fi
|
|
|
|
|
2010-10-06 20:11:53 +08:00
|
|
|
AC_OUTPUT(Makefile scripts/bluetooth.rules doc/version.xml
|
2009-08-23 15:51:39 +08:00
|
|
|
src/bluetoothd.8 bluez.pc)
|