Merge pull request #9 from lha/master
[heimdal.git] / cf / roken-frag.m4
blob7622cabc665b6a2cc5bcddde53ec94571dd6e2ad
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 -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         initstate                               \
188         issetugid                               \
189         on_exit                                 \
190         poll                                    \
191         random                                  \
192         setprogname                             \
193         setstate                                \
194         strsvis                                 \
195         strsvisx                                \
196         strunvis                                \
197         strvis                                  \
198         strvisx                                 \
199         svis                                    \
200         sysconf                                 \
201         sysctl                                  \
202         tdelete                                 \
203         tfind                                   \
204         twalk                                   \
205         uname                                   \
206         unvis                                   \
207         vasnprintf                              \
208         vasprintf                               \
209         vis                                     \
212 if test "$ac_cv_func_cgetent" = no; then
213         AC_LIBOBJ(getcap)
215 AM_CONDITIONAL(have_cgetent, test "$ac_cv_func_cgetent" = yes)
217 AC_REQUIRE([AC_FUNC_GETLOGIN])
219 AC_REQUIRE([AC_FUNC_MMAP])
221 AC_FIND_FUNC_NO_LIBS(getsockopt,,
222 [#ifdef HAVE_SYS_TYPES_H
223 #include <sys/types.h>
224 #endif
225 #ifdef HAVE_SYS_SOCKET_H
226 #include <sys/socket.h>
227 #endif],
228 [0,0,0,0,0])
229 AC_FIND_FUNC_NO_LIBS(setsockopt,,
230 [#ifdef HAVE_SYS_TYPES_H
231 #include <sys/types.h>
232 #endif
233 #ifdef HAVE_SYS_SOCKET_H
234 #include <sys/socket.h>
235 #endif],
236 [0,0,0,0,0])
238 AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
239 [#ifdef HAVE_NETDB_H
240 #include <netdb.h>
241 #endif],
243 AC_NEED_PROTO([
244 #ifdef HAVE_NETDB_H
245 #include <netdb.h>
246 #endif],
247 hstrerror)
249 AC_FOREACH([rk_func], [asprintf vasprintf asnprintf vasnprintf],
250         [AC_NEED_PROTO([
251         #include <stdio.h>
252         #include <string.h>],
253         rk_func)])
255 AC_FIND_FUNC_NO_LIBS(bswap16,,
256 [#ifdef HAVE_SYS_TYPES_H
257 #include <sys/types.h>
258 #endif
259 #ifdef HAVE_SYS_BSWAP_H
260 #include <sys/bswap.h>
261 #endif],0)
263 AC_FIND_FUNC_NO_LIBS(bswap32,,
264 [#ifdef HAVE_SYS_TYPES_H
265 #include <sys/types.h>
266 #endif
267 #ifdef HAVE_SYS_BSWAP_H
268 #include <sys/bswap.h>
269 #endif],0)
271 AC_FIND_FUNC_NO_LIBS(pidfile,util,
272 [#ifdef HAVE_UTIL_H
273 #include <util.h>
274 #endif],0)
276 AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
277 [#ifdef HAVE_NETDB_H
278 #include <netdb.h>
279 #endif
280 #ifdef HAVE_WS2TCPIP_H
281 #include <ws2tcpip.h>
282 #endif],[0,0,0,0])
284 AC_FIND_IF_NOT_BROKEN(getnameinfo,,
285 [#ifdef HAVE_NETDB_H
286 #include <netdb.h>
287 #endif
288 #ifdef HAVE_WS2TCPIP_H
289 #include <ws2tcpip.h>
290 #endif],[0,0,0,0,0,0,0])
292 AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
293 [#ifdef HAVE_NETDB_H
294 #include <netdb.h>
295 #endif
296 #ifdef HAVE_WS2TCPIP_H
297 #include <ws2tcpip.h>
298 #endif],[0])
300 AC_FIND_IF_NOT_BROKEN(gai_strerror,,
301 [#ifdef HAVE_NETDB_H
302 #include <netdb.h>
303 #endif
304 #ifdef HAVE_WS2TCPIP_H
305 #include <ws2tcpip.h>
306 #endif],[0])
308 dnl Darwin is weird, and in some senses not unix, launchd doesn't want
309 dnl servers to use daemon(), so its deprecated.
310 case "$host_os" in
311         darwin*)
312                 ;;
313         *)
314                 AC_DEFINE([SUPPORT_DETACH], 1,
315                     [Define if os support want to detach is daemonens.])
316                 AC_BROKEN([daemon]) ;;
317 esac
319 AC_BROKEN([                                     \
320         chown                                   \
321         copyhostent                             \
322         closefrom                               \
323         ecalloc                                 \
324         emalloc                                 \
325         erealloc                                \
326         estrdup                                 \
327         err                                     \
328         errx                                    \
329         fchown                                  \
330         flock                                   \
331         fnmatch                                 \
332         freehostent                             \
333         getcwd                                  \
334         getdtablesize                           \
335         getegid                                 \
336         geteuid                                 \
337         getgid                                  \
338         gethostname                             \
339         getifaddrs                              \
340         getipnodebyaddr                         \
341         getipnodebyname                         \
342         getopt                                  \
343         gettimeofday                            \
344         getuid                                  \
345         getusershell                            \
346         initgroups                              \
347         innetgr                                 \
348         iruserok                                \
349         localtime_r                             \
350         lstat                                   \
351         memmove                                 \
352         mkstemp                                 \
353         putenv                                  \
354         rcmd                                    \
355         readv                                   \
356         recvmsg                                 \
357         sendmsg                                 \
358         setegid                                 \
359         setenv                                  \
360         seteuid                                 \
361         strcasecmp                              \
362         strdup                                  \
363         strerror                                \
364         strftime                                \
365         strlcat                                 \
366         strlcpy                                 \
367         strlwr                                  \
368         strncasecmp                             \
369         strndup                                 \
370         strnlen                                 \
371         strptime                                \
372         strsep                                  \
373         strsep_copy                             \
374         strtok_r                                \
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_FOREACH([rk_func], [strsvis strsvisx strunvis strvis strvisx svis unvis vis],
397 [AC_NEED_PROTO([#ifdef HAVE_VIS_H
398 #include <vis.h>
399 #endif], rk_func)])
401 AC_MSG_CHECKING([checking for dirfd])
402 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
403 #ifdef HAVE_DIRENT_H
404 #include <dirent.h>
405 #endif
407         [[DIR *d = 0; dirfd(d);]])],
408         [ac_rk_have_dirfd=yes], [ac_rk_have_dirfd=no])
409 if test "$ac_rk_have_dirfd" = "yes" ; then
410         AC_DEFINE_UNQUOTED(HAVE_DIRFD, 1, [have a dirfd function/macro])
412 AC_MSG_RESULT($ac_rk_have_dirfd)
414 AC_HAVE_STRUCT_FIELD(DIR, dd_fd, [#include <sys/types.h>
415 #ifdef HAVE_DIRENT_H
416 #include <dirent.h>
417 #endif])
420 AC_BROKEN2(inet_aton,
421 [#ifdef HAVE_SYS_TYPES_H
422 #include <sys/types.h>
423 #endif
424 #ifdef HAVE_SYS_SOCKET_H
425 #include <sys/socket.h>
426 #endif
427 #ifdef HAVE_NETINET_IN_H
428 #include <netinet/in.h>
429 #endif
430 #ifdef HAVE_ARPA_INET_H
431 #include <arpa/inet.h>
432 #endif],
433 [0,0])
435 AC_BROKEN2(inet_ntop,
436 [#ifdef HAVE_SYS_TYPES_H
437 #include <sys/types.h>
438 #endif
439 #ifdef HAVE_SYS_SOCKET_H
440 #include <sys/socket.h>
441 #endif
442 #ifdef HAVE_NETINET_IN_H
443 #include <netinet/in.h>
444 #endif
445 #ifdef HAVE_ARPA_INET_H
446 #include <arpa/inet.h>
447 #endif],
448 [0, 0, 0, 0])
450 AC_BROKEN2(inet_pton,
451 [#ifdef HAVE_SYS_TYPES_H
452 #include <sys/types.h>
453 #endif
454 #ifdef HAVE_SYS_SOCKET_H
455 #include <sys/socket.h>
456 #endif
457 #ifdef HAVE_NETINET_IN_H
458 #include <netinet/in.h>
459 #endif
460 #ifdef HAVE_ARPA_INET_H
461 #include <arpa/inet.h>
462 #endif],
463 [0,0,0])
466 dnl Check for sa_len in struct sockaddr, 
467 dnl needs to come before the getnameinfo test
469 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
470 #include <sys/socket.h>])
472 if test "$ac_cv_func_getaddrinfo" = "yes"; then
473   rk_BROKEN_GETADDRINFO
474   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
475         AC_LIBOBJ(getaddrinfo)
476         AC_LIBOBJ(freeaddrinfo)
477   fi
480 AC_NEED_PROTO([#include <stdlib.h>], setenv)
481 AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
482 AC_NEED_PROTO([#include <unistd.h>], gethostname)
483 AC_NEED_PROTO([#include <unistd.h>], mkstemp)
484 AC_NEED_PROTO([#include <unistd.h>], getusershell)
485 AC_NEED_PROTO([#include <unistd.h>], daemon)
486 AC_NEED_PROTO([
487 #ifdef HAVE_SYS_TYPES_H
488 #include <sys/types.h>
489 #endif
490 #ifdef HAVE_SYS_SOCKET_H
491 #include <sys/socket.h>
492 #endif
493 #ifdef HAVE_NETINET_IN_H
494 #include <netinet/in.h>
495 #endif
496 #ifdef HAVE_ARPA_INET_H
497 #include <arpa/inet.h>
498 #endif
499 #ifdef HAVE_NETDB_H
500 #include <netdb.h>
501 #endif
502 #ifdef HAVE_UNISTD_H
503 #include <unistd.h>
504 #endif],
505 iruserok)
507 AC_NEED_PROTO([
508 #ifdef HAVE_SYS_TYPES_H
509 #include <sys/types.h>
510 #endif
511 #ifdef HAVE_SYS_SOCKET_H
512 #include <sys/socket.h>
513 #endif
514 #ifdef HAVE_NETINET_IN_H
515 #include <netinet/in.h>
516 #endif
517 #ifdef HAVE_ARPA_INET_H
518 #include <arpa/inet.h>
519 #endif],
520 inet_aton)
522 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
524 AC_REQUIRE([rk_BROKEN_REALLOC])dnl
526 dnl AC_KRB_FUNC_GETCWD_BROKEN
528 dnl strerror_r is great fun, on linux it exists before sus catched up,
529 dnl so the return type is diffrent, lets check for both
531 AC_PROTO_COMPAT([
532 #include <stdio.h>
533 #include <string.h>
535 strerror_r, int strerror_r(int, char *, size_t))
537 AC_CHECK_FUNC([strerror_r],
538     [AC_DEFINE_UNQUOTED(HAVE_STRERROR_R, 1,
539         [Define if you have the function strerror_r.])])
542 dnl Checks for prototypes and declarations
545 AC_PROTO_COMPAT([
546 #ifdef HAVE_SYS_TYPES_H
547 #include <sys/types.h>
548 #endif
549 #ifdef HAVE_SYS_SOCKET_H
550 #include <sys/socket.h>
551 #endif
552 #ifdef HAVE_NETINET_IN_H
553 #include <netinet/in.h>
554 #endif
555 #ifdef HAVE_ARPA_INET_H
556 #include <arpa/inet.h>
557 #endif
558 #ifdef HAVE_NETDB_H
559 #include <netdb.h>
560 #endif
562 gethostbyname, struct hostent *gethostbyname(const char *))
564 AC_PROTO_COMPAT([
565 #ifdef HAVE_SYS_TYPES_H
566 #include <sys/types.h>
567 #endif
568 #ifdef HAVE_SYS_SOCKET_H
569 #include <sys/socket.h>
570 #endif
571 #ifdef HAVE_NETINET_IN_H
572 #include <netinet/in.h>
573 #endif
574 #ifdef HAVE_ARPA_INET_H
575 #include <arpa/inet.h>
576 #endif
577 #ifdef HAVE_NETDB_H
578 #include <netdb.h>
579 #endif
581 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
583 AC_PROTO_COMPAT([
584 #ifdef HAVE_SYS_TYPES_H
585 #include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_SOCKET_H
588 #include <sys/socket.h>
589 #endif
590 #ifdef HAVE_NETINET_IN_H
591 #include <netinet/in.h>
592 #endif
593 #ifdef HAVE_ARPA_INET_H
594 #include <arpa/inet.h>
595 #endif
596 #ifdef HAVE_NETDB_H
597 #include <netdb.h>
598 #endif
600 getservbyname, struct servent *getservbyname(const char *, const char *))
602 AC_PROTO_COMPAT([
603 #ifdef HAVE_SYS_TYPES_H
604 #include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_SOCKET_H
607 #include <sys/socket.h>
608 #endif
610 getsockname, int getsockname(int, struct sockaddr*, socklen_t*))
612 AC_PROTO_COMPAT([
613 #ifdef HAVE_SYSLOG_H
614 #include <syslog.h>
615 #endif
617 openlog, void openlog(const char *, int, int))
619 AC_NEED_PROTO([
620 #ifdef HAVE_CRYPT_H
621 #include <crypt.h>
622 #endif
623 #ifdef HAVE_UNISTD_H
624 #include <unistd.h>
625 #endif
627 crypt)
629 dnl variables
631 rk_CHECK_VAR(h_errno, 
632 [#ifdef HAVE_SYS_TYPES_H
633 #include <sys/types.h>
634 #endif
635 #ifdef HAVE_NETDB_H
636 #include <netdb.h>
637 #endif
638 #ifdef HAVE_WS2TCPIP_H
639 #include <ws2tcpip.h>
640 #endif
643 rk_CHECK_VAR(h_errlist, 
644 [#ifdef HAVE_NETDB_H
645 #include <netdb.h>
646 #endif
647 #ifdef HAVE_WS2TCPIP_H
648 #include <ws2tcpip.h>
649 #endif])
651 rk_CHECK_VAR(h_nerr, 
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([__progname], 
660 [#ifdef HAVE_ERR_H
661 #include <err.h>
662 #endif])
664 AC_CHECK_DECLS([optarg, optind, opterr, optopt, environ],[],[],[
665 #include <stdlib.h>
666 #ifdef HAVE_UNISTD_H
667 #include <unistd.h>
668 #endif])
671 dnl Check for fields in struct tm
674 AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
675 AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
678 dnl or do we have a variable `timezone' ?
681 rk_CHECK_VAR(timezone,[#include <time.h>])
682 rk_CHECK_VAR(altzone,[#include <time.h>])
684 AC_HAVE_TYPE([sa_family_t],[
685 #include <sys/types.h>
686 #ifdef HAVE_SYS_SOCKET_H
687 #include <sys/socket.h>
688 #endif
689 #ifdef HAVE_WS2TCPIP_H
690 #include <ws2tcpip.h>
691 #endif])
692 AC_HAVE_TYPE([socklen_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([struct sockaddr], [
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_storage], [
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 addrinfo], [
717 #include <sys/types.h>
718 #ifdef HAVE_NETDB_H
719 #include <netdb.h>
720 #endif
721 #ifdef HAVE_WS2TCPIP_H
722 #include <ws2tcpip.h>
723 #endif])
724 AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
725 AC_HAVE_TYPE([struct iovec],[
726 #include <sys/types.h>
727 #include <sys/uio.h>
729 AC_HAVE_TYPE([struct msghdr],[
730 #include <sys/types.h>
731 #ifdef HAVE_SYS_SOCKET_H
732 #include <sys/socket.h>
733 #endif
734 #ifdef HAVE_WS2TCPIP_H
735 #include <ws2tcpip.h>
736 #endif])
739 dnl Check for struct winsize
742 AC_KRB_STRUCT_WINSIZE
745 dnl Check for struct spwd
748 AC_KRB_STRUCT_SPWD
751 # Check if we want samba's socket wrapper
754 samba_SOCKET_WRAPPER
756 dnl won't work with automake
757 dnl moved to AC_OUTPUT in configure.in
758 dnl AC_CONFIG_FILES($1/Makefile)
760 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
762 AC_SUBST(DIR_roken)dnl
763 AC_SUBST(LIB_roken)dnl
764 AC_SUBST(INCLUDES_roken)dnl