3 AC_CONFIG_HEADER(config.h)
11 AC_CHECK_PROG(AR, ar, ar)
12 AC_PATH_PROG(PERL, perl)
14 AC_PATH_PROG(ENT, ent)
16 AC_PATH_PROGS(FILEPRIV, filepriv, true, /sbin:/usr/sbin)
18 if test -z "$AR" ; then
19 AC_MSG_ERROR([*** 'ar' missing, please install or fix your \$PATH ***])
22 # Use LOGIN_PROGRAM from environment if possible
23 if test ! -z "$LOGIN_PROGRAM" ; then
24 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM")
27 AC_PATH_PROG(LOGIN_PROGRAM_FALLBACK, login)
28 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
29 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM_FALLBACK")
33 if test -z "$LD" ; then
40 if test "$GCC" = "yes"; then
41 CFLAGS="$CFLAGS -Wall"
44 # Check for some target-specific stuff
48 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
49 LDFLAGS="$LDFLAGS -L/usr/local/lib"
50 if (test "$LD" != "gcc" && test -z "$blibpath"); then
51 blibpath="/usr/lib:/lib:/usr/local/lib"
53 AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)])
54 AC_DEFINE(BROKEN_GETADDRINFO)
57 dnl AIX handles lastlog as part of its login message
58 AC_DEFINE(DISABLE_LASTLOG)
63 LIBS="$LIBS -lregex /usr/lib/textmode.o"
64 AC_DEFINE(HAVE_CYGWIN)
65 AC_DEFINE(DISABLE_PAM)
66 AC_DEFINE(DISABLE_SHADOW)
67 AC_DEFINE(IPV4_DEFAULT)
68 AC_DEFINE(IP_TOS_IS_BROKEN)
69 AC_DEFINE(BROKEN_VHANGUP)
75 if test -z "$GCC"; then
78 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
81 AC_DEFINE(DISABLE_SHADOW)
82 AC_DEFINE(DISABLE_UTMP)
83 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
89 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
91 AC_DEFINE(PAM_SUN_CODEBASE)
93 AC_DEFINE(DISABLE_SHADOW)
94 AC_DEFINE(DISABLE_UTMP)
95 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
101 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
103 PATH="$PATH:/usr/etc"
107 AC_DEFINE(BROKEN_INET_NTOA)
110 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
112 PATH="$PATH:/usr/etc"
114 AC_DEFINE(WITH_IRIX_ARRAY)
115 AC_DEFINE(WITH_IRIX_PROJECT)
116 AC_DEFINE(WITH_IRIX_AUDIT)
117 AC_CHECK_FUNC(jlimit_startjob, [AC_DEFINE(WITH_IRIX_JOBS)])
120 AC_DEFINE(BROKEN_INET_NTOA)
125 AC_DEFINE(DONT_TRY_OTHER_AF)
126 AC_DEFINE(PAM_TTY_KLUDGE)
127 inet6_default_4in6=yes
129 mips-sony-bsd|mips-sony-newsos4)
130 AC_DEFINE(HAVE_NEWS4)
132 AC_CHECK_LIB(iberty, xatexit, AC_DEFINE(HAVE_XATEXIT),
133 AC_MSG_ERROR([*** libiberty missing - please install first ***])
140 conf_lastlog_location="/usr/adm/lastlog"
141 conf_utmp_location=/etc/utmp
142 conf_wtmp_location=/usr/adm/wtmp
145 AC_DEFINE(BROKEN_REALPATH)
147 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
148 CFLAGS="$CFLAGS \${CPPFLAGS}"
151 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
152 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib"
154 AC_DEFINE(PAM_SUN_CODEBASE)
155 # hardwire lastlog location (can't detect it on some versions)
156 conf_lastlog_location="/var/adm/lastlog"
157 AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
158 sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'`
159 if test "$sol2ver" -ge 8; then
161 AC_DEFINE(DISABLE_UTMP)
162 AC_DEFINE(DISABLE_WTMP)
168 CPPFLAGS="$CPPFLAGS -DSUNOS4"
169 AC_CHECK_FUNCS(getpwanam)
170 AC_DEFINE(PAM_SUN_CODEBASE)
171 conf_utmp_location=/etc/utmp
172 conf_wtmp_location=/var/adm/wtmp
173 conf_lastlog_location=/var/adm/lastlog
179 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
180 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib"
182 AC_DEFINE(IP_TOS_IS_BROKEN)
184 LIBS="$LIBS -lgen -lnsl -lucb"
187 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
188 LDFLAGS="$LDFLAGS -L/usr/local/lib"
191 LIBS="$LIBS -lgen -lsocket -lnsl -lresolv"
195 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
196 LDFLAGS="$LDFLAGS -L/usr/local/lib"
199 LIBS="$LIBS -lgen -lsocket"
203 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
204 LDFLAGS="$LDFLAGS -L/usr/local/lib"
207 LIBS="$LIBS -lgen -lsocket"
211 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
212 LDFLAGS="$LDFLAGS -L/usr/local/lib"
215 LIBS="$LIBS -lgen -lsocket -los -lprot -lx -ltinfo -lm"
218 AC_DEFINE(BROKEN_SYS_TERMIO_H)
219 rsh_path="/usr/bin/rcmd"
220 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
221 AC_DEFINE(DISABLE_SHADOW)
224 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
225 LDFLAGS="$LDFLAGS -L/usr/local/lib"
228 LIBS="$LIBS -lgen -lsocket -lprot -lx -ltinfo -lm"
230 rsh_path="/usr/bin/rcmd"
231 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
232 AC_DEFINE(DISABLE_SHADOW)
233 AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
237 if test ! -z "USE_SIA" ; then
238 AC_MSG_CHECKING(for Digital Unix Security Integration Architecture)
239 if test -f /etc/sia/matrix.conf; then
241 AC_DEFINE(HAVE_OSF_SIA)
242 AC_DEFINE(DISABLE_LOGIN)
243 LIBS="$LIBS -lsecurity -ldb -lm -laud"
251 # Allow user to specify flags
253 [ --with-cflags Specify additional flags to pass to compiler],
255 if test "x$withval" != "xno" ; then
256 CFLAGS="$CFLAGS $withval"
260 AC_ARG_WITH(cppflags,
261 [ --with-cppflags Specify additional flags to pass to preprocessor] ,
263 if test "x$withval" != "xno"; then
264 CPPFLAGS="$CPPFLAGS $withval"
269 [ --with-ldflags Specify additional flags to pass to linker],
271 if test "x$withval" != "xno" ; then
272 LDFLAGS="$LDFLAGS $withval"
277 [ --with-libs Specify additional libraries to link with],
279 if test "x$withval" != "xno" ; then
280 LIBS="$LIBS $withval"
286 # Checks for libraries.
287 AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***]))
288 AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil")
290 AC_CHECK_FUNC(regcomp,
293 AC_CHECK_LIB(pcre, pcre_info,
294 AC_DEFINE(HAVE_LIBPCRE) LIBS="$LIBS -lpcreposix -lpcre")
298 if test -z "$no_libsocket" ; then
299 AC_CHECK_LIB(nsl, yp_match, , )
301 if test -z "$no_libnsl" ; then
302 AC_CHECK_LIB(socket, main, , )
305 # Checks for header files.
306 AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h getopt.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/queue.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stddef.h time.h ttyent.h usersec.h util.h utmp.h utmpx.h vis.h)
308 dnl Checks for library functions.
309 AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getnameinfo getrlimit getrusage getttyent inet_aton inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv seteuid setlogin setproctitle setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strsep strtok_r sysconf vsnprintf vhangup vis waitpid _getpty __b64_ntop)
310 dnl Checks for time functions
311 AC_CHECK_FUNCS(gettimeofday time)
312 dnl Checks for libutil functions
313 AC_CHECK_HEADERS(libutil.h)
314 AC_CHECK_FUNCS(login logout updwtmp logwtmp)
315 dnl Checks for utmp functions
316 AC_CHECK_FUNCS(endutent getutent getutid getutline pututline setutent)
317 AC_CHECK_FUNCS(utmpname)
318 dnl Checks for utmpx functions
319 AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline )
320 AC_CHECK_FUNCS(setutxent utmpxname)
322 AC_CHECK_FUNC(getuserattr,
323 [AC_DEFINE(HAVE_GETUSERATTR)],
324 [AC_CHECK_LIB(s, getuserattr, [LIBS="$LIBS -ls"; AC_DEFINE(HAVE_GETUSERATTR)])]
328 [AC_DEFINE(HAVE_LOGIN)],
329 [AC_CHECK_LIB(bsd, login, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_LOGIN)])]
332 AC_CHECK_FUNC(daemon,
333 [AC_DEFINE(HAVE_DAEMON)],
334 [AC_CHECK_LIB(bsd, daemon, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])]
337 AC_CHECK_FUNC(getpagesize,
338 [AC_DEFINE(HAVE_GETPAGESIZE)],
339 [AC_CHECK_LIB(ucb, getpagesize, [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])]
342 # Check for broken snprintf
343 if test "x$ac_cv_func_snprintf" = "xyes" ; then
344 AC_MSG_CHECKING([whether snprintf correctly terminates long strings])
348 int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
350 [AC_MSG_RESULT(yes)],
353 AC_DEFINE(BROKEN_SNPRINTF)
354 AC_MSG_WARN([****** Your snprintf() function is broken, complain to your vendor])
363 [ --without-pam Disable PAM support ],
365 if test "x$withval" = "xno" ; then
367 AC_DEFINE(DISABLE_PAM)
372 if (test -z "$no_pam" && test "x$ac_cv_header_security_pam_appl_h" = "xyes") ; then
373 AC_CHECK_LIB(dl, dlopen, , )
376 AC_CHECK_FUNCS(pam_getenvlist)
382 # Check PAM strerror arguments (old PAM)
383 AC_MSG_CHECKING([whether pam_strerror takes only one argument])
387 #include <security/pam_appl.h>
389 [(void)pam_strerror((pam_handle_t *)NULL, -1);],
392 AC_DEFINE(HAVE_OLD_PAM)
394 PAM_MSG="yes (old library)"
399 # The big search for OpenSSL
401 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
403 if test "x$withval" != "xno" ; then
410 saved_LDFLAGS="$LDFLAGS"
411 saved_CPPFLAGS="$CPPFLAGS"
412 if test "x$prefix" != "xNONE" ; then
413 tryssldir="$tryssldir $prefix"
415 AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
417 for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
418 if test ! -z "$ssldir" ; then
419 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
420 CPPFLAGS="$saved_CPPFLAGS -I$ssldir/include"
421 if test ! -z "$need_dash_r" ; then
422 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
425 LDFLAGS="$saved_LDFLAGS"
428 LIBS="$saved_LIBS -lcrypto"
430 # Basic test to check for compatible version and correct linking
431 # *does not* test for RSA - that comes later.
435 #include <openssl/rand.h>
439 memset(a, 0, sizeof(a));
440 RAND_add(a, sizeof(a), sizeof(a));
441 return(RAND_status() <= 0);
450 if test ! -z "$found_crypto" ; then
455 if test -z "$found_crypto" ; then
456 AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install])
458 if test -z "$ssldir" ; then
462 ac_cv_openssldir=$ssldir
465 if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then
466 AC_DEFINE(HAVE_OPENSSL)
467 dnl Need to recover ssldir - test above runs in subshell
468 ssldir=$ac_cv_openssldir
469 CPPFLAGS="$saved_CPPFLAGS -I$ssldir/include"
470 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
471 if test ! -z "$need_dash_r" ; then
472 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
474 if test ! -z "$blibpath" ; then
475 blibpath="$blibpath:$ssldir:$ssldir/lib"
478 LIBS="$saved_LIBS -lcrypto"
480 # Now test RSA support
482 AC_MSG_CHECKING([for RSA support])
483 for WANTS_RSAREF in "" 1 ; do
484 if test -z "$WANTS_RSAREF" ; then
487 LIBS="$saved_LIBS -lRSAglue -lrsaref"
491 #include <openssl/rand.h>
492 #include <openssl/rsa.h>
493 #include <openssl/bn.h>
494 #include <openssl/sha.h>
497 int num; RSA *key; static unsigned char p_in[] = "blahblah";
498 unsigned char c[256], p[256];
499 memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
500 if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
501 num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
502 return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
511 if test ! -z "$no_rsa" ; then
512 AC_MSG_RESULT(disabled)
515 if test -z "$rsa_works" ; then
516 AC_MSG_WARN([*** No RSA support found *** ])
519 if test -z "$WANTS_RSAREF" ; then
523 RSA_MSG="yes (using RSAref)"
524 AC_MSG_RESULT(using RSAref)
525 LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
530 # Cheap hack to ensure NEWS-OS libraries are arranged right.
531 if test ! -z "$SONY" ; then
532 LIBS="$LIBS -liberty";
535 # Checks for data types
536 AC_CHECK_SIZEOF(char, 1)
537 AC_CHECK_SIZEOF(short int, 2)
538 AC_CHECK_SIZEOF(int, 4)
539 AC_CHECK_SIZEOF(long int, 4)
540 AC_CHECK_SIZEOF(long long int, 8)
542 # More checks for data types
543 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
545 [ #include <sys/types.h> ],
547 [ ac_cv_have_u_int="yes" ],
548 [ ac_cv_have_u_int="no" ]
551 if test "x$ac_cv_have_u_int" = "xyes" ; then
552 AC_DEFINE(HAVE_U_INT)
556 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
558 [ #include <sys/types.h> ],
559 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
560 [ ac_cv_have_intxx_t="yes" ],
561 [ ac_cv_have_intxx_t="no" ]
564 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
565 AC_DEFINE(HAVE_INTXX_T)
569 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
571 [ #include <sys/types.h> ],
572 [ int64_t a; a = 1;],
573 [ ac_cv_have_int64_t="yes" ],
574 [ ac_cv_have_int64_t="no" ]
577 if test "x$ac_cv_have_int64_t" = "xyes" ; then
578 AC_DEFINE(HAVE_INT64_T)
582 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
584 [ #include <sys/types.h> ],
585 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
586 [ ac_cv_have_u_intxx_t="yes" ],
587 [ ac_cv_have_u_intxx_t="no" ]
590 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
591 AC_DEFINE(HAVE_U_INTXX_T)
595 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
597 [ #include <sys/types.h> ],
598 [ u_int64_t a; a = 1;],
599 [ ac_cv_have_u_int64_t="yes" ],
600 [ ac_cv_have_u_int64_t="no" ]
603 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
604 AC_DEFINE(HAVE_U_INT64_T)
608 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
609 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
611 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
614 #include <sys/bitypes.h>
617 int8_t a; int16_t b; int32_t c;
618 u_int8_t e; u_int16_t f; u_int32_t g;
619 a = b = c = e = f = g = 1;
622 AC_DEFINE(HAVE_U_INTXX_T)
623 AC_DEFINE(HAVE_INTXX_T)
630 if test -z "$have_u_intxx_t" ; then
631 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
634 #include <sys/types.h>
636 [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ],
637 [ ac_cv_have_uintxx_t="yes" ],
638 [ ac_cv_have_uintxx_t="no" ]
641 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
642 AC_DEFINE(HAVE_UINTXX_T)
646 AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [
649 #include <sys/types.h>
650 #include <sys/socket.h>
652 [socklen_t foo; foo = 1235;],
653 [ ac_cv_have_socklen_t="yes" ],
654 [ ac_cv_have_socklen_t="no" ]
657 if test "x$ac_cv_have_socklen_t" = "xyes" ; then
658 AC_DEFINE(HAVE_SOCKLEN_T)
661 AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [
664 #include <sys/types.h>
666 [ size_t foo; foo = 1235; ],
667 [ ac_cv_have_size_t="yes" ],
668 [ ac_cv_have_size_t="no" ]
671 if test "x$ac_cv_have_size_t" = "xyes" ; then
672 AC_DEFINE(HAVE_SIZE_T)
675 AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [
678 #include <sys/types.h>
680 [ ssize_t foo; foo = 1235; ],
681 [ ac_cv_have_ssize_t="yes" ],
682 [ ac_cv_have_ssize_t="no" ]
685 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
686 AC_DEFINE(HAVE_SSIZE_T)
689 AC_CACHE_CHECK([for sa_family_t], ac_cv_have_sa_family_t, [
692 #include <sys/types.h>
693 #include <sys/socket.h>
695 [ sa_family_t foo; foo = 1235; ],
696 [ ac_cv_have_sa_family_t="yes" ],
699 #include <sys/types.h>
700 #include <sys/socket.h>
701 #include <netinet/in.h>
703 [ sa_family_t foo; foo = 1235; ],
704 [ ac_cv_have_sa_family_t="yes" ],
706 [ ac_cv_have_sa_family_t="no" ]
710 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
711 AC_DEFINE(HAVE_SA_FAMILY_T)
714 AC_CACHE_CHECK([for pid_t], ac_cv_have_pid_t, [
717 #include <sys/types.h>
719 [ pid_t foo; foo = 1235; ],
720 [ ac_cv_have_pid_t="yes" ],
721 [ ac_cv_have_pid_t="no" ]
724 if test "x$ac_cv_have_pid_t" = "xyes" ; then
725 AC_DEFINE(HAVE_PID_T)
728 AC_CACHE_CHECK([for mode_t], ac_cv_have_mode_t, [
731 #include <sys/types.h>
733 [ mode_t foo; foo = 1235; ],
734 [ ac_cv_have_mode_t="yes" ],
735 [ ac_cv_have_mode_t="no" ]
738 if test "x$ac_cv_have_mode_t" = "xyes" ; then
739 AC_DEFINE(HAVE_MODE_T)
743 AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [
746 #include <sys/types.h>
747 #include <sys/socket.h>
749 [ struct sockaddr_storage s; ],
750 [ ac_cv_have_struct_sockaddr_storage="yes" ],
751 [ ac_cv_have_struct_sockaddr_storage="no" ]
754 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
755 AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE)
758 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [
761 #include <sys/types.h>
762 #include <netinet/in.h>
764 [ struct sockaddr_in6 s; s.sin6_family = 0; ],
765 [ ac_cv_have_struct_sockaddr_in6="yes" ],
766 [ ac_cv_have_struct_sockaddr_in6="no" ]
769 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
770 AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6)
773 AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [
776 #include <sys/types.h>
777 #include <netinet/in.h>
779 [ struct in6_addr s; s.s6_addr[0] = 0; ],
780 [ ac_cv_have_struct_in6_addr="yes" ],
781 [ ac_cv_have_struct_in6_addr="no" ]
784 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
785 AC_DEFINE(HAVE_STRUCT_IN6_ADDR)
788 AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [
791 #include <sys/types.h>
792 #include <sys/socket.h>
795 [ struct addrinfo s; s.ai_flags = AI_PASSIVE; ],
796 [ ac_cv_have_struct_addrinfo="yes" ],
797 [ ac_cv_have_struct_addrinfo="no" ]
800 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
801 AC_DEFINE(HAVE_STRUCT_ADDRINFO)
804 dnl Checks for structure members
805 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP)
806 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
807 OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX)
808 OSSH_CHECK_HEADER_FOR_FIELD(ut_pid, utmp.h, HAVE_PID_IN_UTMP)
809 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmp.h, HAVE_TYPE_IN_UTMP)
810 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmpx.h, HAVE_TYPE_IN_UTMPX)
811 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmp.h, HAVE_TV_IN_UTMP)
812 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmp.h, HAVE_ID_IN_UTMP)
813 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmpx.h, HAVE_ID_IN_UTMPX)
814 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmp.h, HAVE_ADDR_IN_UTMP)
815 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmpx.h, HAVE_ADDR_IN_UTMPX)
816 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmp.h, HAVE_ADDR_V6_IN_UTMP)
817 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmpx.h, HAVE_ADDR_V6_IN_UTMPX)
818 OSSH_CHECK_HEADER_FOR_FIELD(ut_exit, utmp.h, HAVE_EXIT_IN_UTMP)
819 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmp.h, HAVE_TIME_IN_UTMP)
820 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
821 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
824 AC_CACHE_CHECK([for sun_len field in struct sockaddr_un],
825 ac_cv_have_sun_len_in_struct_sockaddr_un, [
828 #include <sys/types.h>
829 #include <sys/socket.h>
831 [ struct sockaddr_un s; s.sun_len = 1; ],
832 [ ac_cv_have_sun_len_in_struct_sockaddr_un="yes" ],
833 [ ac_cv_have_sun_len_in_struct_sockaddr_un="no" ],
836 if test "x$ac_cv_have_sun_len_in_struct_sockaddr_un" = "xyes" ; then
837 AC_DEFINE(HAVE_SUN_LEN_IN_SOCKADDR_UN)
840 AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
841 ac_cv_have_ss_family_in_struct_ss, [
844 #include <sys/types.h>
845 #include <sys/socket.h>
847 [ struct sockaddr_storage s; s.ss_family = 1; ],
848 [ ac_cv_have_ss_family_in_struct_ss="yes" ],
849 [ ac_cv_have_ss_family_in_struct_ss="no" ],
852 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
853 AC_DEFINE(HAVE_SS_FAMILY_IN_SS)
856 AC_CACHE_CHECK([for __ss_family field in struct sockaddr_storage],
857 ac_cv_have___ss_family_in_struct_ss, [
860 #include <sys/types.h>
861 #include <sys/socket.h>
863 [ struct sockaddr_storage s; s.__ss_family = 1; ],
864 [ ac_cv_have___ss_family_in_struct_ss="yes" ],
865 [ ac_cv_have___ss_family_in_struct_ss="no" ]
868 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
869 AC_DEFINE(HAVE___SS_FAMILY_IN_SS)
872 AC_CACHE_CHECK([for pw_class field in struct passwd],
873 ac_cv_have_pw_class_in_struct_passwd, [
878 [ struct passwd p; p.pw_class = 0; ],
879 [ ac_cv_have_pw_class_in_struct_passwd="yes" ],
880 [ ac_cv_have_pw_class_in_struct_passwd="no" ]
883 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
884 AC_DEFINE(HAVE_PW_CLASS_IN_PASSWD)
888 AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [
890 [ extern char *__progname; printf("%s", __progname); ],
891 [ ac_cv_libc_defines___progname="yes" ],
892 [ ac_cv_libc_defines___progname="no" ]
895 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
896 AC_DEFINE(HAVE___PROGNAME)
900 AC_CACHE_CHECK([if libc defines sys_errlist], ac_cv_libc_defines_sys_errlist, [
902 [ extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);],
903 [ ac_cv_libc_defines_sys_errlist="yes" ],
904 [ ac_cv_libc_defines_sys_errlist="no" ]
907 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
908 AC_DEFINE(HAVE_SYS_ERRLIST)
912 AC_CACHE_CHECK([if libc defines sys_nerr], ac_cv_libc_defines_sys_nerr, [
914 [ extern int sys_nerr; printf("%i", sys_nerr);],
915 [ ac_cv_libc_defines_sys_nerr="yes" ],
916 [ ac_cv_libc_defines_sys_nerr="no" ]
919 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
920 AC_DEFINE(HAVE_SYS_NERR)
924 # Looking for programs, paths and files
926 [ --with-rsh=PATH Specify path to remote shell program ],
928 if test "x$withval" != "$no" ; then
933 AC_PATH_PROG(rsh_path, rsh)
938 [ --with-xauth=PATH Specify path to xauth program ],
940 if test "x$withval" != "xno" ; then
945 AC_PATH_PROG(xauth_path, xauth,,$PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin)
946 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
947 xauth_path="/usr/openwin/bin/xauth"
952 if test -z "$xauth_path" ; then
953 XAUTH_PATH="undefined"
956 AC_DEFINE_UNQUOTED(XAUTH_PATH, "$xauth_path")
957 XAUTH_PATH=$xauth_path
960 if test ! -z "$rsh_path" ; then
961 AC_DEFINE_UNQUOTED(RSH_PATH, "$rsh_path")
964 # Check for mail directory (last resort if we cannot get it from headers)
965 if test ! -z "$MAIL" ; then
966 maildir=`dirname $MAIL`
967 AC_DEFINE_UNQUOTED(MAIL_DIRECTORY, "$maildir")
970 if test -z "$no_dev_ptmx" ; then
971 AC_CHECK_FILE("/dev/ptmx",
973 AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)
978 AC_CHECK_FILE("/dev/ptc",
980 AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)
985 # Options from here on. Some of these are preset by platform above
987 # Check for user-specified random device, otherwise check /dev/urandom
989 [ --with-random=FILE read randomness from FILE (default=/dev/urandom)],
991 if test "x$withval" != "xno" ; then
992 RANDOM_POOL="$withval";
993 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
997 # Check for random device
998 AC_CHECK_FILE("/dev/urandom",
1000 RANDOM_POOL="/dev/urandom";
1001 AC_SUBST(RANDOM_POOL)
1002 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
1008 # Check for EGD pool file
1009 AC_ARG_WITH(egd-pool,
1010 [ --with-egd-pool=FILE read randomness from EGD pool FILE (default none)],
1012 if test "x$withval" != "xno" ; then
1013 EGD_SOCKET="$withval";
1014 AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET")
1019 # detect pathnames for entropy gathering commands, if we need them
1020 INSTALL_SSH_PRNG_CMDS=""
1022 if (test -z "$RANDOM_POOL" && test -z "$EGD_SOCKET") ; then
1023 # Use these commands to collect entropy
1024 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
1025 OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat)
1026 OSSH_PATH_ENTROPY_PROG(PROG_ARP, arp)
1027 OSSH_PATH_ENTROPY_PROG(PROG_IFCONFIG, ifconfig)
1028 OSSH_PATH_ENTROPY_PROG(PROG_PS, ps)
1029 OSSH_PATH_ENTROPY_PROG(PROG_W, w)
1030 OSSH_PATH_ENTROPY_PROG(PROG_WHO, who)
1031 OSSH_PATH_ENTROPY_PROG(PROG_LAST, last)
1032 OSSH_PATH_ENTROPY_PROG(PROG_LASTLOG, lastlog)
1033 OSSH_PATH_ENTROPY_PROG(PROG_DF, df)
1034 OSSH_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat)
1035 OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime)
1036 OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs)
1037 OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail)
1038 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
1040 INSTALL_SSH_PRNG_CMDS="yes"
1042 AC_SUBST(INSTALL_SSH_PRNG_CMDS)
1046 [ --with-catman=man|cat Install preformatted manpages[no]],
1049 if test x"$withval" != x"yes" ; then
1055 if test -z "$MANTYPE" ; then
1056 MANTYPE='$(TROFFMAN)'
1064 # Check whether user wants Kerberos support
1066 AC_ARG_WITH(kerberos4,
1067 [ --with-kerberos4=PATH Enable Kerberos 4 support],
1069 if test "x$withval" != "xno" ; then
1071 if test "x$withval" != "xyes" ; then
1072 CPPFLAGS="$CPPFLAGS -I${withval}/include"
1073 LDFLAGS="$LDFLAGS -L${withval}/lib"
1074 if test ! -z "$need_dash_r" ; then
1075 LDFLAGS="$LDFLAGS -R${withval}/lib"
1077 if test ! -z "$blibpath" ; then
1078 blibpath="$blibpath:${withval}/lib"
1081 if test -d /usr/include/kerberosIV ; then
1082 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
1086 AC_CHECK_HEADERS(krb.h)
1087 AC_CHECK_LIB(krb, main)
1088 if test "$ac_cv_header_krb_h" != yes; then
1089 AC_MSG_WARN([Cannot find krb.h, build may fail])
1091 if test "$ac_cv_lib_krb_main" != yes; then
1092 AC_MSG_WARN([Cannot find libkrb, build may fail])
1096 AC_CHECK_LIB(resolv, dn_expand, , )
1104 # Check whether user wants AFS support
1107 [ --with-afs=PATH Enable AFS support],
1109 if test "x$withval" != "xno" ; then
1111 if test "x$withval" != "xyes" ; then
1112 CPPFLAGS="$CPPFLAGS -I${withval}/include"
1113 LDFLAGS="$LDFLAGS -L${withval}/lib"
1116 if test -z "$KRB4" ; then
1117 AC_MSG_WARN([AFS requires Kerberos IV support, build may fail])
1121 if test ! -z "$AFS_LIBS" ; then
1122 LIBS="$LIBS $AFS_LIBS"
1131 # Check whether user wants S/Key support
1134 [ --with-skey=PATH Enable S/Key support],
1136 if test "x$withval" != "xno" ; then
1138 if test "x$withval" != "xyes" ; then
1139 CPPFLAGS="$CPPFLAGS -I${withval}/include"
1140 LDFLAGS="$LDFLAGS -L${withval}/lib"
1147 AC_CHECK_FUNC(skey_keyinfo,
1150 AC_MSG_ERROR([** Incomplete or missing s/key libraries.])
1156 # Check whether user wants TCP wrappers support
1158 AC_ARG_WITH(tcp-wrappers,
1159 [ --with-tcp-wrappers Enable tcpwrappers support],
1161 if test "x$withval" != "xno" ; then
1164 AC_MSG_CHECKING(for libwrap)
1168 int deny_severity = 0, allow_severity = 0;
1177 AC_MSG_ERROR([*** libwrap missing])
1184 # Check whether to enable MD5 passwords
1186 AC_ARG_WITH(md5-passwords,
1187 [ --with-md5-passwords Enable use of MD5 passwords],
1189 if test "x$withval" != "xno" ; then
1190 AC_DEFINE(HAVE_MD5_PASSWORDS)
1196 # Whether to disable shadow password support
1198 [ --without-shadow Disable shadow password support],
1200 if test "x$withval" = "xno" ; then
1201 AC_DEFINE(DISABLE_SHADOW)
1207 if test -z "$disable_shadow" ; then
1208 AC_MSG_CHECKING([if the systems has expire shadow information])
1211 #include <sys/types.h>
1214 ],[ sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; ],
1215 [ sp_expire_available=yes ], []
1218 if test "x$sp_expire_available" = "xyes" ; then
1220 AC_DEFINE(HAS_SHADOW_EXPIRE)
1226 # Use ip address instead of hostname in $DISPLAY
1227 if test ! -z "$IPADDR_IN_DISPLAY" ; then
1228 DISPLAY_HACK_MSG="yes"
1229 AC_DEFINE(IPADDR_IN_DISPLAY)
1231 DISPLAY_HACK_MSG="no"
1232 AC_ARG_WITH(ipaddr-display,
1233 [ --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY],
1235 if test "x$withval" != "xno" ; then
1236 AC_DEFINE(IPADDR_IN_DISPLAY)
1237 DISPLAY_HACK_MSG="yes"
1243 # Whether to mess with the default path
1244 SERVER_PATH_MSG="(default)"
1245 AC_ARG_WITH(default-path,
1246 [ --with-default-path=PATH Specify default \$PATH environment for server],
1248 if test "x$withval" != "xno" ; then
1249 AC_DEFINE_UNQUOTED(USER_PATH, "$withval")
1250 SERVER_PATH_MSG="$withval"
1255 # Whether to force IPv4 by default (needed on broken glibc Linux)
1257 AC_ARG_WITH(ipv4-default,
1258 [ --with-ipv4-default Use IPv4 by connections unless '-6' specified],
1260 if test "x$withval" != "xno" ; then
1261 AC_DEFINE(IPV4_DEFAULT)
1267 AC_MSG_CHECKING([if we need to convert IPv4 in IPv6-mapped addresses])
1268 IPV4_IN6_HACK_MSG="no"
1270 [ --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses],
1272 if test "x$withval" != "xno" ; then
1274 AC_DEFINE(IPV4_IN_IPV6)
1275 IPV4_IN6_HACK_MSG="yes"
1280 if test "x$inet6_default_4in6" = "xyes"; then
1281 AC_MSG_RESULT([yes (default)])
1282 AC_DEFINE(IPV4_IN_IPV6)
1283 IPV4_IN6_HACK_MSG="yes"
1285 AC_MSG_RESULT([no (default)])
1290 AC_MSG_CHECKING(whether to install ssh as suid root)
1291 AC_ARG_ENABLE(suid-ssh,
1292 [ --enable-suid-ssh Install ssh as suid root (default)
1293 --disable-suid-ssh Install ssh without suid bit],
1294 [ case "$enableval" in
1299 *) AC_MSG_RESULT(yes)
1309 # Where to place sshd.pid
1311 AC_ARG_WITH(pid-dir,
1312 [ --with-pid-dir=PATH Specify location of ssh.pid file],
1314 if test "x$withval" != "xno" ; then
1320 # make sure the directory exists
1321 if test ! -d $piddir ; then
1322 piddir=`eval echo ${sysconfdir}`
1324 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
1328 AC_DEFINE_UNQUOTED(PIDDIR, "$piddir")
1331 dnl allow user to disable some login recording features
1332 AC_ARG_ENABLE(lastlog,
1333 [ --disable-lastlog disable use of lastlog even if detected [no]],
1334 [ AC_DEFINE(DISABLE_LASTLOG) ]
1337 [ --disable-utmp disable use of utmp even if detected [no]],
1338 [ AC_DEFINE(DISABLE_UTMP) ]
1340 AC_ARG_ENABLE(utmpx,
1341 [ --disable-utmpx disable use of utmpx even if detected [no]],
1342 [ AC_DEFINE(DISABLE_UTMPX) ]
1345 [ --disable-wtmp disable use of wtmp even if detected [no]],
1346 [ AC_DEFINE(DISABLE_WTMP) ]
1348 AC_ARG_ENABLE(wtmpx,
1349 [ --disable-wtmpx disable use of wtmpx even if detected [no]],
1350 [ AC_DEFINE(DISABLE_WTMPX) ]
1352 AC_ARG_ENABLE(libutil,
1353 [ --disable-libutil disable use of libutil (login() etc.) [no]],
1354 [ AC_DEFINE(DISABLE_LOGIN) ]
1356 AC_ARG_ENABLE(pututline,
1357 [ --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]],
1358 [ AC_DEFINE(DISABLE_PUTUTLINE) ]
1360 AC_ARG_ENABLE(pututxline,
1361 [ --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]],
1362 [ AC_DEFINE(DISABLE_PUTUTXLINE) ]
1364 AC_ARG_WITH(lastlog,
1365 [ --with-lastlog=FILE|DIR specify lastlog location [common locations]],
1366 [ conf_lastlog_location="$withval"; ],)
1368 dnl lastlog, [uw]tmpx? detection
1369 dnl NOTE: set the paths in the platform section to avoid the
1370 dnl need for command-line parameters
1371 dnl lastlog and [uw]tmp are subject to a file search if all else fails
1373 dnl lastlog detection
1374 dnl NOTE: the code itself will detect if lastlog is a directory
1375 AC_MSG_CHECKING([if your system defines LASTLOG_FILE])
1377 #include <sys/types.h>
1379 #ifdef HAVE_LASTLOG_H
1380 # include <lastlog.h>
1386 [ char *lastlog = LASTLOG_FILE; ],
1387 [ AC_MSG_RESULT(yes) ],
1390 AC_MSG_CHECKING([if your system defines _PATH_LASTLOG])
1392 #include <sys/types.h>
1394 #ifdef HAVE_LASTLOG_H
1395 # include <lastlog.h>
1401 [ char *lastlog = _PATH_LASTLOG; ],
1402 [ AC_MSG_RESULT(yes) ],
1405 system_lastlog_path=no
1410 if test -z "$conf_lastlog_location"; then
1411 if test x"$system_lastlog_path" = x"no" ; then
1412 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
1413 if (test -d "$f" || test -f "$f") ; then
1414 conf_lastlog_location=$f
1417 if test -z "$conf_lastlog_location"; then
1418 AC_MSG_WARN([** Cannot find lastlog **])
1419 dnl Don't define DISABLE_LASTLOG - that means we don't try wtmp/wtmpx
1424 if test -n "$conf_lastlog_location"; then
1425 AC_DEFINE_UNQUOTED(CONF_LASTLOG_FILE, "$conf_lastlog_location")
1429 AC_MSG_CHECKING([if your system defines UTMP_FILE])
1431 #include <sys/types.h>
1437 [ char *utmp = UTMP_FILE; ],
1438 [ AC_MSG_RESULT(yes) ],
1440 system_utmp_path=no ]
1442 if test -z "$conf_utmp_location"; then
1443 if test x"$system_utmp_path" = x"no" ; then
1444 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
1445 if test -f $f ; then
1446 conf_utmp_location=$f
1449 if test -z "$conf_utmp_location"; then
1450 AC_DEFINE(DISABLE_UTMP)
1454 if test -n "$conf_utmp_location"; then
1455 AC_DEFINE_UNQUOTED(CONF_UTMP_FILE, "$conf_utmp_location")
1459 AC_MSG_CHECKING([if your system defines WTMP_FILE])
1461 #include <sys/types.h>
1467 [ char *wtmp = WTMP_FILE; ],
1468 [ AC_MSG_RESULT(yes) ],
1470 system_wtmp_path=no ]
1472 if test -z "$conf_wtmp_location"; then
1473 if test x"$system_wtmp_path" = x"no" ; then
1474 for f in /usr/adm/wtmp /var/log/wtmp; do
1475 if test -f $f ; then
1476 conf_wtmp_location=$f
1479 if test -z "$conf_wtmp_location"; then
1480 AC_DEFINE(DISABLE_WTMP)
1484 if test -n "$conf_wtmp_location"; then
1485 AC_DEFINE_UNQUOTED(CONF_WTMP_FILE, "$conf_wtmp_location")
1489 dnl utmpx detection - I don't know any system so perverse as to require
1490 dnl utmpx, but not define UTMPX_FILE (ditto wtmpx.) No doubt it's out
1492 AC_MSG_CHECKING([if your system defines UTMPX_FILE])
1494 #include <sys/types.h>
1503 [ char *utmpx = UTMPX_FILE; ],
1504 [ AC_MSG_RESULT(yes) ],
1506 system_utmpx_path=no ]
1508 if test -z "$conf_utmpx_location"; then
1509 if test x"$system_utmpx_path" = x"no" ; then
1510 AC_DEFINE(DISABLE_UTMPX)
1513 AC_DEFINE_UNQUOTED(CONF_UTMPX_FILE, "$conf_utmpx_location")
1517 AC_MSG_CHECKING([if your system defines WTMPX_FILE])
1519 #include <sys/types.h>
1528 [ char *wtmpx = WTMPX_FILE; ],
1529 [ AC_MSG_RESULT(yes) ],
1531 system_wtmpx_path=no ]
1533 if test -z "$conf_wtmpx_location"; then
1534 if test x"$system_wtmpx_path" = x"no" ; then
1535 AC_DEFINE(DISABLE_WTMPX)
1538 AC_DEFINE_UNQUOTED(CONF_WTMPX_FILE, "$conf_wtmpx_location")
1542 # Change default command timeout for builtin PRNG
1544 AC_ARG_WITH(entropy-timeout,
1545 [ --with-entropy-timeout Specify entropy gathering command timeout (msec)],
1547 if test "x$withval" != "xno" ; then
1548 entropy_timeout=$withval
1552 AC_DEFINE_UNQUOTED(ENTROPY_TIMEOUT_MSEC, $entropy_timeout)
1555 if test ! -z "$blibpath" ; then
1556 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
1557 AC_MSG_WARN([Please check and edit -blibpath in LDFLAGS in Makefile])
1562 AC_OUTPUT(Makefile ssh_prng_cmds)
1564 # Print summary of options
1566 if test x$MANTYPE = x'$(CATMAN)' ; then
1571 if test ! -z "$RANDOM_POOL" ; then
1572 RAND_MSG="Device ($RANDOM_POOL)"
1574 if test ! -z "$EGD_SOCKET" ; then
1575 RAND_MSG="EGD ($EGD_SOCKET)"
1577 RAND_MSG="Builtin (timeout $entropy_timeout)"
1582 # Someone please show me a better way :)
1583 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
1584 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
1585 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
1586 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
1587 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
1588 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
1589 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
1592 echo "OpenSSH configured has been configured with the following options."
1593 echo " User binaries: $B"
1594 echo " User binaries: $B"
1595 echo " System binaries: $C"
1596 echo " Configuration files: $D"
1597 echo " Askpass program: $E"
1598 echo " Manual pages: $F"
1599 echo " PID file: $G"
1600 echo " Random number collection: $RAND_MSG"
1601 echo " Manpage format: $MAN_MSG"
1602 echo " PAM support: ${PAM_MSG}"
1603 echo " KerberosIV support: $KRB4_MSG"
1604 echo " AFS support: $AFS_MSG"
1605 echo " S/KEY support: $SKEY_MSG"
1606 echo " TCP Wrappers support: $TCPW_MSG"
1607 echo " MD5 password support: $MD5_MSG"
1608 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
1609 echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
1610 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
1614 echo " Host: ${host}"
1615 echo " Compiler: ${CC}"
1616 echo " Compiler flags: ${CFLAGS}"
1617 echo "Preprocessor flags: ${CPPFLAGS}"
1618 echo " Linker flags: ${LDFLAGS}"
1619 echo " Libraries: ${LIBS}"
1623 if test "x$PAM_MSG" = "xyes" ; then
1624 echo "PAM is enabled. You may need to install a PAM control file for sshd,"
1625 echo "otherwise password authentication may fail. Example PAM control files"
1626 echo "can be found in the contrib/ subdirectory"
1630 if test ! -z "$BUILTIN_RNG" ; then
1631 echo "WARNING: you are using the builtin random number collection service."
1632 echo "Please read WARNING.RNG and request that your OS vendor includes"
1633 echo "/dev/random in future versions of their OS."