diff options
author | Alexander Bokovoy <ab@samba.org> | 2014-06-05 08:15:13 +0300 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-06-05 17:16:22 +0200 |
commit | 88559063b54585677063394b5802f0c85ac7c22b (patch) | |
tree | c9ec91fc597e31c993f2d0fc5d32787a668db856 | |
parent | 184f89d4cdc5cadb6d9745ab1b49edea93e856e7 (diff) | |
download | samba-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-- | wscript | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |