Commit Graph

179 Commits

Author SHA1 Message Date
Marcel Holtmann
7e19eb9a5e Release 5.5 2013-05-14 09:04:15 +02:00
Marcel Holtmann
4a9ce2ed68 Release 5.4 2013-04-10 22:50:12 -07:00
Marcel Holtmann
6c4e64aa4b Release 5.3 2013-02-23 12:20:10 +01:00
Antonio Ospite
d2aad021e4 configure.ac: call AC_SUBST(*_CFLAGS) and AC_SUBST(*_LIBS) only when needed
Bring AC_SUBST(*_CFLAGS) and AC_SUBST(*_LIBS) in the same block of the
corresponding PKG_CHECK_MODULES() call.

Having these variables defined outside of the if tests is more than what
is needed as the corresponding PKG_CHECK_MODULES() might not have been
called at all there.

This is the same logic already used for USB_CFLAGS and USB_LIBS.
2013-02-23 12:51:07 +02:00
Antonio Ospite
5ce3ca820d configure.ac: call AC_SUBST unconditionally with --with-* options
Call AC_SUBST unconditionally when specifying --with-* options,
otherwise options like --with-dbusconfdir=DIR or --with-udevdir=DIR have
no effect.

Before this change, configuring with:

  $ mkdir build
  $ ./configure --disable-systemd \
                --prefix=$(pwd)/build \
                --with-dbusconfdir=$(pwd)/build/etc

resulted in the option value to be ignored at "make install" time, with
this error:

  /bin/mkdir: cannot create directory '/dbus-1/system.d': Permission denied

This is what was going on in configure.ac:

  # define the option
  AC_ARG_WITH([dbusconfdir] ... [path_dbusconfdir=${withval}])

  # when --with-dbusconfdir is NOT used
  if (test -z "${path_dbusconfdir}"); then
    ...

    # define the config dir automatically
    path_dbusconfdir="`$PKG_CONFIG --variable=sysconfdir dbus-1`"

    ...

    # set DBUS_CONFDIR
    AC_SUBST(DBUS_CONFDIR, [${path_dbusconfdir}])
  endif

when --with-dbusconfdir=SOMEDIR was used the test above failed, and the
result was that ${path_dbusconfdir} was indeed defined as manually
specified, but DBUS_CONFDIR was not, and the latter was going to be used
in Makefile.am:

  dbusdir = @DBUS_CONFDIR@/dbus-1/system.d

The failure in mkdir can be exposed by the use of the "--prefix" option
and by running "make install" as a normal user; when running "make
install" with the root user /dbus-1/system.d would be happily (and
wrongly) created.

