summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* Add SPDX license marker for the FSFULLR licenseRalf Habacker2023-01-032-0/+2
| | | | | | The associated full license text was retrieved from https://spdx.org. Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
* Autotools: use AX_RECURSIVE_EVAL instead of AS_AC_EXPANDSimon McVittie2022-10-121-49/+0
| | | | | | | | | AX_RECURSIVE_EVAL is maintained as part of autoconf-archive, so we don't need to bundle our own copy and keep track of its licensing status. It's very similar to AS_AC_EXPAND, but the arguments are the other way round and it doesn't automatically AC_SUBST its result. Signed-off-by: Simon McVittie <smcv@collabora.com>
* m4: Stop shipping our own copy of pkg.m4Simon McVittie2022-10-121-155/+0
| | | | | | | | | | The canonical way to find these macro is to run autogen.sh or autoreconf while pkg-config (or pkgconf) is installed, which will copy an up-to-date version of the macros from /usr/share/aclocal. The `make dist` archive will include a bundled copy of those macros, but the git repository doesn't need them. Signed-off-by: Simon McVittie <smcv@collabora.com>
* Adapt to API change in AX_CODE_COVERAGE version 28Simon McVittie2019-01-216-0/+432
| | | | | | | | | | | | | | | | AX_CODE_COVERAGE recently changed the way it embedded its Makefile rules in the output file: instead of using @CODE_COVERAGE_RULES@, users are now meant to include aminclude_static.am. The new AX_CODE_COVERAGE is only in the latest autoconf-archive release, version 2019.01.06, which is inconveniently new, so bundle everything we need for the moment. This requires us to stop using the deprecated CODE_COVERAGE_LDFLAGS (which we still used to support older versions of autoconf-archive) and replace them with CODE_COVERAGE_LIBS. Signed-off-by: Simon McVittie <smcv@collabora.com>
* Test compiler and linker flags with AX_COMPILER_FLAGS_* macrosThomas Zimmermann2016-10-132-92/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | The autoconf macros AX_COMPILER_FLAGS_{CFLAGS|CXXFLAGS|LDFLAGS} test for compiler and linker support of various flags, and add the flags to the generated output. If the command-line option '--enable-compile-warnings' is specified to 'configure', a number of additional warning options is also added to the output. This is the default. The AX_COMPILER_FLAGS_* macros add stricter warnings then before. The patch disables some of them to make dbus build without errors. A later patch set should fix the warnings and remove the compiler flags. This patch integrates all tests for compiler flags into the call to AX_COMPILER_FLAGS_CFLAGS. All tests for compiler flags are now done in a single place. The old macros have been removed. Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net> [smcv: add missing $ to DISABLE_WARNINGS] [smcv: drop -Wno-discarded-qualifiers] [smcv: drop non-C++ option -Wpointer-sign in C++ mode] [smcv: work around an AX_COMPILER_FLAGS_CFLAGS bug] [smcv: this source tree is called dbus, not DBus] Signed-off-by: Simon McVittie <smcv@debian.org> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97357
* Remove configure option '--disable-compiler-optimisations'Thomas Zimmermann2016-10-101-67/+0
| | | | | | | | | | This path removes the obsolete configure option '--disable-compiler-optimisations'. Users can control compiler flags by setting CFLAGS, CXXFLAGS, etc in the build environment. Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net> Reviewed-by: Simon McVittie <smcv@debian.org> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97357
* Link dbus-daemon and dbus-daemon-lauch-helper against libdbusBertrand SIMONNET2015-02-201-0/+43
| | | | | | | | | | | | | | The shared can be used by dbus-daemon and dbus-daemon-launch-helper by exporting the private symbols needed, reducing the size of dbus by about 500k. The private symbols are exposed under the version LIBDBUS_PRIVATE_@VERSION_NUMBER@. [Altered by Simon McVittie and Ralf Habacker to clear up some problematic linking.] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83115 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
* On Unix platforms with gcc (or compatible), hide non-exported symbolsSimon McVittie2015-02-201-0/+77
| | | | | | | | | | | | | | | | | | | | | | This changes the Linux behaviour to match the default situation on Windows: symbols without DBUS_EXPORT or DBUS_PRIVATE_EXPORT decoration are internal to libdbus-1, and cannot be used by other programs, even within the dbus source tree. This means the compiler/linker can optimize calls to those functions by avoiding indirection through the PLT, which should improve performance a little. However, the primary purpose of doing this is that it means developers building libdbus on Linux are considerably less likely to break it on Windows by mistake. I'm deliberately not adding -fvisbility=hidden in CMake because the complexity of doing so is unnecessary: Autotools is the recommended way to build dbus for Unix, and the one Unix developers are going to use in practice, unless they are specifically checking that they haven't broken the CMake build. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83115 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
* Assign default value to enable compiler coverageChengwei Yang2013-06-061-1/+1
| | | | | | Signed-off-by: Chengwei Yang <chengwei.yang@intel.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65424 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Import tp-compiler-flag.m4 and tp-compiler-warnings.m4 from telepathy-glibSimon McVittie2011-05-252-0/+92
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=19681 Reviewed-by: Colin Walters <walters@verbum.org>
* Split acinclude.m4 into separate files in m4/Simon McVittie2011-02-172-0/+204
| | | | | | | Drop AM_CHECK_PYTHON_HEADERS (no longer used) and split the others according to their upstreams. Otherwise, compiler.m4 won't get included in tarballs.
* Import compiler.m4 and lcov.am from telepathy-glib, and use them to replace gcovSimon McVittie2011-02-171-0/+67
Reviewed-by: Colin Walters <walters@verbum.org> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=10887