1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

rwrap: Fix ns_name_compress detection.

On some platforms it is a macro and not a function. So we need to
check if the macro exists.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
Andreas Schneider 2015-01-13 15:13:40 +01:00 committed by Andreas Schneider
parent cee8ba1252
commit 90de53f970

View File

@ -74,7 +74,9 @@ def configure(conf):
conf.CHECK_FUNCS_IN('res_search __res_search', 'resolv', checklibc=True)
conf.CHECK_FUNCS_IN('res_nsearch __res_nsearch', 'resolv', checklibc=True)
conf.CHECK_FUNCS_IN('ns_name_compress', 'resolv', checklibc=True)
conf.CHECK_DECLS('ns_name_compress', headers='sys/types.h arpa/nameser.h')
if (conf.CONFIG_SET("HAVE_DECL_NS_NAME_COMPRESS")):
conf.DEFINE("HAVE_NS_NAME_COMPRESS", 1)
# Create full path to resolv_wrapper
srcdir = os.path.realpath(conf.srcdir)