lib/kadm5: _kadm5_c_get_cred_cache free 'client'
[heimdal.git] / cf / roken-frag.m4
blob2c2ef834e7a35bb02a9d36d26993d73959be0987
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([LT_INIT])
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 -Wshadow)
33 dnl -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
34 dnl -Wcast-qual -Wswitch -Wformat=2 -Wwrite-strings
36 AC_REQUIRE([rk_DB])
38 dnl C types
40 AC_REQUIRE([AC_TYPE_SIZE_T])
41 AC_HAVE_TYPE([ssize_t],[#include <unistd.h>])
42 AC_REQUIRE([AC_TYPE_PID_T])
43 AC_REQUIRE([AC_TYPE_UID_T])
44 AC_HAVE_TYPE([long long])
46 AC_REQUIRE([rk_RETSIGTYPE])
48 dnl Checks for header files.
49 AC_REQUIRE([AC_HEADER_STDC])
50 AC_REQUIRE([AC_HEADER_TIME])
52 AC_CHECK_HEADERS([\
53         auxv.h                                  \
54         arpa/inet.h                             \
55         config.h                                \
56         crypt.h                                 \
57         dirent.h                                \
58         errno.h                                 \
59         err.h                                   \
60         fcntl.h                                 \
61         fnmatch.h                               \
62         grp.h                                   \
63         ifaddrs.h                               \
64         netinet/in.h                            \
65         netinet/in6.h                           \
66         netinet/in_systm.h                      \
67         netinet6/in6.h                          \
68         paths.h                                 \
69         poll.h                                  \
70         pwd.h                                   \
71         rpcsvc/ypclnt.h                         \
72         search.h                                \
73         shadow.h                                \
74         stdint.h                                \
75         sys/auxv.h                              \
76         sys/bswap.h                             \
77         sys/errno.h                             \
78         sys/exec_elf.h                          \
79         sys/ioctl.h                             \
80         sys/mman.h                              \
81         sys/param.h                             \
82         sys/resource.h                          \
83         sys/sockio.h                            \
84         sys/stat.h                              \
85         sys/time.h                              \
86         sys/tty.h                               \
87         sys/types.h                             \
88         sys/uio.h                               \
89         sys/utsname.h                           \
90         sys/wait.h                              \
91         syslog.h                                \
92         termios.h                               \
93         winsock2.h                              \
94         ws2tcpip.h                              \
95         unistd.h                                \
96         userconf.h                              \
97         usersec.h                               \
98         util.h                                  \
101 AC_HAVE_TYPE([auxv_t],[#ifdef HAVE_AUXV_H
102 #include <auxv.h>
103 #endif
104 #ifdef HAVE_SYS_AUXV_H
105 #include <sys/auxv.h>
106 #endif
109 AC_HAVE_TYPE([uintptr_t],[#ifdef HAVE_STDINT_H
110 #include <stdint.h>
111 #endif])
113 dnl Sunpro 5.2 has a vis.h which is something different.
114 AC_CHECK_HEADERS(vis.h, , , [
115 #include <vis.h>
116 #ifndef VIS_SP
117 #error invis
118 #endif])
119         
120 AC_CHECK_HEADERS(netdb.h, , , [AC_INCLUDES_DEFAULT
121 #ifdef HAVE_SYS_TYPES_H
122 #include <sys/types.h>
123 #endif
126 AC_CHECK_HEADERS(sys/socket.h, , , [AC_INCLUDES_DEFAULT
127 #ifdef HAVE_SYS_TYPES_H
128 #include <sys/types.h>
129 #endif
132 AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT
133 #ifdef HAVE_SYS_TYPES_H
134 #include <sys/types.h>
135 #endif
136 #if HAVE_SYS_SOCKET_H
137 #include <sys/socket.h>
138 #endif])
140 AC_CHECK_HEADERS(netinet6/in6_var.h, , , [AC_INCLUDES_DEFAULT
141 #ifdef HAVE_SYS_TYPES_H
142 #include <sys/types.h>
143 #endif
144 #if HAVE_SYS_SOCKET_H
145 #include <sys/socket.h>
146 #endif
147 #ifdef HAVE_NETINET6_IN6_H
148 #include <netinet6/in6.h>
149 #endif
152 AC_CHECK_HEADERS(sys/sysctl.h, , , [AC_INCLUDES_DEFAULT
153 #ifdef HAVE_SYS_PARAM_H
154 #include <sys/param.h>
155 #endif
158 AC_CHECK_HEADERS(sys/proc.h, , , [AC_INCLUDES_DEFAULT
159 #ifdef HAVE_SYS_PARAM_H
160 #include <sys/param.h>
161 #endif
164 AC_REQUIRE([CHECK_NETINET_IP_AND_TCP])
166 AM_CONDITIONAL(have_err_h, test "$ac_cv_header_err_h" = yes)
167 AM_CONDITIONAL(have_ifaddrs_h, test "$ac_cv_header_ifaddrs_h" = yes)
168 AM_CONDITIONAL(have_search_h, test "$ac_cv_header_search_h" = yes)
169 AM_CONDITIONAL(have_vis_h, test "$ac_cv_header_vis_h" = yes)
171 dnl Check for functions and libraries
173 AC_KRB_IPV6
175 AC_FIND_FUNC(gethostbyname2, inet6 ip6)
177 rk_RESOLV
179 AC_BROKEN_SNPRINTF
180 AC_BROKEN_VSNPRINTF
182 AC_CHECK_FUNCS([                                \
183         asnprintf                               \
184         asprintf                                \
185         atexit                                  \
186         getauxval                               \
187         getconfattr                             \
188         getprogname                             \
189         getrlimit                               \
190         issetugid                               \
191         memmem                                  \
192         mkdtemp                                 \
193         mkostemp                                \
194         on_exit                                 \
195         poll                                    \
196         random                                  \
197         secure_getenv                           \
198         setprogname                             \
199         strsvis                                 \
200         strsvisx                                \
201         strunvis                                \
202         strvis                                  \
203         strvisx                                 \
204         svis                                    \
205         sysconf                                 \
206         sysctl                                  \
207         tdelete                                 \
208         tfind                                   \
209         twalk                                   \
210         uname                                   \
211         unlinkat                                \
212         unvis                                   \
213         vasnprintf                              \
214         vasprintf                               \
215         vis                                     \
218 AC_REQUIRE([AC_FUNC_GETLOGIN])
220 AC_REQUIRE([AC_FUNC_MMAP])
222 AC_FIND_FUNC_NO_LIBS(getsockopt,,
223 [#ifdef HAVE_SYS_TYPES_H
224 #include <sys/types.h>
225 #endif
226 #ifdef HAVE_SYS_SOCKET_H
227 #include <sys/socket.h>
228 #endif],
229 [0,0,0,0,0])
230 AC_FIND_FUNC_NO_LIBS(setsockopt,,
231 [#ifdef HAVE_SYS_TYPES_H
232 #include <sys/types.h>
233 #endif
234 #ifdef HAVE_SYS_SOCKET_H
235 #include <sys/socket.h>
236 #endif],
237 [0,0,0,0,0])
239 AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
240 [#ifdef HAVE_NETDB_H
241 #include <netdb.h>
242 #endif],
244 AC_NEED_PROTO([
245 #ifdef HAVE_NETDB_H
246 #include <netdb.h>
247 #endif],
248 hstrerror)
250 AC_FOREACH([rk_func], [asprintf vasprintf asnprintf vasnprintf],
251         [AC_NEED_PROTO([
252         #include <stdio.h>
253         #include <string.h>],
254         rk_func)])
256 AC_FIND_FUNC_NO_LIBS(bswap16,,
257 [#ifdef HAVE_SYS_TYPES_H
258 #include <sys/types.h>
259 #endif
260 #ifdef HAVE_SYS_BSWAP_H
261 #include <sys/bswap.h>
262 #endif],0)
264 AC_FIND_FUNC_NO_LIBS(bswap32,,
265 [#ifdef HAVE_SYS_TYPES_H
266 #include <sys/types.h>
267 #endif
268 #ifdef HAVE_SYS_BSWAP_H
269 #include <sys/bswap.h>
270 #endif],0)
272 AC_FIND_FUNC_NO_LIBS(bswap64,,
273 [#ifdef HAVE_SYS_TYPES_H
274 #include <sys/types.h>
275 #endif
276 #ifdef HAVE_SYS_BSWAP_H
277 #include <sys/bswap.h>
278 #endif],0)
280 AC_FIND_FUNC_NO_LIBS(pidfile,util,
281 [#ifdef HAVE_UTIL_H
282 #include <util.h>
283 #endif],0)
285 AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
286 [#ifdef HAVE_NETDB_H
287 #include <netdb.h>
288 #endif
289 #ifdef HAVE_WS2TCPIP_H
290 #include <ws2tcpip.h>
291 #endif],[0,0,0,0])
293 AC_FIND_IF_NOT_BROKEN(getnameinfo,,
294 [#ifdef HAVE_NETDB_H
295 #include <netdb.h>
296 #endif
297 #ifdef HAVE_WS2TCPIP_H
298 #include <ws2tcpip.h>
299 #endif],[0,0,0,0,0,0,0])
301 AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
302 [#ifdef HAVE_NETDB_H
303 #include <netdb.h>
304 #endif
305 #ifdef HAVE_WS2TCPIP_H
306 #include <ws2tcpip.h>
307 #endif],[0])
309 AC_FIND_IF_NOT_BROKEN(gai_strerror,,
310 [#ifdef HAVE_NETDB_H
311 #include <netdb.h>
312 #endif
313 #ifdef HAVE_WS2TCPIP_H
314 #include <ws2tcpip.h>
315 #endif],[0])
317 AC_CHECK_LIB(util, emalloc)
319 case "$host_os" in
320         darwin*)
321                 ;;
322         *)
323                 AC_BROKEN([daemon]) ;;
324 esac
326 AC_BROKEN([                                     \
327         chown                                   \
328         copyhostent                             \
329         closefrom                               \
330         ecalloc                                 \
331         emalloc                                 \
332         erealloc                                \
333         estrdup                                 \
334         err                                     \
335         errx                                    \
336         fchown                                  \
337         flock                                   \
338         fnmatch                                 \
339         freehostent                             \
340         getcwd                                  \
341         getdtablesize                           \
342         getegid                                 \
343         geteuid                                 \
344         getgid                                  \
345         gethostname                             \
346         getifaddrs                              \
347         getipnodebyaddr                         \
348         getipnodebyname                         \
349         getopt                                  \
350         gettimeofday                            \
351         getuid                                  \
352         getusershell                            \
353         initgroups                              \
354         innetgr                                 \
355         localtime_r                             \
356         lstat                                   \
357         memmove                                 \
358         memset_s                                \
359         mergesort                               \
360         mergesort_r                             \
361         mkstemp                                 \
362         putenv                                  \
363         rcmd                                    \
364         readv                                   \
365         recvmsg                                 \
366         sendmsg                                 \
367         setegid                                 \
368         setenv                                  \
369         seteuid                                 \
370         strcasecmp                              \
371         strdup                                  \
372         strerror                                \
373         strftime                                \
374         strlcat                                 \
375         strlcpy                                 \
376         strlwr                                  \
377         strncasecmp                             \
378         strndup                                 \
379         strnlen                                 \
380         strptime                                \
381         strsep                                  \
382         strsep_copy                             \
383         strtok_r                                \
384         strtoll                                 \
385         strtoull                                \
386         strupr                                  \
387         swab                                    \
388         tsearch                                 \
389         timegm                                  \
390         unsetenv                                \
391         verr                                    \
392         verrx                                   \
393         vsyslog                                 \
394         vwarn                                   \
395         vwarnx                                  \
396         warn                                    \
397         warnx                                   \
398         writev                                  \
401 AM_CONDITIONAL(have_fnmatch_h,
402         test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes)
404 AC_FOREACH([rk_func], [strndup strsep strtok_r],
405         [AC_NEED_PROTO([#include <string.h>], rk_func)])
407 AC_CHECK_FUNC([strtoll],
408     [AC_DEFINE_UNQUOTED(HAVE_STRTOLL, 1,
409         [Define if you have the function strtoll.])])
411 AC_CHECK_FUNC([strtoull],
412     [AC_DEFINE_UNQUOTED(HAVE_STRTOULL, 1,
413         [Define if you have the function strtoull.])])
415 AC_FOREACH([rk_func], [strsvis strsvisx strunvis strvis strvisx svis unvis vis],
416 [AC_NEED_PROTO([#ifdef HAVE_VIS_H
417 #include <vis.h>
418 #endif], rk_func)])
420 AC_MSG_CHECKING([checking for dirfd])
421 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
422 #ifdef HAVE_DIRENT_H
423 #include <dirent.h>
424 #endif
426         [[DIR *d = 0; dirfd(d);]])],
427         [ac_rk_have_dirfd=yes], [ac_rk_have_dirfd=no])
428 if test "$ac_rk_have_dirfd" = "yes" ; then
429         AC_DEFINE_UNQUOTED(HAVE_DIRFD, 1, [have a dirfd function/macro])
431 AC_MSG_RESULT($ac_rk_have_dirfd)
433 AC_HAVE_STRUCT_FIELD(DIR, dd_fd, [#include <sys/types.h>
434 #ifdef HAVE_DIRENT_H
435 #include <dirent.h>
436 #endif])
438 AC_HAVE_STRUCT_FIELD(DIR, d_fd, [#include <sys/types.h>
439 #ifdef HAVE_DIRENT_H
440 #include <dirent.h>
441 #endif])
443 AC_BROKEN2(inet_aton,
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])
458 AC_BROKEN2(inet_ntop,
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, 0])
473 AC_BROKEN2(inet_pton,
474 [#ifdef HAVE_SYS_TYPES_H
475 #include <sys/types.h>
476 #endif
477 #ifdef HAVE_SYS_SOCKET_H
478 #include <sys/socket.h>
479 #endif
480 #ifdef HAVE_NETINET_IN_H
481 #include <netinet/in.h>
482 #endif
483 #ifdef HAVE_ARPA_INET_H
484 #include <arpa/inet.h>
485 #endif],
486 [0,0,0])
489 dnl Check for sa_len in struct sockaddr, 
490 dnl needs to come before the getnameinfo test
492 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
493 #include <sys/socket.h>])
495 if test "$ac_cv_func_getaddrinfo" = "yes"; then
496   rk_BROKEN_GETADDRINFO
497   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
498         AC_LIBOBJ(getaddrinfo)
499         AC_LIBOBJ(freeaddrinfo)
500   fi
503 AC_NEED_PROTO([#include <stdlib.h>], setenv)
504 AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
505 AC_NEED_PROTO([#include <unistd.h>], gethostname)
506 AC_NEED_PROTO([#include <unistd.h>], mkstemp)
507 AC_NEED_PROTO([#include <unistd.h>], getusershell)
508 AC_NEED_PROTO([#include <unistd.h>], daemon)
510 AC_NEED_PROTO([
511 #ifdef HAVE_SYS_TYPES_H
512 #include <sys/types.h>
513 #endif
514 #ifdef HAVE_SYS_SOCKET_H
515 #include <sys/socket.h>
516 #endif
517 #ifdef HAVE_NETINET_IN_H
518 #include <netinet/in.h>
519 #endif
520 #ifdef HAVE_ARPA_INET_H
521 #include <arpa/inet.h>
522 #endif],
523 inet_aton)
525 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
527 AC_REQUIRE([rk_BROKEN_REALLOC])dnl
529 dnl strerror_r is great fun, on linux it exists before sus catched up,
530 dnl so the return type is diffrent, lets check for both
532 AC_PROTO_COMPAT([
533 #include <stdio.h>
534 #include <string.h>
536 strerror_r, int strerror_r(int, char *, size_t))
538 AC_CHECK_FUNC([strerror_r],
539     [AC_DEFINE_UNQUOTED(HAVE_STRERROR_R, 1,
540         [Define if you have the function strerror_r.])])
543 dnl Checks for prototypes and declarations
546 AC_PROTO_COMPAT([
547 #ifdef HAVE_SYS_TYPES_H
548 #include <sys/types.h>
549 #endif
550 #ifdef HAVE_SYS_SOCKET_H
551 #include <sys/socket.h>
552 #endif
553 #ifdef HAVE_NETINET_IN_H
554 #include <netinet/in.h>
555 #endif
556 #ifdef HAVE_ARPA_INET_H
557 #include <arpa/inet.h>
558 #endif
559 #ifdef HAVE_NETDB_H
560 #include <netdb.h>
561 #endif
563 gethostbyname, struct hostent *gethostbyname(const char *))
565 AC_PROTO_COMPAT([
566 #ifdef HAVE_SYS_TYPES_H
567 #include <sys/types.h>
568 #endif
569 #ifdef HAVE_SYS_SOCKET_H
570 #include <sys/socket.h>
571 #endif
572 #ifdef HAVE_NETINET_IN_H
573 #include <netinet/in.h>
574 #endif
575 #ifdef HAVE_ARPA_INET_H
576 #include <arpa/inet.h>
577 #endif
578 #ifdef HAVE_NETDB_H
579 #include <netdb.h>
580 #endif
582 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
584 AC_PROTO_COMPAT([
585 #ifdef HAVE_SYS_TYPES_H
586 #include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_SOCKET_H
589 #include <sys/socket.h>
590 #endif
591 #ifdef HAVE_NETINET_IN_H
592 #include <netinet/in.h>
593 #endif
594 #ifdef HAVE_ARPA_INET_H
595 #include <arpa/inet.h>
596 #endif
597 #ifdef HAVE_NETDB_H
598 #include <netdb.h>
599 #endif
601 getservbyname, struct servent *getservbyname(const char *, const char *))
603 AC_PROTO_COMPAT([
604 #ifdef HAVE_SYS_TYPES_H
605 #include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_SOCKET_H
608 #include <sys/socket.h>
609 #endif
611 getsockname, int getsockname(int, struct sockaddr*, socklen_t*))
613 AC_PROTO_COMPAT([
614 #ifdef HAVE_SYSLOG_H
615 #include <syslog.h>
616 #endif
618 openlog, void openlog(const char *, int, int))
620 AC_NEED_PROTO([
621 #ifdef HAVE_CRYPT_H
622 #include <crypt.h>
623 #endif
624 #ifdef HAVE_UNISTD_H
625 #include <unistd.h>
626 #endif
628 crypt)
630 dnl variables
632 rk_CHECK_VAR(h_errno, 
633 [#ifdef HAVE_SYS_TYPES_H
634 #include <sys/types.h>
635 #endif
636 #ifdef HAVE_NETDB_H
637 #include <netdb.h>
638 #endif
639 #ifdef HAVE_WS2TCPIP_H
640 #include <ws2tcpip.h>
641 #endif
644 rk_CHECK_VAR(h_errlist, 
645 [#ifdef HAVE_NETDB_H
646 #include <netdb.h>
647 #endif
648 #ifdef HAVE_WS2TCPIP_H
649 #include <ws2tcpip.h>
650 #endif])
652 rk_CHECK_VAR(h_nerr, 
653 [#ifdef HAVE_NETDB_H
654 #include <netdb.h>
655 #endif
656 #ifdef HAVE_WS2TCPIP_H
657 #include <ws2tcpip.h>
658 #endif])
660 rk_CHECK_VAR([__progname], 
661 [#ifdef HAVE_ERR_H
662 #include <err.h>
663 #endif])
665 AC_CHECK_DECLS([optarg, optind, opterr, optopt, environ],[],[],[
666 #include <stdlib.h>
667 #ifdef HAVE_UNISTD_H
668 #include <unistd.h>
669 #endif])
672 dnl Check for fields in struct tm
675 AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
676 AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
679 dnl or do we have a variable `timezone' ?
682 rk_CHECK_VAR(timezone,[#include <time.h>])
683 rk_CHECK_VAR(altzone,[#include <time.h>])
685 AC_HAVE_TYPE([sa_family_t],[
686 #include <sys/types.h>
687 #ifdef HAVE_SYS_SOCKET_H
688 #include <sys/socket.h>
689 #endif
690 #ifdef HAVE_WS2TCPIP_H
691 #include <ws2tcpip.h>
692 #endif])
693 AC_HAVE_TYPE([socklen_t],[
694 #include <sys/types.h>
695 #ifdef HAVE_SYS_SOCKET_H
696 #include <sys/socket.h>
697 #endif
698 #ifdef HAVE_WS2TCPIP_H
699 #include <ws2tcpip.h>
700 #endif])
701 AC_HAVE_TYPE([struct sockaddr], [
702 #include <sys/types.h>
703 #ifdef HAVE_SYS_SOCKET_H
704 #include <sys/socket.h>
705 #endif
706 #ifdef HAVE_WS2TCPIP_H
707 #include <ws2tcpip.h>
708 #endif])
709 AC_HAVE_TYPE([struct sockaddr_storage], [
710 #include <sys/types.h>
711 #ifdef HAVE_SYS_SOCKET_H
712 #include <sys/socket.h>
713 #endif
714 #ifdef HAVE_WS2TCPIP_H
715 #include <ws2tcpip.h>
716 #endif])
717 AC_HAVE_TYPE([struct addrinfo], [
718 #include <sys/types.h>
719 #ifdef HAVE_NETDB_H
720 #include <netdb.h>
721 #endif
722 #ifdef HAVE_WS2TCPIP_H
723 #include <ws2tcpip.h>
724 #endif])
725 AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
726 AC_HAVE_TYPE([struct iovec],[
727 #include <sys/types.h>
728 #include <sys/uio.h>
730 AC_HAVE_TYPE([struct msghdr],[
731 #include <sys/types.h>
732 #ifdef HAVE_SYS_SOCKET_H
733 #include <sys/socket.h>
734 #endif
735 #ifdef HAVE_WS2TCPIP_H
736 #include <ws2tcpip.h>
737 #endif])
740 dnl Check for struct winsize
743 AC_KRB_STRUCT_WINSIZE
746 dnl Check for struct spwd
749 AC_KRB_STRUCT_SPWD
752 # Check if we want samba's socket wrapper
755 samba_SOCKET_WRAPPER
757 dnl won't work with automake
758 dnl moved to AC_OUTPUT in configure.in
759 dnl AC_CONFIG_FILES($1/Makefile)
761 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
763 AC_SUBST(DIR_roken)dnl
764 AC_SUBST(LIB_roken)dnl
765 AC_SUBST(INCLUDES_roken)dnl