399180839187c2efb7c1ccaf720638e88bfbef85
[nivanova/samba-autobuild/.git] / source4 / heimdal_build / wscript_configure
1 conf.CHECK_TYPE('u_char', 'uint8_t')
2 conf.CHECK_TYPE('u_int32_t', 'uint32_t')
3
4 conf.CHECK_HEADERS('err.h')
5
6 conf.CHECK_HEADERS('ifaddrs.h')
7 conf.CHECK_HEADERS('''crypt.h curses.h errno.h inttypes.h netdb.h signal.h sys/bswap.h
8                       sys/file.h sys/stropts.h sys/timeb.h sys/times.h sys/uio.h sys/un.h
9                       sys/utsname.h time.h timezone.h ttyname.h netinet/in.h
10                       netinet/in6.h netinet6/in6.h libintl.h''')
11
12 conf.CHECK_HEADERS('term.h termcap.h', add_headers=False)
13
14 conf.CHECK_FUNCS('''atexit cgetent getprogname setprogname inet_aton gethostname getnameinfo
15                     putenv rcmd readv sendmsg setitimer socket strlwr strncasecmp
16                     strptime strsep strsep_copy strtok_r strupr swab umask uname unsetenv
17                     closefrom hstrerror err warn errx warnx flock getipnodebyname
18                     getipnodebyaddr freehostent writev''')
19
20 conf.CHECK_FUNCS('iruserok', checklink=True)
21
22 conf.CHECK_FUNCS('bswap16')
23 conf.CHECK_FUNCS('bswap32')
24
25 conf.CHECK_TYPE('struct winsize', define='HAVE_STRUCT_WINSIZE')
26 conf.DEFINE('HAVE_KRB_STRUCT_WINSIZE', 1)
27 conf.DEFINE('VOID_RETSIGTYPE', 1)
28
29 conf.CHECK_VARIABLE('h_errno')
30
31 # strangely enough, we need it with another define too
32 conf.CHECK_DECLS('h_errno')
33
34 conf.CHECK_DECLS('_res')
35
36 conf.CHECK_HEADERS('arpa/nameser.h dns.h')
37 conf.CHECK_FUNCS_IN('res_search res_nsearch res_ndestroy dns_search dn_expand', 'resolv')
38 conf.CHECK_VARIABLE('_res')
39 conf.CHECK_HEADERS('pty.h util.h libutil.h')
40 conf.CHECK_FUNCS_IN('openpty', 'util')
41 conf.CHECK_FUNCS_IN('gettext', 'intl')
42
43
44 conf.DEFINE('HAVE_KRB5',1)
45 conf.DEFINE('HAVE_GSSAPI',1)
46
47 conf.DEFINE('SAMBA4_INTERNAL_HEIMDAL', 1)