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 CFLAGS="$CFLAGS -I. -I${srcdir-.}"
46 # Check for some target-specific stuff
50 CFLAGS="$CFLAGS -I/usr/local/include"
51 LDFLAGS="$LDFLAGS -L/usr/local/lib"
52 if (test "$LD" != "gcc" && test -z "$blibpath"); then
53 blibpath="/usr/lib:/lib:/usr/local/lib"
55 AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)])
56 AC_DEFINE(BROKEN_GETADDRINFO)
59 dnl AIX handles lastlog as part of its login message
60 AC_DEFINE(DISABLE_LASTLOG)
65 LIBS="$LIBS -lregex /usr/lib/textmode.o"
66 AC_DEFINE(HAVE_CYGWIN)
67 AC_DEFINE(DISABLE_PAM)
68 AC_DEFINE(DISABLE_SHADOW)
69 AC_DEFINE(IPV4_DEFAULT)
70 AC_DEFINE(IP_TOS_IS_BROKEN)
71 AC_DEFINE(BROKEN_VHANGUP)
77 if test -z "$GCC"; then
80 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
83 AC_DEFINE(DISABLE_SHADOW)
84 AC_DEFINE(DISABLE_UTMP)
85 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
91 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
94 AC_DEFINE(DISABLE_SHADOW)
95 AC_DEFINE(DISABLE_UTMP)
96 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
102 CFLAGS="$CFLAGS -I/usr/local/include"
104 PATH="$PATH:/usr/etc"
108 AC_DEFINE(BROKEN_INET_NTOA)
111 CFLAGS="$CFLAGS -I/usr/local/include"
113 PATH="$PATH:/usr/etc"
115 AC_DEFINE(WITH_IRIX_ARRAY)
116 AC_DEFINE(WITH_IRIX_PROJECT)
117 AC_DEFINE(WITH_IRIX_AUDIT)
118 AC_CHECK_FUNC(jlimit_startjob, [AC_DEFINE(WITH_IRIX_JOBS)])
121 AC_DEFINE(BROKEN_INET_NTOA)
126 AC_DEFINE(DONT_TRY_OTHER_AF)
127 AC_DEFINE(PAM_TTY_KLUDGE)
128 inet6_default_4in6=yes
130 mips-sony-bsd|mips-sony-newsos4)
131 AC_DEFINE(HAVE_NEWS4)
133 AC_CHECK_LIB(iberty, xatexit, AC_DEFINE(HAVE_XATEXIT),
134 AC_MSG_ERROR([*** libiberty missing - please install first ***])
141 conf_lastlog_location="/usr/adm/lastlog"
142 conf_utmp_location=/etc/utmp
143 conf_wtmp_location=/usr/adm/wtmp
146 AC_DEFINE(BROKEN_REALPATH)
148 CFLAGS="$CFLAGS -I/usr/local/include"
151 CFLAGS="$CFLAGS -I/usr/local/include"
152 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib"
154 # hardwire lastlog location (can't detect it on some versions)
155 conf_lastlog_location="/var/adm/lastlog"
156 AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
157 sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'`
158 if test "$sol2ver" -ge 8; then
160 AC_DEFINE(DISABLE_UTMP)
161 AC_DEFINE(DISABLE_WTMP)
167 CFLAGS="$CFLAGS -DSUNOS4"
168 AC_CHECK_FUNCS(getpwanam)
169 conf_utmp_location=/etc/utmp
170 conf_wtmp_location=/var/adm/wtmp
171 conf_lastlog_location=/var/adm/lastlog
177 CFLAGS="$CFLAGS -I/usr/local/include"
178 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib"
180 AC_DEFINE(IP_TOS_IS_BROKEN)
182 LIBS="$LIBS -lgen -lnsl -lucb"
185 CFLAGS="$CFLAGS -I/usr/local/include"
186 LDFLAGS="$LDFLAGS -L/usr/local/lib"
189 LIBS="$LIBS -lgen -lsocket -lnsl -lresolv"
193 CFLAGS="$CFLAGS -I/usr/local/include"
194 LDFLAGS="$LDFLAGS -L/usr/local/lib"
197 LIBS="$LIBS -lgen -lsocket"
201 CFLAGS="$CFLAGS -I/usr/local/include"
202 LDFLAGS="$LDFLAGS -L/usr/local/lib"
205 LIBS="$LIBS -lgen -lsocket"
209 CFLAGS="$CFLAGS -Dftruncate=chsize -I/usr/local/include"
210 LDFLAGS="$LDFLAGS -L/usr/local/lib"
213 LIBS="$LIBS -lgen -lsocket -los -lprot -lx -ltinfo -lm"
216 AC_DEFINE(BROKEN_SYS_TERMIO_H)
217 rsh_path="/usr/bin/rcmd"
218 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
219 AC_DEFINE(DISABLE_SHADOW)
222 CFLAGS="$CFLAGS -I/usr/local/include"
223 LDFLAGS="$LDFLAGS -L/usr/local/lib"
226 LIBS="$LIBS -lgen -lsocket -lprot -lx -ltinfo -lm"
228 rsh_path="/usr/bin/rcmd"
229 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
230 AC_DEFINE(DISABLE_SHADOW)
234 if test ! -z "USE_SIA" ; then
235 AC_MSG_CHECKING(for Digital Unix Security Integration Architecture)
236 if test -f /etc/sia/matrix.conf; then
238 AC_DEFINE(HAVE_OSF_SIA)
239 AC_DEFINE(DISABLE_LOGIN)
240 LIBS="$LIBS -lsecurity -ldb -lm -laud"
248 # Allow user to specify flags
250 [ --with-cflags Specify additional flags to pass to compiler],
252 if test "x$withval" != "xno" ; then
253 CFLAGS="$CFLAGS $withval"
258 [ --with-ldflags Specify additional flags to pass to linker],
260 if test "x$withval" != "xno" ; then
261 LDFLAGS="$LDFLAGS $withval"
266 [ --with-libs Specify additional libraries to link with],
268 if test "x$withval" != "xno" ; then
269 LIBS="$LIBS $withval"
275 # Checks for libraries.
276 AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***]))
277 AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil")
279 AC_CHECK_FUNC(regcomp,
282 AC_CHECK_LIB(pcre, pcre_info,
283 AC_DEFINE(HAVE_LIBPCRE) LIBS="$LIBS -lpcreposix -lpcre")
287 if test -z "$no_libsocket" ; then
288 AC_CHECK_LIB(nsl, yp_match, , )
290 if test -z "$no_libnsl" ; then
291 AC_CHECK_LIB(socket, main, , )
294 # Checks for header files.
295 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/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)
297 dnl Checks for library functions.
298 AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getnameinfo getrusage getttyent inet_aton inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setenv seteuid setlogin setproctitle setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strsep strtok_r vsnprintf vhangup vis waitpid _getpty __b64_ntop)
299 dnl Checks for time functions
300 AC_CHECK_FUNCS(gettimeofday time)
301 dnl Checks for libutil functions
302 AC_CHECK_FUNCS(login logout updwtmp logwtmp)
303 dnl Checks for utmp functions
304 AC_CHECK_FUNCS(entutent getutent getutid getutline pututline setutent)
305 AC_CHECK_FUNCS(utmpname)
306 dnl Checks for utmpx functions
307 AC_CHECK_FUNCS(entutxent getutxent getutxid getutxline pututxline )
308 AC_CHECK_FUNCS(setutxent utmpxname)
310 AC_CHECK_FUNC(getuserattr,
311 [AC_DEFINE(HAVE_GETUSERATTR)],
312 [AC_CHECK_LIB(s, getuserattr, [LIBS="$LIBS -ls"; AC_DEFINE(HAVE_GETUSERATTR)])]
316 [AC_DEFINE(HAVE_LOGIN)],
317 [AC_CHECK_LIB(bsd, login, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_LOGIN)])]
320 AC_CHECK_FUNC(daemon,
321 [AC_DEFINE(HAVE_DAEMON)],
322 [AC_CHECK_LIB(bsd, daemon, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])]
325 AC_CHECK_FUNC(getpagesize,
326 [AC_DEFINE(HAVE_GETPAGESIZE)],
327 [AC_CHECK_LIB(ucb, getpagesize, [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])]
330 # Check for broken snprintf
331 if test "x$ac_cv_func_snprintf" = "xyes" ; then
332 AC_MSG_CHECKING([whether snprintf correctly terminates long strings])
336 int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
338 [AC_MSG_RESULT(yes)],
341 AC_DEFINE(BROKEN_SNPRINTF)
342 AC_MSG_WARN([****** Your snprintf() function is broken, complain to your vendor])
351 [ --without-pam Disable PAM support ],
353 if test "x$withval" = "xno" ; then
355 AC_DEFINE(DISABLE_PAM)
360 if (test -z "$no_pam" && test "x$ac_cv_header_security_pam_appl_h" = "xyes") ; then
361 AC_CHECK_LIB(dl, dlopen, , )
364 AC_CHECK_FUNCS(pam_getenvlist)
370 # Check PAM strerror arguments (old PAM)
371 AC_MSG_CHECKING([whether pam_strerror takes only one argument])
375 #include <security/pam_appl.h>
377 [(void)pam_strerror((pam_handle_t *)NULL, -1);],
380 AC_DEFINE(HAVE_OLD_PAM)
382 PAM_MSG="yes (old library)"
387 # The big search for OpenSSL
389 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
391 if test "x$withval" != "xno" ; then
398 saved_LDFLAGS="$LDFLAGS"
399 saved_CFLAGS="$CFLAGS"
400 if test "x$prefix" != "xNONE" ; then
401 tryssldir="$tryssldir $prefix"
403 AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
405 for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
406 if test ! -z "$ssldir" ; then
407 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
408 CFLAGS="$saved_CFLAGS -I$ssldir/include"
409 if test ! -z "$need_dash_r" ; then
410 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
413 LDFLAGS="$saved_LDFLAGS"
416 LIBS="$saved_LIBS -lcrypto"
418 # Basic test to check for compatible version and correct linking
419 # *does not* test for RSA - that comes later.
423 #include <openssl/rand.h>
427 memset(a, 0, sizeof(a));
428 RAND_add(a, sizeof(a), sizeof(a));
429 return(RAND_status() <= 0);
438 if test ! -z "$found_crypto" ; then
443 if test -z "$found_crypto" ; then
444 AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install])
446 if test -z "$ssldir" ; then
450 ac_cv_openssldir=$ssldir
453 if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then
454 AC_DEFINE(HAVE_OPENSSL)
455 dnl Need to recover ssldir - test above runs in subshell
456 ssldir=$ac_cv_openssldir
457 CFLAGS="$saved_CFLAGS -I$ssldir/include"
458 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
459 if test ! -z "$need_dash_r" ; then
460 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
462 if test ! -z "$blibpath" ; then
463 blibpath="$blibpath:$ssldir:$ssldir/lib"
466 LIBS="$saved_LIBS -lcrypto"
468 # Now test RSA support
470 AC_MSG_CHECKING([for RSA support])
471 for WANTS_RSAREF in "" 1 ; do
472 if test -z "$WANTS_RSAREF" ; then
475 LIBS="$saved_LIBS -lRSAglue -lrsaref"
479 #include <openssl/rand.h>
480 #include <openssl/rsa.h>
481 #include <openssl/bn.h>
482 #include <openssl/sha.h>
485 int num; RSA *key; static unsigned char p_in[] = "blahblah";
486 unsigned char c[256], p[256];
487 memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
488 if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
489 num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
490 return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
499 if test ! -z "$no_rsa" ; then
500 AC_MSG_RESULT(disabled)
503 if test -z "$rsa_works" ; then
504 AC_MSG_WARN([*** No RSA support found *** ])
507 if test -z "$WANTS_RSAREF" ; then
511 RSA_MSG="yes (using RSAref)"
512 AC_MSG_RESULT(using RSAref)
513 LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
518 # Cheap hack to ensure NEWS-OS libraries are arranged right.
519 if test ! -z "$SONY" ; then
520 LIBS="$LIBS -liberty";
523 # Checks for data types
524 AC_CHECK_SIZEOF(char, 1)
525 AC_CHECK_SIZEOF(short int, 2)
526 AC_CHECK_SIZEOF(int, 4)
527 AC_CHECK_SIZEOF(long int, 4)
528 AC_CHECK_SIZEOF(long long int, 8)
530 # More checks for data types
531 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
533 [ #include <sys/types.h> ],
535 [ ac_cv_have_u_int="yes" ],
536 [ ac_cv_have_u_int="no" ]
539 if test "x$ac_cv_have_u_int" = "xyes" ; then
540 AC_DEFINE(HAVE_U_INT)
544 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
546 [ #include <sys/types.h> ],
547 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
548 [ ac_cv_have_intxx_t="yes" ],
549 [ ac_cv_have_intxx_t="no" ]
552 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
553 AC_DEFINE(HAVE_INTXX_T)
557 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
559 [ #include <sys/types.h> ],
560 [ int64_t a; a = 1;],
561 [ ac_cv_have_int64_t="yes" ],
562 [ ac_cv_have_int64_t="no" ]
565 if test "x$ac_cv_have_int64_t" = "xyes" ; then
566 AC_DEFINE(HAVE_INT64_T)
570 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
572 [ #include <sys/types.h> ],
573 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
574 [ ac_cv_have_u_intxx_t="yes" ],
575 [ ac_cv_have_u_intxx_t="no" ]
578 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
579 AC_DEFINE(HAVE_U_INTXX_T)
583 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
585 [ #include <sys/types.h> ],
586 [ u_int64_t a; a = 1;],
587 [ ac_cv_have_u_int64_t="yes" ],
588 [ ac_cv_have_u_int64_t="no" ]
591 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
592 AC_DEFINE(HAVE_U_INT64_T)
596 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
597 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
599 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
602 #include <sys/bitypes.h>
605 int8_t a; int16_t b; int32_t c;
606 u_int8_t e; u_int16_t f; u_int32_t g;
607 a = b = c = e = f = g = 1;
610 AC_DEFINE(HAVE_U_INTXX_T)
611 AC_DEFINE(HAVE_INTXX_T)
618 if test -z "$have_u_intxx_t" ; then
619 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
622 #include <sys/types.h>
624 [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ],
625 [ ac_cv_have_uintxx_t="yes" ],
626 [ ac_cv_have_uintxx_t="no" ]
629 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
630 AC_DEFINE(HAVE_UINTXX_T)
634 AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [
637 #include <sys/types.h>
638 #include <sys/socket.h>
640 [socklen_t foo; foo = 1235;],
641 [ ac_cv_have_socklen_t="yes" ],
642 [ ac_cv_have_socklen_t="no" ]
645 if test "x$ac_cv_have_socklen_t" = "xyes" ; then
646 AC_DEFINE(HAVE_SOCKLEN_T)
649 AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [
652 #include <sys/types.h>
654 [ size_t foo; foo = 1235; ],
655 [ ac_cv_have_size_t="yes" ],
656 [ ac_cv_have_size_t="no" ]
659 if test "x$ac_cv_have_size_t" = "xyes" ; then
660 AC_DEFINE(HAVE_SIZE_T)
663 AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [
666 #include <sys/types.h>
668 [ ssize_t foo; foo = 1235; ],
669 [ ac_cv_have_ssize_t="yes" ],
670 [ ac_cv_have_ssize_t="no" ]
673 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
674 AC_DEFINE(HAVE_SSIZE_T)
677 AC_CACHE_CHECK([for sa_family_t], ac_cv_have_sa_family_t, [
680 #include <sys/types.h>
681 #include <sys/socket.h>
683 [ sa_family_t foo; foo = 1235; ],
684 [ ac_cv_have_sa_family_t="yes" ],
687 #include <sys/types.h>
688 #include <sys/socket.h>
689 #include <netinet/in.h>
691 [ sa_family_t foo; foo = 1235; ],
692 [ ac_cv_have_sa_family_t="yes" ],
694 [ ac_cv_have_sa_family_t="no" ]
698 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
699 AC_DEFINE(HAVE_SA_FAMILY_T)
702 AC_CACHE_CHECK([for pid_t], ac_cv_have_pid_t, [
705 #include <sys/types.h>
707 [ pid_t foo; foo = 1235; ],
708 [ ac_cv_have_pid_t="yes" ],
709 [ ac_cv_have_pid_t="no" ]
712 if test "x$ac_cv_have_pid_t" = "xyes" ; then
713 AC_DEFINE(HAVE_PID_T)
716 AC_CACHE_CHECK([for mode_t], ac_cv_have_mode_t, [
719 #include <sys/types.h>
721 [ mode_t foo; foo = 1235; ],
722 [ ac_cv_have_mode_t="yes" ],
723 [ ac_cv_have_mode_t="no" ]
726 if test "x$ac_cv_have_mode_t" = "xyes" ; then
727 AC_DEFINE(HAVE_MODE_T)
731 AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [
734 #include <sys/types.h>
735 #include <sys/socket.h>
737 [ struct sockaddr_storage s; ],
738 [ ac_cv_have_struct_sockaddr_storage="yes" ],
739 [ ac_cv_have_struct_sockaddr_storage="no" ]
742 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
743 AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE)
746 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [
749 #include <sys/types.h>
750 #include <netinet/in.h>
752 [ struct sockaddr_in6 s; s.sin6_family = 0; ],
753 [ ac_cv_have_struct_sockaddr_in6="yes" ],
754 [ ac_cv_have_struct_sockaddr_in6="no" ]
757 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
758 AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6)
761 AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [
764 #include <sys/types.h>
765 #include <netinet/in.h>
767 [ struct in6_addr s; s.s6_addr[0] = 0; ],
768 [ ac_cv_have_struct_in6_addr="yes" ],
769 [ ac_cv_have_struct_in6_addr="no" ]
772 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
773 AC_DEFINE(HAVE_STRUCT_IN6_ADDR)
776 AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [
779 #include <sys/types.h>
780 #include <sys/socket.h>
783 [ struct addrinfo s; s.ai_flags = AI_PASSIVE; ],
784 [ ac_cv_have_struct_addrinfo="yes" ],
785 [ ac_cv_have_struct_addrinfo="no" ]
788 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
789 AC_DEFINE(HAVE_STRUCT_ADDRINFO)
792 dnl Checks for structure members
793 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP)
794 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
795 OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX)
796 OSSH_CHECK_HEADER_FOR_FIELD(ut_pid, utmp.h, HAVE_PID_IN_UTMP)
797 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmp.h, HAVE_TYPE_IN_UTMP)
798 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmpx.h, HAVE_TYPE_IN_UTMPX)
799 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmp.h, HAVE_TV_IN_UTMP)
800 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmp.h, HAVE_ID_IN_UTMP)
801 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmpx.h, HAVE_ID_IN_UTMPX)
802 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmp.h, HAVE_ADDR_IN_UTMP)
803 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmpx.h, HAVE_ADDR_IN_UTMPX)
804 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmp.h, HAVE_ADDR_V6_IN_UTMP)
805 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmpx.h, HAVE_ADDR_V6_IN_UTMPX)
806 OSSH_CHECK_HEADER_FOR_FIELD(ut_exit, utmp.h, HAVE_EXIT_IN_UTMP)
807 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmp.h, HAVE_TIME_IN_UTMP)
808 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
809 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
812 AC_CACHE_CHECK([for sun_len field in struct sockaddr_un],
813 ac_cv_have_sun_len_in_struct_sockaddr_un, [
816 #include <sys/types.h>
817 #include <sys/socket.h>
819 [ struct sockaddr_un s; s.sun_len = 1; ],
820 [ ac_cv_have_sun_len_in_struct_sockaddr_un="yes" ],
821 [ ac_cv_have_sun_len_in_struct_sockaddr_un="no" ],
824 if test "x$ac_cv_have_sun_len_in_struct_sockaddr_un" = "xyes" ; then
825 AC_DEFINE(HAVE_SUN_LEN_IN_SOCKADDR_UN)
828 AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
829 ac_cv_have_ss_family_in_struct_ss, [
832 #include <sys/types.h>
833 #include <sys/socket.h>
835 [ struct sockaddr_storage s; s.ss_family = 1; ],
836 [ ac_cv_have_ss_family_in_struct_ss="yes" ],
837 [ ac_cv_have_ss_family_in_struct_ss="no" ],
840 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
841 AC_DEFINE(HAVE_SS_FAMILY_IN_SS)
844 AC_CACHE_CHECK([for __ss_family field in struct sockaddr_storage],
845 ac_cv_have___ss_family_in_struct_ss, [
848 #include <sys/types.h>
849 #include <sys/socket.h>
851 [ struct sockaddr_storage s; s.__ss_family = 1; ],
852 [ ac_cv_have___ss_family_in_struct_ss="yes" ],
853 [ ac_cv_have___ss_family_in_struct_ss="no" ]
856 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
857 AC_DEFINE(HAVE___SS_FAMILY_IN_SS)
860 AC_CACHE_CHECK([for pw_class field in struct passwd],
861 ac_cv_have_pw_class_in_struct_passwd, [
866 [ struct passwd p; p.pw_class = 0; ],
867 [ ac_cv_have_pw_class_in_struct_passwd="yes" ],
868 [ ac_cv_have_pw_class_in_struct_passwd="no" ]
871 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
872 AC_DEFINE(HAVE_PW_CLASS_IN_PASSWD)
876 AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [
878 [ extern char *__progname; printf("%s", __progname); ],
879 [ ac_cv_libc_defines___progname="yes" ],
880 [ ac_cv_libc_defines___progname="no" ]
883 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
884 AC_DEFINE(HAVE___PROGNAME)
888 AC_CACHE_CHECK([if libc defines sys_errlist], ac_cv_libc_defines_sys_errlist, [
890 [ extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);],
891 [ ac_cv_libc_defines_sys_errlist="yes" ],
892 [ ac_cv_libc_defines_sys_errlist="no" ]
895 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
896 AC_DEFINE(HAVE_SYS_ERRLIST)
900 AC_CACHE_CHECK([if libc defines sys_nerr], ac_cv_libc_defines_sys_nerr, [
902 [ extern int sys_nerr; printf("%i", sys_nerr);],
903 [ ac_cv_libc_defines_sys_nerr="yes" ],
904 [ ac_cv_libc_defines_sys_nerr="no" ]
907 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
908 AC_DEFINE(HAVE_SYS_NERR)
912 # Looking for programs, paths and files
914 [ --with-rsh=PATH Specify path to remote shell program ],
916 if test "x$withval" != "$no" ; then
921 AC_PATH_PROG(rsh_path, rsh)
926 [ --with-xauth=PATH Specify path to xauth program ],
928 if test "x$withval" != "xno" ; then
933 AC_PATH_PROG(xauth_path, xauth,,$PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin)
934 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
935 xauth_path="/usr/openwin/bin/xauth"
940 if test -z "$xauth_path" ; then
941 XAUTH_PATH="undefined"
944 AC_DEFINE_UNQUOTED(XAUTH_PATH, "$xauth_path")
945 XAUTH_PATH=$xauth_path
948 if test ! -z "$rsh_path" ; then
949 AC_DEFINE_UNQUOTED(RSH_PATH, "$rsh_path")
952 # Check for mail directory (last resort if we cannot get it from headers)
953 if test ! -z "$MAIL" ; then
954 maildir=`dirname $MAIL`
955 AC_DEFINE_UNQUOTED(MAIL_DIRECTORY, "$maildir")
958 if test -z "$no_dev_ptmx" ; then
959 AC_CHECK_FILE("/dev/ptmx",
961 AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)
966 AC_CHECK_FILE("/dev/ptc",
968 AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)
973 # Options from here on. Some of these are preset by platform above
975 # Check for user-specified random device, otherwise check /dev/urandom
977 [ --with-random=FILE read randomness from FILE (default=/dev/urandom)],
979 if test "x$withval" != "xno" ; then
980 RANDOM_POOL="$withval";
981 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
985 # Check for random device
986 AC_CHECK_FILE("/dev/urandom",
988 RANDOM_POOL="/dev/urandom";
989 AC_SUBST(RANDOM_POOL)
990 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
996 # Check for EGD pool file
997 AC_ARG_WITH(egd-pool,
998 [ --with-egd-pool=FILE read randomness from EGD pool FILE (default none)],
1000 if test "x$withval" != "xno" ; then
1001 EGD_SOCKET="$withval";
1002 AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET")
1007 # detect pathnames for entropy gathering commands, if we need them
1008 INSTALL_SSH_PRNG_CMDS=""
1010 if (test -z "$RANDOM_POOL" && test -z "$EGD_SOCKET") ; then
1011 # Use these commands to collect entropy
1012 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
1013 OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat)
1014 OSSH_PATH_ENTROPY_PROG(PROG_ARP, arp)
1015 OSSH_PATH_ENTROPY_PROG(PROG_IFCONFIG, ifconfig)
1016 OSSH_PATH_ENTROPY_PROG(PROG_PS, ps)
1017 OSSH_PATH_ENTROPY_PROG(PROG_W, w)
1018 OSSH_PATH_ENTROPY_PROG(PROG_WHO, who)
1019 OSSH_PATH_ENTROPY_PROG(PROG_LAST, last)
1020 OSSH_PATH_ENTROPY_PROG(PROG_LASTLOG, lastlog)
1021 OSSH_PATH_ENTROPY_PROG(PROG_DF, df)
1022 OSSH_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat)
1023 OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime)
1024 OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs)
1025 OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail)
1026 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
1028 INSTALL_SSH_PRNG_CMDS="yes"
1030 AC_SUBST(INSTALL_SSH_PRNG_CMDS)
1034 [ --with-catman=man|cat Install preformatted manpages[no]],
1037 if test x"$withval" != x"yes" ; then
1043 if test -z "$MANTYPE" ; then
1044 MANTYPE='$(TROFFMAN)'
1052 # Check whether user wants Kerberos support
1054 AC_ARG_WITH(kerberos4,
1055 [ --with-kerberos4=PATH Enable Kerberos 4 support],
1057 if test "x$withval" != "xno" ; then
1059 if test "x$withval" != "xyes" ; then
1060 CFLAGS="$CFLAGS -I${withval}/include"
1061 LDFLAGS="$LDFLAGS -L${withval}/lib"
1062 if test ! -z "$need_dash_r" ; then
1063 LDFLAGS="$LDFLAGS -R${withval}/lib"
1065 if test ! -z "$blibpath" ; then
1066 blibpath="$blibpath:${withval}/lib"
1069 if test -d /usr/include/kerberosIV ; then
1070 CFLAGS="$CFLAGS -I/usr/include/kerberosIV"
1074 AC_CHECK_HEADERS(krb.h)
1075 AC_CHECK_LIB(krb, main)
1076 if test "$ac_cv_header_krb_h" != yes; then
1077 AC_MSG_WARN([Cannot find krb.h, build may fail])
1079 if test "$ac_cv_lib_krb_main" != yes; then
1080 AC_MSG_WARN([Cannot find libkrb, build may fail])
1084 AC_CHECK_LIB(resolv, dn_expand, , )
1092 # Check whether user wants AFS support
1095 [ --with-afs=PATH Enable AFS support],
1097 if test "x$withval" != "xno" ; then
1099 if test "x$withval" != "xyes" ; then
1100 CFLAGS="$CFLAGS -I${withval}/include"
1101 LDFLAGS="$LDFLAGS -L${withval}/lib"
1104 if test -z "$KRB4" ; then
1105 AC_MSG_WARN([AFS requires Kerberos IV support, build may fail])
1109 if test ! -z "$AFS_LIBS" ; then
1110 LIBS="$LIBS $AFS_LIBS"
1119 # Check whether user wants S/Key support
1122 [ --with-skey=PATH Enable S/Key support],
1124 if test "x$withval" != "xno" ; then
1126 if test "x$withval" != "xyes" ; then
1127 CFLAGS="$CFLAGS -I${withval}/include"
1128 LDFLAGS="$LDFLAGS -L${withval}/lib"
1135 AC_CHECK_FUNC(skey_keyinfo,
1138 AC_MSG_ERROR([** Incomplete or missing s/key libraries.])
1144 # Check whether user wants TCP wrappers support
1146 AC_ARG_WITH(tcp-wrappers,
1147 [ --with-tcp-wrappers Enable tcpwrappers support],
1149 if test "x$withval" != "xno" ; then
1152 AC_MSG_CHECKING(for libwrap)
1156 int deny_severity = 0, allow_severity = 0;
1165 AC_MSG_ERROR([*** libwrap missing])
1172 # Check whether to enable MD5 passwords
1174 AC_ARG_WITH(md5-passwords,
1175 [ --with-md5-passwords Enable use of MD5 passwords],
1177 if test "x$withval" != "xno" ; then
1178 AC_DEFINE(HAVE_MD5_PASSWORDS)
1184 # Whether to disable shadow password support
1186 [ --without-shadow Disable shadow password support],
1188 if test "x$withval" = "xno" ; then
1189 AC_DEFINE(DISABLE_SHADOW)
1195 if test -z "$disable_shadow" ; then
1196 AC_MSG_CHECKING([if the systems has expire shadow information])
1199 #include <sys/types.h>
1202 ],[ sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; ],
1203 [ sp_expire_available=yes ], []
1206 if test "x$sp_expire_available" = "xyes" ; then
1208 AC_DEFINE(HAS_SHADOW_EXPIRE)
1214 # Use ip address instead of hostname in $DISPLAY
1215 if test ! -z "$IPADDR_IN_DISPLAY" ; then
1216 DISPLAY_HACK_MSG="yes"
1217 AC_DEFINE(IPADDR_IN_DISPLAY)
1219 DISPLAY_HACK_MSG="no"
1220 AC_ARG_WITH(ipaddr-display,
1221 [ --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY],
1223 if test "x$withval" != "xno" ; then
1224 AC_DEFINE(IPADDR_IN_DISPLAY)
1225 DISPLAY_HACK_MSG="yes"
1231 # Whether to mess with the default path
1232 SERVER_PATH_MSG="(default)"
1233 AC_ARG_WITH(default-path,
1234 [ --with-default-path=PATH Specify default \$PATH environment for server],
1236 if test "x$withval" != "xno" ; then
1237 AC_DEFINE_UNQUOTED(USER_PATH, "$withval")
1238 SERVER_PATH_MSG="$withval"
1243 # Whether to force IPv4 by default (needed on broken glibc Linux)
1245 AC_ARG_WITH(ipv4-default,
1246 [ --with-ipv4-default Use IPv4 by connections unless '-6' specified],
1248 if test "x$withval" != "xno" ; then
1249 AC_DEFINE(IPV4_DEFAULT)
1255 AC_MSG_CHECKING([if we need to convert IPv4 in IPv6-mapped addresses])
1256 IPV4_IN6_HACK_MSG="no"
1258 [ --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses],
1260 if test "x$withval" != "xno" ; then
1262 AC_DEFINE(IPV4_IN_IPV6)
1263 IPV4_IN6_HACK_MSG="yes"
1268 if test "x$inet6_default_4in6" = "xyes"; then
1269 AC_MSG_RESULT([yes (default)])
1270 AC_DEFINE(IPV4_IN_IPV6)
1271 IPV4_IN6_HACK_MSG="yes"
1273 AC_MSG_RESULT([no (default)])
1278 AC_MSG_CHECKING(whether to install ssh as suid root)
1279 AC_ARG_ENABLE(suid-ssh,
1280 [ --enable-suid-ssh Install ssh as suid root (default)
1281 --disable-suid-ssh Install ssh without suid bit],
1282 [ case "$enableval" in
1287 *) AC_MSG_RESULT(yes)
1297 # Where to place sshd.pid
1299 AC_ARG_WITH(pid-dir,
1300 [ --with-pid-dir=PATH Specify location of ssh.pid file],
1302 if test "x$withval" != "xno" ; then
1308 # make sure the directory exists
1309 if test ! -d $piddir ; then
1310 piddir=`eval echo ${sysconfdir}`
1312 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
1316 AC_DEFINE_UNQUOTED(PIDDIR, "$piddir")
1319 dnl allow user to disable some login recording features
1320 AC_ARG_ENABLE(lastlog,
1321 [ --disable-lastlog disable use of lastlog even if detected [no]],
1322 [ AC_DEFINE(DISABLE_LASTLOG) ]
1325 [ --disable-utmp disable use of utmp even if detected [no]],
1326 [ AC_DEFINE(DISABLE_UTMP) ]
1328 AC_ARG_ENABLE(utmpx,
1329 [ --disable-utmpx disable use of utmpx even if detected [no]],
1330 [ AC_DEFINE(DISABLE_UTMPX) ]
1333 [ --disable-wtmp disable use of wtmp even if detected [no]],
1334 [ AC_DEFINE(DISABLE_WTMP) ]
1336 AC_ARG_ENABLE(wtmpx,
1337 [ --disable-wtmpx disable use of wtmpx even if detected [no]],
1338 [ AC_DEFINE(DISABLE_WTMPX) ]
1340 AC_ARG_ENABLE(libutil,
1341 [ --disable-libutil disable use of libutil (login() etc.) [no]],
1342 [ AC_DEFINE(DISABLE_LOGIN) ]
1344 AC_ARG_ENABLE(pututline,
1345 [ --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]],
1346 [ AC_DEFINE(DISABLE_PUTUTLINE) ]
1348 AC_ARG_ENABLE(pututxline,
1349 [ --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]],
1350 [ AC_DEFINE(DISABLE_PUTUTXLINE) ]
1352 AC_ARG_WITH(lastlog,
1353 [ --with-lastlog=FILE|DIR specify lastlog location [common locations]],
1354 [ conf_lastlog_location="$withval"; ],)
1356 dnl lastlog, [uw]tmpx? detection
1357 dnl NOTE: set the paths in the platform section to avoid the
1358 dnl need for command-line parameters
1359 dnl lastlog and [uw]tmp are subject to a file search if all else fails
1361 dnl lastlog detection
1362 dnl NOTE: the code itself will detect if lastlog is a directory
1363 AC_MSG_CHECKING([if your system defines LASTLOG_FILE])
1365 #include <sys/types.h>
1367 #ifdef HAVE_LASTLOG_H
1368 # include <lastlog.h>
1374 [ char *lastlog = LASTLOG_FILE; ],
1375 [ AC_MSG_RESULT(yes) ],
1378 AC_MSG_CHECKING([if your system defines _PATH_LASTLOG])
1380 #include <sys/types.h>
1382 #ifdef HAVE_LASTLOG_H
1383 # include <lastlog.h>
1389 [ char *lastlog = _PATH_LASTLOG; ],
1390 [ AC_MSG_RESULT(yes) ],
1393 system_lastlog_path=no
1398 if test -z "$conf_lastlog_location"; then
1399 if test x"$system_lastlog_path" = x"no" ; then
1400 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
1401 if (test -d "$f" || test -f "$f") ; then
1402 conf_lastlog_location=$f
1405 if test -z "$conf_lastlog_location"; then
1406 AC_MSG_WARN([** Cannot find lastlog **])
1407 dnl Don't define DISABLE_LASTLOG - that means we don't try wtmp/wtmpx
1412 if test -n "$conf_lastlog_location"; then
1413 AC_DEFINE_UNQUOTED(CONF_LASTLOG_FILE, "$conf_lastlog_location")
1417 AC_MSG_CHECKING([if your system defines UTMP_FILE])
1419 #include <sys/types.h>
1425 [ char *utmp = UTMP_FILE; ],
1426 [ AC_MSG_RESULT(yes) ],
1428 system_utmp_path=no ]
1430 if test -z "$conf_utmp_location"; then
1431 if test x"$system_utmp_path" = x"no" ; then
1432 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
1433 if test -f $f ; then
1434 conf_utmp_location=$f
1437 if test -z "$conf_utmp_location"; then
1438 AC_DEFINE(DISABLE_UTMP)
1442 if test -n "$conf_utmp_location"; then
1443 AC_DEFINE_UNQUOTED(CONF_UTMP_FILE, "$conf_utmp_location")
1447 AC_MSG_CHECKING([if your system defines WTMP_FILE])
1449 #include <sys/types.h>
1455 [ char *wtmp = WTMP_FILE; ],
1456 [ AC_MSG_RESULT(yes) ],
1458 system_wtmp_path=no ]
1460 if test -z "$conf_wtmp_location"; then
1461 if test x"$system_wtmp_path" = x"no" ; then
1462 for f in /usr/adm/wtmp /var/log/wtmp; do
1463 if test -f $f ; then
1464 conf_wtmp_location=$f
1467 if test -z "$conf_wtmp_location"; then
1468 AC_DEFINE(DISABLE_WTMP)
1472 if test -n "$conf_wtmp_location"; then
1473 AC_DEFINE_UNQUOTED(CONF_WTMP_FILE, "$conf_wtmp_location")
1477 dnl utmpx detection - I don't know any system so perverse as to require
1478 dnl utmpx, but not define UTMPX_FILE (ditto wtmpx.) No doubt it's out
1480 AC_MSG_CHECKING([if your system defines UTMPX_FILE])
1482 #include <sys/types.h>
1491 [ char *utmpx = UTMPX_FILE; ],
1492 [ AC_MSG_RESULT(yes) ],
1494 system_utmpx_path=no ]
1496 if test -z "$conf_utmpx_location"; then
1497 if test x"$system_utmpx_path" = x"no" ; then
1498 AC_DEFINE(DISABLE_UTMPX)
1501 AC_DEFINE_UNQUOTED(CONF_UTMPX_FILE, "$conf_utmpx_location")
1505 AC_MSG_CHECKING([if your system defines WTMPX_FILE])
1507 #include <sys/types.h>
1516 [ char *wtmpx = WTMPX_FILE; ],
1517 [ AC_MSG_RESULT(yes) ],
1519 system_wtmpx_path=no ]
1521 if test -z "$conf_wtmpx_location"; then
1522 if test x"$system_wtmpx_path" = x"no" ; then
1523 AC_DEFINE(DISABLE_WTMPX)
1526 AC_DEFINE_UNQUOTED(CONF_WTMPX_FILE, "$conf_wtmpx_location")
1530 # Change default command timeout for builtin PRNG
1532 AC_ARG_WITH(entropy-timeout,
1533 [ --with-entropy-timeout Specify entropy gathering command timeout (msec)],
1535 if test "x$withval" != "xno" ; then
1536 entropy_timeout=$withval
1540 AC_DEFINE_UNQUOTED(ENTROPY_TIMEOUT_MSEC, $entropy_timeout)
1543 if test ! -z "$blibpath" ; then
1544 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
1545 AC_MSG_WARN([Please check and edit -blibpath in LDFLAGS in Makefile])
1550 AC_OUTPUT(Makefile ssh_prng_cmds)
1552 # Print summary of options
1554 if test x$MANTYPE = x'$(CATMAN)' ; then
1559 if test ! -z "$RANDOM_POOL" ; then
1560 RAND_MSG="Device ($RANDOM_POOL)"
1562 if test ! -z "$EGD_SOCKET" ; then
1563 RAND_MSG="EGD ($EGD_SOCKET)"
1565 RAND_MSG="Builtin (timeout $entropy_timeout)"
1570 # Someone please show me a better way :)
1571 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
1572 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
1573 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
1574 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
1575 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
1576 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
1577 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
1580 echo "OpenSSH configured has been configured with the following options."
1581 echo " User binaries: $B"
1582 echo " User binaries: $B"
1583 echo " System binaries: $C"
1584 echo " Configuration files: $D"
1585 echo " Askpass program: $E"
1586 echo " Manual pages: $F"
1587 echo " PID file: $G"
1588 echo " Random number collection: $RAND_MSG"
1589 echo " Manpage format: $MAN_MSG"
1590 echo " PAM support: ${PAM_MSG}"
1591 echo " KerberosIV support: $KRB4_MSG"
1592 echo " AFS support: $AFS_MSG"
1593 echo " S/KEY support: $SKEY_MSG"
1594 echo " TCP Wrappers support: $TCPW_MSG"
1595 echo " MD5 password support: $MD5_MSG"
1596 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
1597 echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
1598 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
1602 echo " Host: ${host}"
1603 echo " Compiler: ${CC}"
1604 echo " Compiler flags: ${CFLAGS}"
1605 echo " Linker flags: ${LDFLAGS}"
1606 echo " Libraries: ${LIBS}"
1610 if test ! -z "$BUILTIN_RNG" ; then
1611 echo "WARNING: you are using the builtin random number collection service."
1612 echo "Please read WARNING.RNG and request that your OS vendor includes"
1613 echo "/dev/random in future versions of their OS."