Merge branch 'master' of github.com:heimdal/heimdal
[heimdal.git] / cf / roken-frag.m4
blobc105ae1a01ea582aad81cfbfc2eae4b7e6b165ba
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         shadow.h                                \
69         stdint.h                                \
70         sys/bswap.h                             \
71         sys/ioctl.h                             \
72         sys/mman.h                              \
73         sys/param.h                             \
74         sys/resource.h                          \
75         sys/sockio.h                            \
76         sys/stat.h                              \
77         sys/time.h                              \
78         sys/tty.h                               \
79         sys/types.h                             \
80         sys/uio.h                               \
81         sys/utsname.h                           \
82         sys/wait.h                              \
83         syslog.h                                \
84         termios.h                               \
85         winsock2.h                              \
86         ws2tcpip.h                              \
87         unistd.h                                \
88         userconf.h                              \
89         usersec.h                               \
90         util.h                                  \
93 AC_HAVE_TYPE([uintptr_t],[#ifdef HAVE_STDINT_H
94 #include <stdint.h>
95 #endif])
97 dnl Sunpro 5.2 has a vis.h which is something different.
98 AC_CHECK_HEADERS(vis.h, , , [
99 #include <vis.h>
100 #ifndef VIS_SP
101 #error invis
102 #endif])
103         
104 AC_CHECK_HEADERS(netdb.h, , , [AC_INCLUDES_DEFAULT
105 #ifdef HAVE_SYS_TYPES_H
106 #include <sys/types.h>
107 #endif
110 AC_CHECK_HEADERS(sys/socket.h, , , [AC_INCLUDES_DEFAULT
111 #ifdef HAVE_SYS_TYPES_H
112 #include <sys/types.h>
113 #endif
116 AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT
117 #ifdef HAVE_SYS_TYPES_H
118 #include <sys/types.h>
119 #endif
120 #if HAVE_SYS_SOCKET_H
121 #include <sys/socket.h>
122 #endif])
124 AC_CHECK_HEADERS(netinet6/in6_var.h, , , [AC_INCLUDES_DEFAULT
125 #ifdef HAVE_SYS_TYPES_H
126 #include <sys/types.h>
127 #endif
128 #if HAVE_SYS_SOCKET_H
129 #include <sys/socket.h>
130 #endif
131 #ifdef HAVE_NETINET6_IN6_H
132 #include <netinet6/in6.h>
133 #endif
136 AC_CHECK_HEADERS(sys/sysctl.h, , , [AC_INCLUDES_DEFAULT
137 #ifdef HAVE_SYS_PARAM_H
138 #include <sys/param.h>
139 #endif
142 AC_CHECK_HEADERS(sys/proc.h, , , [AC_INCLUDES_DEFAULT
143 #ifdef HAVE_SYS_PARAM_H
144 #include <sys/param.h>
145 #endif
148 AC_REQUIRE([CHECK_NETINET_IP_AND_TCP])
150 AM_CONDITIONAL(have_err_h, test "$ac_cv_header_err_h" = yes)
151 AM_CONDITIONAL(have_ifaddrs_h, test "$ac_cv_header_ifaddrs_h" = yes)
152 AM_CONDITIONAL(have_vis_h, test "$ac_cv_header_vis_h" = yes)
154 dnl Check for functions and libraries
156 AC_FIND_FUNC(socket, socket)
157 AC_FIND_FUNC(gethostbyname, nsl)
158 AC_FIND_FUNC(syslog, syslog)
160 AC_KRB_IPV6
162 AC_FIND_FUNC(gethostbyname2, inet6 ip6)
164 rk_RESOLV
166 AC_BROKEN_SNPRINTF
167 AC_BROKEN_VSNPRINTF
169 AC_BROKEN_GLOB
170 if test "$ac_cv_func_glob_working" != yes; then
171         AC_LIBOBJ(glob)
173 AM_CONDITIONAL(have_glob_h, test "$ac_cv_func_glob_working" = yes)
176 AC_CHECK_FUNCS([                                \
177         asnprintf                               \
178         asprintf                                \
179         atexit                                  \
180         cgetent                                 \
181         getconfattr                             \
182         getprogname                             \
183         getrlimit                               \
184         getspnam                                \
185         initstate                               \
186         issetugid                               \
187         on_exit                                 \
188         poll                                    \
189         random                                  \
190         setprogname                             \
191         setstate                                \
192         strsvis                                 \
193         strsvisx                                \
194         strunvis                                \
195         strvis                                  \
196         strvisx                                 \
197         svis                                    \
198         sysconf                                 \
199         sysctl                                  \
200         uname                                   \
201         unvis                                   \
202         vasnprintf                              \
203         vasprintf                               \
204         vis                                     \
207 if test "$ac_cv_func_cgetent" = no; then
208         AC_LIBOBJ(getcap)
210 AM_CONDITIONAL(have_cgetent, test "$ac_cv_func_cgetent" = yes)
212 AC_REQUIRE([AC_FUNC_GETLOGIN])
214 AC_REQUIRE([AC_FUNC_MMAP])
216 AC_FIND_FUNC_NO_LIBS(getsockopt,,
217 [#ifdef HAVE_SYS_TYPES_H
218 #include <sys/types.h>
219 #endif
220 #ifdef HAVE_SYS_SOCKET_H
221 #include <sys/socket.h>
222 #endif],
223 [0,0,0,0,0])
224 AC_FIND_FUNC_NO_LIBS(setsockopt,,
225 [#ifdef HAVE_SYS_TYPES_H
226 #include <sys/types.h>
227 #endif
228 #ifdef HAVE_SYS_SOCKET_H
229 #include <sys/socket.h>
230 #endif],
231 [0,0,0,0,0])
233 AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
234 [#ifdef HAVE_NETDB_H
235 #include <netdb.h>
236 #endif],
238 AC_NEED_PROTO([
239 #ifdef HAVE_NETDB_H
240 #include <netdb.h>
241 #endif],
242 hstrerror)
244 AC_FOREACH([rk_func], [asprintf vasprintf asnprintf vasnprintf],
245         [AC_NEED_PROTO([
246         #include <stdio.h>
247         #include <string.h>],
248         rk_func)])
250 AC_FIND_FUNC_NO_LIBS(bswap16,,
251 [#ifdef HAVE_SYS_TYPES_H
252 #include <sys/types.h>
253 #endif
254 #ifdef HAVE_SYS_BSWAP_H
255 #include <sys/bswap.h>
256 #endif],0)
258 AC_FIND_FUNC_NO_LIBS(bswap32,,
259 [#ifdef HAVE_SYS_TYPES_H
260 #include <sys/types.h>
261 #endif
262 #ifdef HAVE_SYS_BSWAP_H
263 #include <sys/bswap.h>
264 #endif],0)
266 AC_FIND_FUNC_NO_LIBS(pidfile,util,
267 [#ifdef HAVE_UTIL_H
268 #include <util.h>
269 #endif],0)
271 AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
272 [#ifdef HAVE_NETDB_H
273 #include <netdb.h>
274 #endif
275 #ifdef HAVE_WS2TCPIP_H
276 #include <ws2tcpip.h>
277 #endif],[0,0,0,0])
279 AC_FIND_IF_NOT_BROKEN(getnameinfo,,
280 [#ifdef HAVE_NETDB_H
281 #include <netdb.h>
282 #endif
283 #ifdef HAVE_WS2TCPIP_H
284 #include <ws2tcpip.h>
285 #endif],[0,0,0,0,0,0,0])
287 AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
288 [#ifdef HAVE_NETDB_H
289 #include <netdb.h>
290 #endif
291 #ifdef HAVE_WS2TCPIP_H
292 #include <ws2tcpip.h>
293 #endif],[0])
295 AC_FIND_IF_NOT_BROKEN(gai_strerror,,
296 [#ifdef HAVE_NETDB_H
297 #include <netdb.h>
298 #endif
299 #ifdef HAVE_WS2TCPIP_H
300 #include <ws2tcpip.h>
301 #endif],[0])
303 dnl Darwin is weird, and in some senses not unix, launchd doesn't want
304 dnl servers to use daemon(), so its deprecated.
305 case "$host_os" in
306         darwin*)
307                 ;;
308         *)
309                 AC_DEFINE([SUPPORT_DETACH], 1,
310                     [Define if os support want to detach is daemonens.])
311                 AC_BROKEN([daemon]) ;;
312 esac
314 AC_BROKEN([                                     \
315         chown                                   \
316         copyhostent                             \
317         closefrom                               \
318         ecalloc                                 \
319         emalloc                                 \
320         erealloc                                \
321         estrdup                                 \
322         err                                     \
323         errx                                    \
324         fchown                                  \
325         flock                                   \
326         fnmatch                                 \
327         freehostent                             \
328         getcwd                                  \
329         getdtablesize                           \
330         getegid                                 \
331         geteuid                                 \
332         getgid                                  \
333         gethostname                             \
334         getifaddrs                              \
335         getipnodebyaddr                         \
336         getipnodebyname                         \
337         getopt                                  \
338         gettimeofday                            \
339         getuid                                  \
340         getusershell                            \
341         initgroups                              \
342         innetgr                                 \
343         iruserok                                \
344         localtime_r                             \
345         lstat                                   \
346         memmove                                 \
347         mkstemp                                 \
348         putenv                                  \
349         rcmd                                    \
350         readv                                   \
351         recvmsg                                 \
352         sendmsg                                 \
353         setegid                                 \
354         setenv                                  \
355         seteuid                                 \
356         strcasecmp                              \
357         strdup                                  \
358         strerror                                \
359         strftime                                \
360         strlcat                                 \
361         strlcpy                                 \
362         strlwr                                  \
363         strncasecmp                             \
364         strndup                                 \
365         strnlen                                 \
366         strptime                                \
367         strsep                                  \
368         strsep_copy                             \
369         strtok_r                                \
370         strupr                                  \
371         swab                                    \
372         timegm                                  \
373         unsetenv                                \
374         verr                                    \
375         verrx                                   \
376         vsyslog                                 \
377         vwarn                                   \
378         vwarnx                                  \
379         warn                                    \
380         warnx                                   \
381         writev                                  \
384 AM_CONDITIONAL(have_fnmatch_h,
385         test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes)
387 AC_FOREACH([rk_func], [strndup strsep strtok_r],
388         [AC_NEED_PROTO([#include <string.h>], rk_func)])
390 AC_FOREACH([rk_func], [strsvis strsvisx strunvis strvis strvisx svis unvis vis],
391 [AC_NEED_PROTO([#ifdef HAVE_VIS_H
392 #include <vis.h>
393 #endif], rk_func)])
395 AC_MSG_CHECKING([checking for dirfd])
396 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
397 #ifdef HAVE_DIRENT_H
398 #include <dirent.h>
399 #endif
401         [[DIR *d = 0; dirfd(d);]])],
402         [ac_rk_have_dirfd=yes], [ac_rk_have_dirfd=no])
403 if test "$ac_rk_have_dirfd" = "yes" ; then
404         AC_DEFINE_UNQUOTED(HAVE_DIRFD, 1, [have a dirfd function/macro])
406 AC_MSG_RESULT($ac_rk_have_dirfd)
408 AC_HAVE_STRUCT_FIELD(DIR, dd_fd, [#include <sys/types.h>
409 #ifdef HAVE_DIRENT_H
410 #include <dirent.h>
411 #endif])
414 AC_BROKEN2(inet_aton,
415 [#ifdef HAVE_SYS_TYPES_H
416 #include <sys/types.h>
417 #endif
418 #ifdef HAVE_SYS_SOCKET_H
419 #include <sys/socket.h>
420 #endif
421 #ifdef HAVE_NETINET_IN_H
422 #include <netinet/in.h>
423 #endif
424 #ifdef HAVE_ARPA_INET_H
425 #include <arpa/inet.h>
426 #endif],
427 [0,0])
429 AC_BROKEN2(inet_ntop,
430 [#ifdef HAVE_SYS_TYPES_H
431 #include <sys/types.h>
432 #endif
433 #ifdef HAVE_SYS_SOCKET_H
434 #include <sys/socket.h>
435 #endif
436 #ifdef HAVE_NETINET_IN_H
437 #include <netinet/in.h>
438 #endif
439 #ifdef HAVE_ARPA_INET_H
440 #include <arpa/inet.h>
441 #endif],
442 [0, 0, 0, 0])
444 AC_BROKEN2(inet_pton,
445 [#ifdef HAVE_SYS_TYPES_H
446 #include <sys/types.h>
447 #endif
448 #ifdef HAVE_SYS_SOCKET_H
449 #include <sys/socket.h>
450 #endif
451 #ifdef HAVE_NETINET_IN_H
452 #include <netinet/in.h>
453 #endif
454 #ifdef HAVE_ARPA_INET_H
455 #include <arpa/inet.h>
456 #endif],
457 [0,0,0])
460 dnl Check for sa_len in struct sockaddr, 
461 dnl needs to come before the getnameinfo test
463 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
464 #include <sys/socket.h>])
466 if test "$ac_cv_func_getaddrinfo" = "yes"; then
467   rk_BROKEN_GETADDRINFO
468   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
469         AC_LIBOBJ(getaddrinfo)
470         AC_LIBOBJ(freeaddrinfo)
471   fi
474 AC_NEED_PROTO([#include <stdlib.h>], setenv)
475 AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
476 AC_NEED_PROTO([#include <unistd.h>], gethostname)
477 AC_NEED_PROTO([#include <unistd.h>], mkstemp)
478 AC_NEED_PROTO([#include <unistd.h>], getusershell)
479 AC_NEED_PROTO([#include <unistd.h>], daemon)
480 AC_NEED_PROTO([
481 #ifdef HAVE_SYS_TYPES_H
482 #include <sys/types.h>
483 #endif
484 #ifdef HAVE_SYS_SOCKET_H
485 #include <sys/socket.h>
486 #endif
487 #ifdef HAVE_NETINET_IN_H
488 #include <netinet/in.h>
489 #endif
490 #ifdef HAVE_ARPA_INET_H
491 #include <arpa/inet.h>
492 #endif
493 #ifdef HAVE_NETDB_H
494 #include <netdb.h>
495 #endif
496 #ifdef HAVE_UNISTD_H
497 #include <unistd.h>
498 #endif],
499 iruserok)
501 AC_NEED_PROTO([
502 #ifdef HAVE_SYS_TYPES_H
503 #include <sys/types.h>
504 #endif
505 #ifdef HAVE_SYS_SOCKET_H
506 #include <sys/socket.h>
507 #endif
508 #ifdef HAVE_NETINET_IN_H
509 #include <netinet/in.h>
510 #endif
511 #ifdef HAVE_ARPA_INET_H
512 #include <arpa/inet.h>
513 #endif],
514 inet_aton)
516 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
518 AC_REQUIRE([rk_BROKEN_REALLOC])dnl
520 dnl AC_KRB_FUNC_GETCWD_BROKEN
522 dnl strerror_r is great fun, on linux it exists before sus catched up,
523 dnl so the return type is diffrent, lets check for both
525 AC_PROTO_COMPAT([
526 #include <stdio.h>
527 #include <string.h>
529 strerror_r, int strerror_r(int, char *, size_t))
531 AC_CHECK_FUNC([strerror_r],
532     [AC_DEFINE_UNQUOTED(HAVE_STRERROR_R, 1,
533         [Define if you have the function strerror_r.])])
536 dnl Checks for prototypes and declarations
539 AC_PROTO_COMPAT([
540 #ifdef HAVE_SYS_TYPES_H
541 #include <sys/types.h>
542 #endif
543 #ifdef HAVE_SYS_SOCKET_H
544 #include <sys/socket.h>
545 #endif
546 #ifdef HAVE_NETINET_IN_H
547 #include <netinet/in.h>
548 #endif
549 #ifdef HAVE_ARPA_INET_H
550 #include <arpa/inet.h>
551 #endif
552 #ifdef HAVE_NETDB_H
553 #include <netdb.h>
554 #endif
556 gethostbyname, struct hostent *gethostbyname(const char *))
558 AC_PROTO_COMPAT([
559 #ifdef HAVE_SYS_TYPES_H
560 #include <sys/types.h>
561 #endif
562 #ifdef HAVE_SYS_SOCKET_H
563 #include <sys/socket.h>
564 #endif
565 #ifdef HAVE_NETINET_IN_H
566 #include <netinet/in.h>
567 #endif
568 #ifdef HAVE_ARPA_INET_H
569 #include <arpa/inet.h>
570 #endif
571 #ifdef HAVE_NETDB_H
572 #include <netdb.h>
573 #endif
575 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
577 AC_PROTO_COMPAT([
578 #ifdef HAVE_SYS_TYPES_H
579 #include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_SOCKET_H
582 #include <sys/socket.h>
583 #endif
584 #ifdef HAVE_NETINET_IN_H
585 #include <netinet/in.h>
586 #endif
587 #ifdef HAVE_ARPA_INET_H
588 #include <arpa/inet.h>
589 #endif
590 #ifdef HAVE_NETDB_H
591 #include <netdb.h>
592 #endif
594 getservbyname, struct servent *getservbyname(const char *, const char *))
596 AC_PROTO_COMPAT([
597 #ifdef HAVE_SYS_TYPES_H
598 #include <sys/types.h>
599 #endif
600 #ifdef HAVE_SYS_SOCKET_H
601 #include <sys/socket.h>
602 #endif
604 getsockname, int getsockname(int, struct sockaddr*, socklen_t*))
606 AC_PROTO_COMPAT([
607 #ifdef HAVE_SYSLOG_H
608 #include <syslog.h>
609 #endif
611 openlog, void openlog(const char *, int, int))
613 AC_NEED_PROTO([
614 #ifdef HAVE_CRYPT_H
615 #include <crypt.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 #include <unistd.h>
619 #endif
621 crypt)
623 dnl variables
625 rk_CHECK_VAR(h_errno, 
626 [#ifdef HAVE_SYS_TYPES_H
627 #include <sys/types.h>
628 #endif
629 #ifdef HAVE_NETDB_H
630 #include <netdb.h>
631 #endif
632 #ifdef HAVE_WS2TCPIP_H
633 #include <ws2tcpip.h>
634 #endif
637 rk_CHECK_VAR(h_errlist, 
638 [#ifdef HAVE_NETDB_H
639 #include <netdb.h>
640 #endif
641 #ifdef HAVE_WS2TCPIP_H
642 #include <ws2tcpip.h>
643 #endif])
645 rk_CHECK_VAR(h_nerr, 
646 [#ifdef HAVE_NETDB_H
647 #include <netdb.h>
648 #endif
649 #ifdef HAVE_WS2TCPIP_H
650 #include <ws2tcpip.h>
651 #endif])
653 rk_CHECK_VAR([__progname], 
654 [#ifdef HAVE_ERR_H
655 #include <err.h>
656 #endif])
658 AC_CHECK_DECLS([optarg, optind, opterr, optopt, environ],[],[],[
659 #include <stdlib.h>
660 #ifdef HAVE_UNISTD_H
661 #include <unistd.h>
662 #endif])
665 dnl Check for fields in struct tm
668 AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
669 AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
672 dnl or do we have a variable `timezone' ?
675 rk_CHECK_VAR(timezone,[#include <time.h>])
676 rk_CHECK_VAR(altzone,[#include <time.h>])
678 AC_HAVE_TYPE([sa_family_t],[
679 #include <sys/types.h>
680 #ifdef HAVE_SYS_SOCKET_H
681 #include <sys/socket.h>
682 #endif
683 #ifdef HAVE_WS2TCPIP_H
684 #include <ws2tcpip.h>
685 #endif])
686 AC_HAVE_TYPE([socklen_t],[
687 #include <sys/types.h>
688 #ifdef HAVE_SYS_SOCKET_H
689 #include <sys/socket.h>
690 #endif
691 #ifdef HAVE_WS2TCPIP_H
692 #include <ws2tcpip.h>
693 #endif])
694 AC_HAVE_TYPE([struct sockaddr], [
695 #include <sys/types.h>
696 #ifdef HAVE_SYS_SOCKET_H
697 #include <sys/socket.h>
698 #endif
699 #ifdef HAVE_WS2TCPIP_H
700 #include <ws2tcpip.h>
701 #endif])
702 AC_HAVE_TYPE([struct sockaddr_storage], [
703 #include <sys/types.h>
704 #ifdef HAVE_SYS_SOCKET_H
705 #include <sys/socket.h>
706 #endif
707 #ifdef HAVE_WS2TCPIP_H
708 #include <ws2tcpip.h>
709 #endif])
710 AC_HAVE_TYPE([struct addrinfo], [
711 #include <sys/types.h>
712 #ifdef HAVE_NETDB_H
713 #include <netdb.h>
714 #endif
715 #ifdef HAVE_WS2TCPIP_H
716 #include <ws2tcpip.h>
717 #endif])
718 AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
719 AC_HAVE_TYPE([struct iovec],[
720 #include <sys/types.h>
721 #include <sys/uio.h>
723 AC_HAVE_TYPE([struct msghdr],[
724 #include <sys/types.h>
725 #ifdef HAVE_SYS_SOCKET_H
726 #include <sys/socket.h>
727 #endif
728 #ifdef HAVE_WS2TCPIP_H
729 #include <ws2tcpip.h>
730 #endif])
733 dnl Check for struct winsize
736 AC_KRB_STRUCT_WINSIZE
739 dnl Check for struct spwd
742 AC_KRB_STRUCT_SPWD
745 # Check if we want samba's socket wrapper
748 samba_SOCKET_WRAPPER
750 dnl won't work with automake
751 dnl moved to AC_OUTPUT in configure.in
752 dnl AC_CONFIG_FILES($1/Makefile)
754 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
756 AC_SUBST(DIR_roken)dnl
757 AC_SUBST(LIB_roken)dnl
758 AC_SUBST(INCLUDES_roken)dnl