Turn on -Wextra -Wno-sign-compare -Wno-unused-paramter and fix issues.
[heimdal.git] / cf / roken-frag.m4
blob3a06bb4a27cfcdde9ab1ab279d007203671c760e
1 dnl $Id$
2 dnl
3 dnl some code to get roken working
4 dnl
5 dnl rk_ROKEN(subdir)
6 dnl
7 AC_DEFUN([rk_ROKEN], [
9 AC_REQUIRE([rk_CONFIG_HEADER])
11 DIR_roken=roken
12 LIB_roken='$(top_builddir)/$1/libroken.la'
13 INCLUDES_roken='-I$(top_builddir)/$1 -I$(top_srcdir)/$1'
15 dnl Checks for programs
16 AC_REQUIRE([AC_PROG_CC])
17 AC_REQUIRE([AC_PROG_AWK])
18 AC_REQUIRE([AC_OBJEXT])
19 AC_REQUIRE([AC_EXEEXT])
20 AC_REQUIRE([AC_PROG_LIBTOOL])
22 AC_REQUIRE([AC_MIPS_ABI])
24 AC_DEFINE(rk_PATH_DELIM, '/', [Path name delimiter])
26 dnl C characteristics
28 AC_REQUIRE([AC_C___ATTRIBUTE__])
29 AC_REQUIRE([AC_C_INLINE])
30 AC_REQUIRE([AC_C_CONST])
31 rk_WFLAGS(-Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs)
33 AC_REQUIRE([rk_DB])
35 dnl C types
37 AC_REQUIRE([AC_TYPE_SIZE_T])
38 AC_HAVE_TYPE([ssize_t],[#include <unistd.h>])
39 AC_REQUIRE([AC_TYPE_PID_T])
40 AC_REQUIRE([AC_TYPE_UID_T])
41 AC_HAVE_TYPE([long long])
43 AC_REQUIRE([rk_RETSIGTYPE])
45 dnl Checks for header files.
46 AC_REQUIRE([AC_HEADER_STDC])
47 AC_REQUIRE([AC_HEADER_TIME])
49 AC_CHECK_HEADERS([\
50         arpa/inet.h                             \
51         config.h                                \
52         crypt.h                                 \
53         dirent.h                                \
54         errno.h                                 \
55         err.h                                   \
56         fcntl.h                                 \
57         fnmatch.h                               \
58         grp.h                                   \
59         ifaddrs.h                               \
60         netinet/in.h                            \
61         netinet/in6.h                           \
62         netinet/in_systm.h                      \
63         netinet6/in6.h                          \
64         paths.h                                 \
65         poll.h                                  \
66         pwd.h                                   \
67         rpcsvc/ypclnt.h                         \
68         search.h                                \
69         shadow.h                                \
70         stdint.h                                \
71         sys/bswap.h                             \
72         sys/ioctl.h                             \
73         sys/mman.h                              \
74         sys/param.h                             \
75         sys/resource.h                          \
76         sys/sockio.h                            \
77         sys/stat.h                              \
78         sys/time.h                              \
79         sys/tty.h                               \
80         sys/types.h                             \
81         sys/uio.h                               \
82         sys/utsname.h                           \
83         sys/wait.h                              \
84         syslog.h                                \
85         termios.h                               \
86         winsock2.h                              \
87         ws2tcpip.h                              \
88         unistd.h                                \
89         userconf.h                              \
90         usersec.h                               \
91         util.h                                  \
94 AC_HAVE_TYPE([uintptr_t],[#ifdef HAVE_STDINT_H
95 #include <stdint.h>
96 #endif])
98 dnl Sunpro 5.2 has a vis.h which is something different.
99 AC_CHECK_HEADERS(vis.h, , , [
100 #include <vis.h>
101 #ifndef VIS_SP
102 #error invis
103 #endif])
104         
105 AC_CHECK_HEADERS(netdb.h, , , [AC_INCLUDES_DEFAULT
106 #ifdef HAVE_SYS_TYPES_H
107 #include <sys/types.h>
108 #endif
111 AC_CHECK_HEADERS(sys/socket.h, , , [AC_INCLUDES_DEFAULT
112 #ifdef HAVE_SYS_TYPES_H
113 #include <sys/types.h>
114 #endif
117 AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT
118 #ifdef HAVE_SYS_TYPES_H
119 #include <sys/types.h>
120 #endif
121 #if HAVE_SYS_SOCKET_H
122 #include <sys/socket.h>
123 #endif])
125 AC_CHECK_HEADERS(netinet6/in6_var.h, , , [AC_INCLUDES_DEFAULT
126 #ifdef HAVE_SYS_TYPES_H
127 #include <sys/types.h>
128 #endif
129 #if HAVE_SYS_SOCKET_H
130 #include <sys/socket.h>
131 #endif
132 #ifdef HAVE_NETINET6_IN6_H
133 #include <netinet6/in6.h>
134 #endif
137 AC_CHECK_HEADERS(sys/sysctl.h, , , [AC_INCLUDES_DEFAULT
138 #ifdef HAVE_SYS_PARAM_H
139 #include <sys/param.h>
140 #endif
143 AC_CHECK_HEADERS(sys/proc.h, , , [AC_INCLUDES_DEFAULT
144 #ifdef HAVE_SYS_PARAM_H
145 #include <sys/param.h>
146 #endif
149 AC_REQUIRE([CHECK_NETINET_IP_AND_TCP])
151 AM_CONDITIONAL(have_err_h, test "$ac_cv_header_err_h" = yes)
152 AM_CONDITIONAL(have_ifaddrs_h, test "$ac_cv_header_ifaddrs_h" = yes)
153 AM_CONDITIONAL(have_search_h, test "$ac_cv_header_search_h" = yes)
154 AM_CONDITIONAL(have_vis_h, test "$ac_cv_header_vis_h" = yes)
156 dnl Check for functions and libraries
158 AC_FIND_FUNC(socket, socket)
159 AC_FIND_FUNC(gethostbyname, nsl)
160 AC_FIND_FUNC(syslog, syslog)
162 AC_KRB_IPV6
164 AC_FIND_FUNC(gethostbyname2, inet6 ip6)
166 rk_RESOLV
168 AC_BROKEN_SNPRINTF
169 AC_BROKEN_VSNPRINTF
171 AC_BROKEN_GLOB
172 if test "$ac_cv_func_glob_working" != yes; then
173         AC_LIBOBJ(glob)
175 AM_CONDITIONAL(have_glob_h, test "$ac_cv_func_glob_working" = yes)
178 AC_CHECK_FUNCS([                                \
179         asnprintf                               \
180         asprintf                                \
181         atexit                                  \
182         cgetent                                 \
183         getconfattr                             \
184         getprogname                             \
185         getrlimit                               \
186         getspnam                                \
187         issetugid                               \
188         on_exit                                 \
189         poll                                    \
190         random                                  \
191         setprogname                             \
192         strsvis                                 \
193         strsvisx                                \
194         strunvis                                \
195         strvis                                  \
196         strvisx                                 \
197         svis                                    \
198         sysconf                                 \
199         sysctl                                  \
200         tdelete                                 \
201         tfind                                   \
202         twalk                                   \
203         uname                                   \
204         unvis                                   \
205         vasnprintf                              \
206         vasprintf                               \
207         vis                                     \
210 if test "$ac_cv_func_cgetent" = no; then
211         AC_LIBOBJ(getcap)
213 AM_CONDITIONAL(have_cgetent, test "$ac_cv_func_cgetent" = yes)
215 AC_REQUIRE([AC_FUNC_GETLOGIN])
217 AC_REQUIRE([AC_FUNC_MMAP])
219 AC_FIND_FUNC_NO_LIBS(getsockopt,,
220 [#ifdef HAVE_SYS_TYPES_H
221 #include <sys/types.h>
222 #endif
223 #ifdef HAVE_SYS_SOCKET_H
224 #include <sys/socket.h>
225 #endif],
226 [0,0,0,0,0])
227 AC_FIND_FUNC_NO_LIBS(setsockopt,,
228 [#ifdef HAVE_SYS_TYPES_H
229 #include <sys/types.h>
230 #endif
231 #ifdef HAVE_SYS_SOCKET_H
232 #include <sys/socket.h>
233 #endif],
234 [0,0,0,0,0])
236 AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
237 [#ifdef HAVE_NETDB_H
238 #include <netdb.h>
239 #endif],
241 AC_NEED_PROTO([
242 #ifdef HAVE_NETDB_H
243 #include <netdb.h>
244 #endif],
245 hstrerror)
247 AC_FOREACH([rk_func], [asprintf vasprintf asnprintf vasnprintf],
248         [AC_NEED_PROTO([
249         #include <stdio.h>
250         #include <string.h>],
251         rk_func)])
253 AC_FIND_FUNC_NO_LIBS(bswap16,,
254 [#ifdef HAVE_SYS_TYPES_H
255 #include <sys/types.h>
256 #endif
257 #ifdef HAVE_SYS_BSWAP_H
258 #include <sys/bswap.h>
259 #endif],0)
261 AC_FIND_FUNC_NO_LIBS(bswap32,,
262 [#ifdef HAVE_SYS_TYPES_H
263 #include <sys/types.h>
264 #endif
265 #ifdef HAVE_SYS_BSWAP_H
266 #include <sys/bswap.h>
267 #endif],0)
269 AC_FIND_FUNC_NO_LIBS(pidfile,util,
270 [#ifdef HAVE_UTIL_H
271 #include <util.h>
272 #endif],0)
274 AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
275 [#ifdef HAVE_NETDB_H
276 #include <netdb.h>
277 #endif
278 #ifdef HAVE_WS2TCPIP_H
279 #include <ws2tcpip.h>
280 #endif],[0,0,0,0])
282 AC_FIND_IF_NOT_BROKEN(getnameinfo,,
283 [#ifdef HAVE_NETDB_H
284 #include <netdb.h>
285 #endif
286 #ifdef HAVE_WS2TCPIP_H
287 #include <ws2tcpip.h>
288 #endif],[0,0,0,0,0,0,0])
290 AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
291 [#ifdef HAVE_NETDB_H
292 #include <netdb.h>
293 #endif
294 #ifdef HAVE_WS2TCPIP_H
295 #include <ws2tcpip.h>
296 #endif],[0])
298 AC_FIND_IF_NOT_BROKEN(gai_strerror,,
299 [#ifdef HAVE_NETDB_H
300 #include <netdb.h>
301 #endif
302 #ifdef HAVE_WS2TCPIP_H
303 #include <ws2tcpip.h>
304 #endif],[0])
306 dnl Darwin is weird, and in some senses not unix, launchd doesn't want
307 dnl servers to use daemon(), so its deprecated.
308 case "$host_os" in
309         darwin*)
310                 ;;
311         *)
312                 AC_DEFINE([SUPPORT_DETACH], 1,
313                     [Define if os support want to detach is daemonens.])
314                 AC_BROKEN([daemon]) ;;
315 esac
317 AC_BROKEN([                                     \
318         chown                                   \
319         copyhostent                             \
320         closefrom                               \
321         ecalloc                                 \
322         emalloc                                 \
323         erealloc                                \
324         estrdup                                 \
325         err                                     \
326         errx                                    \
327         fchown                                  \
328         flock                                   \
329         fnmatch                                 \
330         freehostent                             \
331         getcwd                                  \
332         getdtablesize                           \
333         getegid                                 \
334         geteuid                                 \
335         getgid                                  \
336         gethostname                             \
337         getifaddrs                              \
338         getipnodebyaddr                         \
339         getipnodebyname                         \
340         getopt                                  \
341         gettimeofday                            \
342         getuid                                  \
343         getusershell                            \
344         initgroups                              \
345         innetgr                                 \
346         iruserok                                \
347         localtime_r                             \
348         lstat                                   \
349         memmove                                 \
350         mkstemp                                 \
351         putenv                                  \
352         rcmd                                    \
353         readv                                   \
354         recvmsg                                 \
355         sendmsg                                 \
356         setegid                                 \
357         setenv                                  \
358         seteuid                                 \
359         strcasecmp                              \
360         strdup                                  \
361         strerror                                \
362         strftime                                \
363         strlcat                                 \
364         strlcpy                                 \
365         strlwr                                  \
366         strncasecmp                             \
367         strndup                                 \
368         strnlen                                 \
369         strptime                                \
370         strsep                                  \
371         strsep_copy                             \
372         strtok_r                                \
373         strtoll                                 \
374         strtoull                                \
375         strupr                                  \
376         swab                                    \
377         tsearch                                 \
378         timegm                                  \
379         unsetenv                                \
380         verr                                    \
381         verrx                                   \
382         vsyslog                                 \
383         vwarn                                   \
384         vwarnx                                  \
385         warn                                    \
386         warnx                                   \
387         writev                                  \
390 AM_CONDITIONAL(have_fnmatch_h,
391         test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes)
393 AC_FOREACH([rk_func], [strndup strsep strtok_r],
394         [AC_NEED_PROTO([#include <string.h>], rk_func)])
396 AC_CHECK_FUNC([strtoll],
397     [AC_DEFINE_UNQUOTED(HAVE_STRTOLL, 1,
398         [Define if you have the function strtoll.])])
400 AC_CHECK_FUNC([strtoull],
401     [AC_DEFINE_UNQUOTED(HAVE_STRTOULL, 1,
402         [Define if you have the function strtoull.])])
404 AC_FOREACH([rk_func], [strsvis strsvisx strunvis strvis strvisx svis unvis vis],
405 [AC_NEED_PROTO([#ifdef HAVE_VIS_H
406 #include <vis.h>
407 #endif], rk_func)])
409 AC_MSG_CHECKING([checking for dirfd])
410 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
411 #ifdef HAVE_DIRENT_H
412 #include <dirent.h>
413 #endif
415         [[DIR *d = 0; dirfd(d);]])],
416         [ac_rk_have_dirfd=yes], [ac_rk_have_dirfd=no])
417 if test "$ac_rk_have_dirfd" = "yes" ; then
418         AC_DEFINE_UNQUOTED(HAVE_DIRFD, 1, [have a dirfd function/macro])
420 AC_MSG_RESULT($ac_rk_have_dirfd)
422 AC_HAVE_STRUCT_FIELD(DIR, dd_fd, [#include <sys/types.h>
423 #ifdef HAVE_DIRENT_H
424 #include <dirent.h>
425 #endif])
428 AC_BROKEN2(inet_aton,
429 [#ifdef HAVE_SYS_TYPES_H
430 #include <sys/types.h>
431 #endif
432 #ifdef HAVE_SYS_SOCKET_H
433 #include <sys/socket.h>
434 #endif
435 #ifdef HAVE_NETINET_IN_H
436 #include <netinet/in.h>
437 #endif
438 #ifdef HAVE_ARPA_INET_H
439 #include <arpa/inet.h>
440 #endif],
441 [0,0])
443 AC_BROKEN2(inet_ntop,
444 [#ifdef HAVE_SYS_TYPES_H
445 #include <sys/types.h>
446 #endif
447 #ifdef HAVE_SYS_SOCKET_H
448 #include <sys/socket.h>
449 #endif
450 #ifdef HAVE_NETINET_IN_H
451 #include <netinet/in.h>
452 #endif
453 #ifdef HAVE_ARPA_INET_H
454 #include <arpa/inet.h>
455 #endif],
456 [0, 0, 0, 0])
458 AC_BROKEN2(inet_pton,
459 [#ifdef HAVE_SYS_TYPES_H
460 #include <sys/types.h>
461 #endif
462 #ifdef HAVE_SYS_SOCKET_H
463 #include <sys/socket.h>
464 #endif
465 #ifdef HAVE_NETINET_IN_H
466 #include <netinet/in.h>
467 #endif
468 #ifdef HAVE_ARPA_INET_H
469 #include <arpa/inet.h>
470 #endif],
471 [0,0,0])
474 dnl Check for sa_len in struct sockaddr, 
475 dnl needs to come before the getnameinfo test
477 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
478 #include <sys/socket.h>])
480 if test "$ac_cv_func_getaddrinfo" = "yes"; then
481   rk_BROKEN_GETADDRINFO
482   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
483         AC_LIBOBJ(getaddrinfo)
484         AC_LIBOBJ(freeaddrinfo)
485   fi
488 AC_NEED_PROTO([#include <stdlib.h>], setenv)
489 AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
490 AC_NEED_PROTO([#include <unistd.h>], gethostname)
491 AC_NEED_PROTO([#include <unistd.h>], mkstemp)
492 AC_NEED_PROTO([#include <unistd.h>], getusershell)
493 AC_NEED_PROTO([#include <unistd.h>], daemon)
494 AC_NEED_PROTO([
495 #ifdef HAVE_SYS_TYPES_H
496 #include <sys/types.h>
497 #endif
498 #ifdef HAVE_SYS_SOCKET_H
499 #include <sys/socket.h>
500 #endif
501 #ifdef HAVE_NETINET_IN_H
502 #include <netinet/in.h>
503 #endif
504 #ifdef HAVE_ARPA_INET_H
505 #include <arpa/inet.h>
506 #endif
507 #ifdef HAVE_NETDB_H
508 #include <netdb.h>
509 #endif
510 #ifdef HAVE_UNISTD_H
511 #include <unistd.h>
512 #endif],
513 iruserok)
515 AC_NEED_PROTO([
516 #ifdef HAVE_SYS_TYPES_H
517 #include <sys/types.h>
518 #endif
519 #ifdef HAVE_SYS_SOCKET_H
520 #include <sys/socket.h>
521 #endif
522 #ifdef HAVE_NETINET_IN_H
523 #include <netinet/in.h>
524 #endif
525 #ifdef HAVE_ARPA_INET_H
526 #include <arpa/inet.h>
527 #endif],
528 inet_aton)
530 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
532 AC_REQUIRE([rk_BROKEN_REALLOC])dnl
534 dnl AC_KRB_FUNC_GETCWD_BROKEN
536 dnl strerror_r is great fun, on linux it exists before sus catched up,
537 dnl so the return type is diffrent, lets check for both
539 AC_PROTO_COMPAT([
540 #include <stdio.h>
541 #include <string.h>
543 strerror_r, int strerror_r(int, char *, size_t))
545 AC_CHECK_FUNC([strerror_r],
546     [AC_DEFINE_UNQUOTED(HAVE_STRERROR_R, 1,
547         [Define if you have the function strerror_r.])])
550 dnl Checks for prototypes and declarations
553 AC_PROTO_COMPAT([
554 #ifdef HAVE_SYS_TYPES_H
555 #include <sys/types.h>
556 #endif
557 #ifdef HAVE_SYS_SOCKET_H
558 #include <sys/socket.h>
559 #endif
560 #ifdef HAVE_NETINET_IN_H
561 #include <netinet/in.h>
562 #endif
563 #ifdef HAVE_ARPA_INET_H
564 #include <arpa/inet.h>
565 #endif
566 #ifdef HAVE_NETDB_H
567 #include <netdb.h>
568 #endif
570 gethostbyname, struct hostent *gethostbyname(const char *))
572 AC_PROTO_COMPAT([
573 #ifdef HAVE_SYS_TYPES_H
574 #include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_SOCKET_H
577 #include <sys/socket.h>
578 #endif
579 #ifdef HAVE_NETINET_IN_H
580 #include <netinet/in.h>
581 #endif
582 #ifdef HAVE_ARPA_INET_H
583 #include <arpa/inet.h>
584 #endif
585 #ifdef HAVE_NETDB_H
586 #include <netdb.h>
587 #endif
589 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
591 AC_PROTO_COMPAT([
592 #ifdef HAVE_SYS_TYPES_H
593 #include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_SOCKET_H
596 #include <sys/socket.h>
597 #endif
598 #ifdef HAVE_NETINET_IN_H
599 #include <netinet/in.h>
600 #endif
601 #ifdef HAVE_ARPA_INET_H
602 #include <arpa/inet.h>
603 #endif
604 #ifdef HAVE_NETDB_H
605 #include <netdb.h>
606 #endif
608 getservbyname, struct servent *getservbyname(const char *, const char *))
610 AC_PROTO_COMPAT([
611 #ifdef HAVE_SYS_TYPES_H
612 #include <sys/types.h>
613 #endif
614 #ifdef HAVE_SYS_SOCKET_H
615 #include <sys/socket.h>
616 #endif
618 getsockname, int getsockname(int, struct sockaddr*, socklen_t*))
620 AC_PROTO_COMPAT([
621 #ifdef HAVE_SYSLOG_H
622 #include <syslog.h>
623 #endif
625 openlog, void openlog(const char *, int, int))
627 AC_NEED_PROTO([
628 #ifdef HAVE_CRYPT_H
629 #include <crypt.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 #include <unistd.h>
633 #endif
635 crypt)
637 dnl variables
639 rk_CHECK_VAR(h_errno, 
640 [#ifdef HAVE_SYS_TYPES_H
641 #include <sys/types.h>
642 #endif
643 #ifdef HAVE_NETDB_H
644 #include <netdb.h>
645 #endif
646 #ifdef HAVE_WS2TCPIP_H
647 #include <ws2tcpip.h>
648 #endif
651 rk_CHECK_VAR(h_errlist, 
652 [#ifdef HAVE_NETDB_H
653 #include <netdb.h>
654 #endif
655 #ifdef HAVE_WS2TCPIP_H
656 #include <ws2tcpip.h>
657 #endif])
659 rk_CHECK_VAR(h_nerr, 
660 [#ifdef HAVE_NETDB_H
661 #include <netdb.h>
662 #endif
663 #ifdef HAVE_WS2TCPIP_H
664 #include <ws2tcpip.h>
665 #endif])
667 rk_CHECK_VAR([__progname], 
668 [#ifdef HAVE_ERR_H
669 #include <err.h>
670 #endif])
672 AC_CHECK_DECLS([optarg, optind, opterr, optopt, environ],[],[],[
673 #include <stdlib.h>
674 #ifdef HAVE_UNISTD_H
675 #include <unistd.h>
676 #endif])
679 dnl Check for fields in struct tm
682 AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
683 AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
686 dnl or do we have a variable `timezone' ?
689 rk_CHECK_VAR(timezone,[#include <time.h>])
690 rk_CHECK_VAR(altzone,[#include <time.h>])
692 AC_HAVE_TYPE([sa_family_t],[
693 #include <sys/types.h>
694 #ifdef HAVE_SYS_SOCKET_H
695 #include <sys/socket.h>
696 #endif
697 #ifdef HAVE_WS2TCPIP_H
698 #include <ws2tcpip.h>
699 #endif])
700 AC_HAVE_TYPE([socklen_t],[
701 #include <sys/types.h>
702 #ifdef HAVE_SYS_SOCKET_H
703 #include <sys/socket.h>
704 #endif
705 #ifdef HAVE_WS2TCPIP_H
706 #include <ws2tcpip.h>
707 #endif])
708 AC_HAVE_TYPE([struct sockaddr], [
709 #include <sys/types.h>
710 #ifdef HAVE_SYS_SOCKET_H
711 #include <sys/socket.h>
712 #endif
713 #ifdef HAVE_WS2TCPIP_H
714 #include <ws2tcpip.h>
715 #endif])
716 AC_HAVE_TYPE([struct sockaddr_storage], [
717 #include <sys/types.h>
718 #ifdef HAVE_SYS_SOCKET_H
719 #include <sys/socket.h>
720 #endif
721 #ifdef HAVE_WS2TCPIP_H
722 #include <ws2tcpip.h>
723 #endif])
724 AC_HAVE_TYPE([struct addrinfo], [
725 #include <sys/types.h>
726 #ifdef HAVE_NETDB_H
727 #include <netdb.h>
728 #endif
729 #ifdef HAVE_WS2TCPIP_H
730 #include <ws2tcpip.h>
731 #endif])
732 AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
733 AC_HAVE_TYPE([struct iovec],[
734 #include <sys/types.h>
735 #include <sys/uio.h>
737 AC_HAVE_TYPE([struct msghdr],[
738 #include <sys/types.h>
739 #ifdef HAVE_SYS_SOCKET_H
740 #include <sys/socket.h>
741 #endif
742 #ifdef HAVE_WS2TCPIP_H
743 #include <ws2tcpip.h>
744 #endif])
747 dnl Check for struct winsize
750 AC_KRB_STRUCT_WINSIZE
753 dnl Check for struct spwd
756 AC_KRB_STRUCT_SPWD
759 # Check if we want samba's socket wrapper
762 samba_SOCKET_WRAPPER
764 dnl won't work with automake
765 dnl moved to AC_OUTPUT in configure.in
766 dnl AC_CONFIG_FILES($1/Makefile)
768 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
770 AC_SUBST(DIR_roken)dnl
771 AC_SUBST(LIB_roken)dnl
772 AC_SUBST(INCLUDES_roken)dnl