By always setting variables relative to --with-* options (like
DBUS_CONFDIR) the cases when --with-someoption=SOMEDIR are used get
covered.
2013-02-23 12:49:04 +02:00
Marcel Holtmann
9ea3f21c6e Release 5.2 2013-02-02 01:41:17 +01:00
Marcel Holtmann
e9dd74d5e3 Release 5.1 2013-01-11 11:07:49 -08:00
Lucas De Marchi
5a1ec00553 build: Do not use deprecated AM_CONFIG_HEADER
The long-obsoleted AM_CONFIG_HEADER macro was removed in automake 1.13.
Use AC_CONFIG_HEADERS instead.
2013-01-03 21:28:48 -08:00
Marcel Holtmann
5687a80717 Release 5.0 2012-12-24 09:35:38 -08:00
Marcel Holtmann
55bf340c04 build: Move bluez.pc into the library directory 2012-12-19 18:27:14 +01:00
Marcel Holtmann
8a10ddc548 build: Remove left-overs from broken attempt in adding gtk-doc support 2012-12-19 18:21:26 +01:00
Marcel Holtmann
c5a7b6ca64 build: Fix typo with D-Bus system service directory check 2012-12-18 21:54:25 +01:00
Marcel Holtmann
2d9190d3ac build: Check for D-Bus session services directory 2012-12-18 21:53:30 +01:00
Marcel Holtmann
710489806b build: Add configure option to disable the monitor utility 2012-12-12 23:19:43 +01:00
Marcel Holtmann
d4a93caffe build: Support building client without tools enabled 2012-12-11 22:19:13 +01:00
Marcel Holtmann
e57efd6fbb build: Add option for D-Bus system bus services directory 2012-12-11 17:55:24 +01:00
Marcel Holtmann
7ef17a931b build: Start building xz compressed packages by default 2012-12-11 17:31:58 +01:00
Marcel Holtmann
3346851d3e build: Use AC_PROG_MKDIR_P instead of AM_PROG_MKDIR_P 2012-12-11 17:16:59 +01:00
Marcel Holtmann
fab8ebdadd build: Include directory errors within square brackets 2012-12-11 15:26:09 +01:00
Marcel Holtmann
68c3d4cf0d build: Use better configuration option for D-Bus config directory 2012-12-11 15:24:18 +01:00
Marcel Holtmann
89e2de32f5 build: Cleanup of systemd unit directory options 2012-12-11 15:09:31 +01:00
Marcel Holtmann
a7d4c2296f build: Add option for providing the udev directory 2012-12-11 15:05:24 +01:00
Marcel Holtmann
c7476c4e65 build: Handle systemd system and user unit directories 2012-12-11 14:52:23 +01:00
Marcel Holtmann
0819e1aafd build: Add configure option for disabling CUPS support 2012-12-11 11:50:44 +01:00
Marcel Holtmann
d555301c5f build: Enable tools compilation and installation by default 2012-12-11 01:37:52 +01:00
Marcel Holtmann
9de5c526eb build: Add skeleton for command line client 2012-12-11 01:33:53 +01:00
Marcel Holtmann
652229d770 build: Fix issue with tools dependencies 2012-12-11 00:24:43 +01:00
Marcel Holtmann
a66050d7f4 build: Do not install libbluetooth by default 2012-12-10 22:34:47 +01:00
Marcel Holtmann
7004597f9f build: Add support for building Phonebook Access profile 2012-12-10 22:01:03 +01:00
Marcel Holtmann
93a2c454bc build: Fix typo in udev configure statement 2012-12-10 22:01:03 +01:00
Marcel Holtmann
cc9e4e7cae build: Update configure option handling 2012-12-10 21:32:51 +01:00
Marcel Holtmann
5a2fda0be9 build: Use libexecdir for Bluetooth daemon 2012-12-09 11:19:53 +01:00
Marcel Holtmann
292a37990c build: Remove dependency for check library 2012-12-09 10:33:32 +01:00
Marcel Holtmann
3b886d255b build: Remove compat helper for ppoll 2012-12-09 00:42:26 +01:00
Lucas De Marchi
b84f6f794b build-sys: Define _GNU_SOURCE in config.h
Instead of defining _GNU_SOURCE in each source file (and potentially
forgetting in some), tell the build system we use extensions and let it
define _GNU_SOURCE in config.h.
2012-12-05 17:17:36 +02:00
Marcel Holtmann
8d439d85b3 build: Remove option to build SBC support 2012-11-09 09:57:08 +01:00
Marcel Holtmann
15df7842e1 build: Remove option to build GStreamer plugin 2012-11-09 09:49:22 +01:00
Marcel Holtmann
43baee63f6 build: Indicate 5.x development branch 2012-10-06 18:31:07 +02:00
Lucas De Marchi
10ea337795 build-sys: Don't use deprecated AM_PROG_MKDIR_P
AM_PROG_MKDIR_P is deprecated since:

configure.ac:23: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and will soon be removed.
configure.ac:23: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:23: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.

We are already using $(MKDIR_P) so we just need to call the right macro.
2012-10-04 11:23:57 +03:00
Lucas De Marchi
5bec57420b rfcomm: Remove support for configuration file 2012-08-09 22:52:38 -07:00
Luiz Augusto von Dentz
4ff9b99292 audio: Remove ALSA support
ALSA support depend on unix support that is now removed.
2012-07-02 13:13:43 +03:00
Marcel Holtmann
67ef3ac837 Release 4.101 2012-06-22 14:07:04 -07:00
Marcel Holtmann
094acfddba Release 4.100 2012-06-13 11:59:36 -07:00
Marcel Holtmann
99dd125c52 build: Remove dependency on libcap-ng 2012-05-29 08:19:30 +02:00
Tom Gundersen
2ea98a6a04 udev: remove udev activation of the blutooth daemon
Udev is not meant to spawn long-running processes, and as of the next
udev version such processes will be killed.

If using systemd, device activation can be used to get the same effect.

On Arch we have been disabling this rule for a long time, even though we
don't use systemd, as it was causing more problems than it was worth.
2012-05-08 13:17:15 -07:00
Marcel Holtmann
b57c70794d Release 4.99 2012-03-06 09:04:22 -08:00
Marcel Holtmann
7120efe67a Release 4.98 2012-01-13 04:03:08 +01:00
Marcel Holtmann
bf5d45f2fb build: Move libcheck under TEST conditional 2011-12-27 20:09:56 -08:00
Marcel Holtmann
214087d7de Release 4.97 2011-12-22 17:39:07 -08:00
Johan Hedberg
34f0602093 Use PKG_CHECK_MODULES instead of (deprecated) AM_PATH_CHECK 2011-10-25 21:54:41 +03:00