summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2014-06-05 08:15:13 +0300
committerVolker Lendecke <vl@samba.org>2014-06-05 17:16:22 +0200
commit88559063b54585677063394b5802f0c85ac7c22b (patch)
treec9ec91fc597e31c993f2d0fc5d32787a668db856
parent184f89d4cdc5cadb6d9745ab1b49edea93e856e7 (diff)
downloadsamba-88559063b54585677063394b5802f0c85ac7c22b.tar.gz
WAF: use libsystemd-daemon only if linking actually succeeds
Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Jun 5 17:16:22 CEST 2014 on sn-devel-104
-rw-r--r--wscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript b/wscript
index 58af180d887..cf4e93b1c07 100644
--- a/wscript
+++ b/wscript
@@ -204,7 +204,8 @@ def configure(conf):
conf.CHECK_HEADERS('systemd/sd-daemon.h', lib='systemd-daemon')
conf.CHECK_LIB('systemd-daemon', shlib=True)
- if conf.CONFIG_SET('HAVE_SYSTEMD_SD_DAEMON_H'):
+ if (conf.CONFIG_SET('HAVE_SYSTEMD_SD_DAEMON_H') and
+ conf.CONFIG_SET('HAVE_LIBSYSTEMD_DAEMON')):
conf.DEFINE('HAVE_SYSTEMD', '1')
conf.env['ENABLE_SYSTEMD'] = True
else: