| |
@@ -0,0 +1,57 @@
|
| |
+ From 0a3b0f906b971df07fc0f2fbf24ce5ee53458b02 Mon Sep 17 00:00:00 2001
|
| |
+ From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
| |
+ Date: Mon, 2 Oct 2017 17:05:34 +0200
|
| |
+ Subject: [PATCH] Add --disable-cmake configure option
|
| |
+ MIME-Version: 1.0
|
| |
+ Content-Type: text/plain; charset=UTF-8
|
| |
+ Content-Transfer-Encoding: 8bit
|
| |
+
|
| |
+ This option allows to disable installing CMake rules.
|
| |
+
|
| |
+ Signed-off-by: Petr Písař <ppisar@redhat.com>
|
| |
+ ---
|
| |
+ Makefile.am | 2 ++
|
| |
+ configure.ac | 4 ++++
|
| |
+ 2 files changed, 6 insertions(+)
|
| |
+
|
| |
+ diff --git a/Makefile.am b/Makefile.am
|
| |
+ index 970b90d..7a82102 100644
|
| |
+ --- a/Makefile.am
|
| |
+ +++ b/Makefile.am
|
| |
+ @@ -3,9 +3,11 @@ SUBDIRS=dbus bus tools test doc
|
| |
+ pkgconfigdir = $(libdir)/pkgconfig
|
| |
+ pkgconfig_DATA = dbus-1.pc
|
| |
+
|
| |
+ +if ENABLE_CMAKE
|
| |
+ cmakeconfigdir = $(libdir)/cmake/DBus1
|
| |
+ cmakeconfig_DATA = cmake/DBus1Config.cmake \
|
| |
+ cmake/DBus1ConfigVersion.cmake
|
| |
+ +endif
|
| |
+
|
| |
+ DISTCLEANFILES = \
|
| |
+ ${pkgconfig_DATA} \
|
| |
+ diff --git a/configure.ac b/configure.ac
|
| |
+ index cc52b8d..5de7ecf 100644
|
| |
+ --- a/configure.ac
|
| |
+ +++ b/configure.ac
|
| |
+ @@ -210,6 +210,7 @@ AC_ARG_ENABLE(kqueue, AS_HELP_STRING([--enable-kqueue],[build with kqueue suppor
|
| |
+ AC_ARG_ENABLE(console-owner-file, AS_HELP_STRING([--enable-console-owner-file],[enable console owner file]),enable_console_owner_file=$enableval,enable_console_owner_file=auto)
|
| |
+ AC_ARG_ENABLE(launchd, AS_HELP_STRING([--enable-launchd],[build with launchd auto-launch support]),enable_launchd=$enableval,enable_launchd=auto)
|
| |
+ AC_ARG_ENABLE(systemd, AS_HELP_STRING([--enable-systemd],[build with systemd at_console support]),enable_systemd=$enableval,enable_systemd=auto)
|
| |
+ +AC_ARG_ENABLE(cmake, AS_HELP_STRING([--disable-cmake],[build without cmake support]),enable_cmake=$enableval,enable_cmake=yes)
|
| |
+
|
| |
+ AC_ARG_WITH(session-socket-dir, AS_HELP_STRING([--with-session-socket-dir=[dirname]],[Where to put sockets for the per-login-session message bus]))
|
| |
+ AC_ARG_WITH(test-socket-dir, AS_HELP_STRING([--with-test-socket-dir=[dirname]],[Where to put sockets for make check]))
|
| |
+ @@ -1207,6 +1208,9 @@ fi
|
| |
+ # can override this with ./configure SYSTEMCTL=/bin/systemctl
|
| |
+ AC_PATH_PROG([SYSTEMCTL], [systemctl], [/usr/bin/systemctl])
|
| |
+
|
| |
+ +dnl cmake
|
| |
+ +AM_CONDITIONAL(ENABLE_CMAKE, test x$enable_cmake = xyes)
|
| |
+ +
|
| |
+ # libaudit detection
|
| |
+ if test x$enable_libaudit = xno ; then
|
| |
+ have_libaudit=no;
|
| |
+ --
|
| |
+ 2.13.6
|
| |
+
|
| |
There is a problem with adding dbus-devel package into Platform
module because there is no cmake, thus dbus-devel cannot be installed
and applications built against dbus.
This patch adds a build-time condition that allows to disable
installing CMake rule files and thus remove dependency on
cmake-filesystem.
The default behavior is unchanged and the CMake files are installed.
See https://bugzilla.redhat.com/show_bug.cgi?id=1497257.