1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3/wscript, s3/wscript_build: add libarchive dependency.

- add header and lib checks.

Signed-off-by: Aurélien Aptel <aurelien.aptel@gmail.com>
[ddiss@samba.org: rebase against makefile cleanup]
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Aurélien Aptel 2013-07-09 17:57:37 +02:00 committed by Andreas Schneider
parent 50d069637d
commit 0babaf7e9d
2 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,10 @@ def configure(conf):
if sys.platform != 'openbsd5':
conf.ADD_LDFLAGS("-Wl,--export-dynamic", testflags=True)
# libarchive in smbclient
conf.CHECK_HEADERS('archive.h')
conf.CHECK_LIB('libarchive')
conf.CHECK_HEADERS('execinfo.h libexc.h libunwind.h netdb.h')
conf.CHECK_HEADERS('linux/falloc.h')

View File

@ -995,6 +995,7 @@ bld.SAMBA3_BINARY('client/smbclient',
source='''client/client.c
client/clitar.c
client/dnsbrowse.c''',
ldflags='-larchive',
deps='''
talloc
popt_samba3