Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From 2b2450f6b7197bff4637c0283e8784500471d083 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 14 Dec 2015 00:50:01 +0000 |
| 4 | Subject: [PATCH 11/36] nss-mymachines: Build conditionally when |
| 5 | HAVE_MYHOSTNAME is set |
| 6 | |
| 7 | Fixes build failures when building with --disable-myhostname |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | Makefile.am | 2 ++ |
| 14 | 1 file changed, 2 insertions(+) |
| 15 | |
| 16 | diff --git a/Makefile.am b/Makefile.am |
| 17 | index 82b6553..b3f3343 100644 |
| 18 | --- a/Makefile.am |
| 19 | +++ b/Makefile.am |
| 20 | @@ -4876,6 +4876,7 @@ SYSTEM_UNIT_ALIASES += \ |
| 21 | BUSNAMES_TARGET_WANTS += \ |
| 22 | org.freedesktop.machine1.busname |
| 23 | |
| 24 | +if HAVE_MYHOSTNAME |
| 25 | libnss_mymachines_la_SOURCES = \ |
| 26 | src/nss-mymachines/nss-mymachines.sym \ |
| 27 | src/nss-mymachines/nss-mymachines.c |
| 28 | @@ -4896,6 +4897,7 @@ lib_LTLIBRARIES += \ |
| 29 | libnss_mymachines.la |
| 30 | |
| 31 | endif |
| 32 | +endif |
| 33 | |
| 34 | polkitpolicy_in_files += \ |
| 35 | src/machine/org.freedesktop.machine1.policy.in |
| 36 | -- |
| 37 | 1.8.3.1 |
| 38 | |