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 # Use LOGIN_PROGRAM from environment if possible
19 if test ! -z "$LOGIN_PROGRAM" ; then
20 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM")
23 AC_PATH_PROG(LOGIN_PROGRAM_FALLBACK, login)
24 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
25 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM_FALLBACK")
29 if test -z "$LD" ; then
36 if test "$GCC" = "yes"; then
37 CFLAGS="$CFLAGS -Wall"
40 CFLAGS="$CFLAGS -I. -I${srcdir-.}"
42 # Check for some target-specific stuff
46 CFLAGS="$CFLAGS -I/usr/local/include"
47 LDFLAGS="$LDFLAGS -L/usr/local/lib"
48 if (test "$LD" != "gcc" && test -z "$blibpath"); then
49 blibpath="/usr/lib:/lib:/usr/local/lib"
51 AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)])
52 AC_DEFINE(BROKEN_GETADDRINFO)
55 dnl AIX handles lastlog as part of its login message
56 AC_DEFINE(DISABLE_LASTLOG)
61 LIBS="$LIBS -lregex /usr/lib/textmode.o"
62 AC_DEFINE(HAVE_CYGWIN)
63 AC_DEFINE(DISABLE_PAM)
64 AC_DEFINE(DISABLE_SHADOW)
65 AC_DEFINE(IPV4_DEFAULT)
66 AC_DEFINE(IP_TOS_IS_BROKEN)
67 AC_DEFINE(BROKEN_VHANGUP)
73 if test -z "$GCC"; then
76 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
79 AC_DEFINE(DISABLE_SHADOW)
80 AC_DEFINE(DISABLE_UTMP)
81 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
87 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
90 AC_DEFINE(DISABLE_SHADOW)
91 AC_DEFINE(DISABLE_UTMP)
92 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
98 CFLAGS="$CFLAGS -I/usr/local/include"
100 PATH="$PATH:/usr/etc"
104 AC_DEFINE(BROKEN_INET_NTOA)
107 CFLAGS="$CFLAGS -I/usr/local/include"
109 PATH="$PATH:/usr/etc"
111 AC_DEFINE(WITH_IRIX_ARRAY)
112 AC_DEFINE(WITH_IRIX_PROJECT)
113 AC_DEFINE(WITH_IRIX_AUDIT)
116 AC_DEFINE(BROKEN_INET_NTOA)
120 AC_DEFINE(DONT_TRY_OTHER_AF)
121 AC_DEFINE(PAM_TTY_KLUDGE)
122 inet6_default_4in6=yes
124 mips-sony-bsd|mips-sony-newsos4)
125 AC_DEFINE(HAVE_NEWS4)
127 AC_CHECK_LIB(iberty, xatexit, AC_DEFINE(HAVE_XATEXIT),
128 AC_MSG_ERROR([*** libiberty missing - please install first ***])
135 conf_lastlog_location="/usr/adm/lastlog"
136 conf_utmp_location=/etc/utmp
137 conf_wtmp_location=/usr/adm/wtmp
140 AC_DEFINE(BROKEN_REALPATH)
141 CFLAGS="$CFLAGS -I/usr/local/include"
144 CFLAGS="$CFLAGS -I/usr/local/include"
145 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib"
147 # hardwire lastlog location (can't detect it on some versions)
148 conf_lastlog_location="/var/adm/lastlog"
149 AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
150 sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'`
151 if test "$sol2ver" -ge 8; then
153 AC_DEFINE(DISABLE_UTMP)
154 AC_DEFINE(DISABLE_WTMP)
160 CFLAGS="$CFLAGS -DSUNOS4"
161 AC_CHECK_FUNCS(getpwanam)
162 conf_utmp_location=/etc/utmp
163 conf_wtmp_location=/var/adm/wtmp
164 conf_lastlog_location=/var/adm/lastlog
170 CFLAGS="$CFLAGS -I/usr/local/include"
171 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib"
173 AC_DEFINE(IP_TOS_IS_BROKEN)
175 LIBS="$LIBS -lgen -lnsl -lucb"
178 CFLAGS="$CFLAGS -I/usr/local/include"
179 LDFLAGS="$LDFLAGS -L/usr/local/lib"
182 LIBS="$LIBS -lgen -lsocket -lnsl -lresolv"
186 CFLAGS="$CFLAGS -I/usr/local/include"
187 LDFLAGS="$LDFLAGS -L/usr/local/lib"
190 LIBS="$LIBS -lgen -lsocket"
194 CFLAGS="$CFLAGS -I/usr/local/include"
195 LDFLAGS="$LDFLAGS -L/usr/local/lib"
198 LIBS="$LIBS -lgen -lsocket"
202 CFLAGS="$CFLAGS -Dftruncate=chsize -I/usr/local/include"
203 LDFLAGS="$LDFLAGS -L/usr/local/lib"
206 LIBS="$LIBS -lgen -lsocket -los -lprot -lx"
209 AC_DEFINE(BROKEN_SYS_TERMIO_H)
210 rsh_path="/usr/bin/rcmd"
211 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
214 CFLAGS="$CFLAGS -I/usr/local/include"
215 LDFLAGS="$LDFLAGS -L/usr/local/lib"
218 LIBS="$LIBS -lgen -lsocket -lprot -lx"
220 rsh_path="/usr/bin/rcmd"
221 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
225 if test ! -z "USE_SIA" ; then
226 AC_MSG_CHECKING(for Digital Unix Security Integration Architecture)
227 if test -f /etc/sia/matrix.conf; then
229 AC_DEFINE(HAVE_OSF_SIA)
230 AC_DEFINE(DISABLE_LOGIN)
231 LIBS="$LIBS -lsecurity -ldb -lm -laud"
239 # Allow user to specify flags
241 [ --with-cflags Specify additional flags to pass to compiler],
243 if test "x$withval" != "xno" ; then
244 CFLAGS="$CFLAGS $withval"
249 [ --with-ldlags Specify additional flags to pass to linker],
251 if test "x$withval" != "xno" ; then
252 LDFLAGS="$LDFLAGS $withval"
257 [ --with-libs Specify additional libraries to link with],
259 if test "x$withval" != "xno" ; then
260 LIBS="$LIBS $withval"
266 # Checks for libraries.
267 AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***]))
268 AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil")
269 AC_CHECK_LIB(pcre, pcre_info,
270 AC_DEFINE(HAVE_LIBPCRE) LIBS="$LIBS -lpcreposix -lpcre")
272 if test -z "$no_libsocket" ; then
273 AC_CHECK_LIB(nsl, yp_match, , )
275 if test -z "$no_libnsl" ; then
276 AC_CHECK_LIB(socket, main, , )
279 # Checks for header files.
280 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)
282 dnl Checks for library functions.
283 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 sigaction sigvec snprintf strerror strlcat strlcpy strsep strtok_r vsnprintf vhangup vis _getpty __b64_ntop)
284 dnl Checks for time functions
285 AC_CHECK_FUNCS(gettimeofday time)
286 dnl Checks for libutil functions
287 AC_CHECK_FUNCS(login logout updwtmp logwtmp)
288 dnl Checks for utmp functions
289 AC_CHECK_FUNCS(entutent getutent getutid getutline pututline setutent)
290 AC_CHECK_FUNCS(utmpname)
291 dnl Checks for utmpx functions
292 AC_CHECK_FUNCS(entutxent getutxent getutxid getutxline pututxline )
293 AC_CHECK_FUNCS(setutxent utmpxname)
295 AC_CHECK_FUNC(getuserattr,
296 [AC_DEFINE(HAVE_GETUSERATTR)],
297 [AC_CHECK_LIB(s, getuserattr, [LIBS="$LIBS -ls"; AC_DEFINE(HAVE_GETUSERATTR)])]
301 [AC_DEFINE(HAVE_LOGIN)],
302 [AC_CHECK_LIB(bsd, login, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_LOGIN)])]
305 AC_CHECK_FUNC(daemon,
306 [AC_DEFINE(HAVE_DAEMON)],
307 [AC_CHECK_LIB(bsd, daemon, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])]
310 AC_CHECK_FUNC(getpagesize,
311 [AC_DEFINE(HAVE_GETPAGESIZE)],
312 [AC_CHECK_LIB(ucb, getpagesize, [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])]
315 # Check for broken snprintf
316 if test "x$ac_cv_func_snprintf" = "xyes" ; then
317 AC_MSG_CHECKING([whether snprintf correctly terminates long strings])
321 int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
323 [AC_MSG_RESULT(yes)],
326 AC_DEFINE(BROKEN_SNPRINTF)
327 AC_MSG_WARN([****** Your snprintf() function is broken, complain to your vendor])
336 [ --without-pam Disable PAM support ],
338 if test "x$withval" = "xno" ; then
340 AC_DEFINE(DISABLE_PAM)
345 if (test -z "$no_pam" && test "x$ac_cv_header_security_pam_appl_h" = "xyes") ; then
346 AC_CHECK_LIB(dl, dlopen, , )
349 AC_CHECK_FUNCS(pam_getenvlist)
355 # Check PAM strerror arguments (old PAM)
356 AC_MSG_CHECKING([whether pam_strerror takes only one argument])
360 #include <security/pam_appl.h>
362 [(void)pam_strerror((pam_handle_t *)NULL, -1);],
365 AC_DEFINE(HAVE_OLD_PAM)
367 PAM_MSG="yes (old library)"
372 # The big search for OpenSSL
374 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
376 if test "x$withval" != "$xno" ; then
383 saved_LDFLAGS="$LDFLAGS"
384 saved_CFLAGS="$CFLAGS"
385 if test "x$prefix" != "xNONE" ; then
386 tryssldir="$tryssldir $prefix"
388 AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
390 for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
391 if test ! -z "$ssldir" ; then
392 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
393 CFLAGS="$saved_CFLAGS -I$ssldir/include"
394 if test ! -z "$need_dash_r" ; then
395 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
398 LDFLAGS="$saved_LDFLAGS"
401 LIBS="$saved_LIBS -lcrypto"
403 # Basic test to check for compatible version and correct linking
404 # *does not* test for RSA - that comes later.
408 #include <openssl/rand.h>
412 memset(a, 0, sizeof(a));
413 RAND_add(a, sizeof(a), sizeof(a));
414 return(RAND_status() <= 0);
423 if test ! -z "$found_crypto" ; then
428 if test -z "$found_crypto" ; then
429 AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install])
431 if test -z "$ssldir" ; then
435 ac_cv_openssldir=$ssldir
438 if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then
439 AC_DEFINE(HAVE_OPENSSL)
440 dnl Need to recover ssldir - test above runs in subshell
441 ssldir=$ac_cv_openssldir
442 CFLAGS="$saved_CFLAGS -I$ssldir/include"
443 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
444 if test ! -z "$need_dash_r" ; then
445 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
447 if test ! -z "$blibpath" ; then
448 blibpath="$blibpath:$ssldir:$ssldir/lib"
451 LIBS="$saved_LIBS -lcrypto"
453 # Now test RSA support
455 AC_MSG_CHECKING([for RSA support])
456 for WANTS_RSAREF in "" 1 ; do
457 if test -z "$WANTS_RSAREF" ; then
460 LIBS="$saved_LIBS -lRSAglue -lrsaref"
464 #include <openssl/rand.h>
465 #include <openssl/rsa.h>
466 #include <openssl/bn.h>
467 #include <openssl/sha.h>
470 int num; RSA *key; static unsigned char p_in[] = "blahblah";
471 unsigned char c[256], p[256];
472 memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
473 if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
474 num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
475 return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
484 if test ! -z "$no_rsa" ; then
485 AC_MSG_RESULT(disabled)
488 if test -z "$rsa_works" ; then
489 AC_MSG_WARN([*** No RSA support found *** ])
492 if test -z "$WANTS_RSAREF" ; then
496 RSA_MSG="yes (using RSAref)"
497 AC_MSG_RESULT(using RSAref)
498 LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
503 # Cheap hack to ensure NEWS-OS libraries are arranged right.
504 if test ! -z "$SONY" ; then
505 LIBS="$LIBS -liberty";
508 # Checks for data types
509 AC_CHECK_SIZEOF(char, 1)
510 AC_CHECK_SIZEOF(short int, 2)
511 AC_CHECK_SIZEOF(int, 4)
512 AC_CHECK_SIZEOF(long int, 4)
513 AC_CHECK_SIZEOF(long long int, 8)
515 # More checks for data types
516 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
518 [ #include <sys/types.h> ],
520 [ ac_cv_have_u_int="yes" ],
521 [ ac_cv_have_u_int="no" ]
524 if test "x$ac_cv_have_u_int" = "xyes" ; then
525 AC_DEFINE(HAVE_U_INT)
529 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
531 [ #include <sys/types.h> ],
532 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
533 [ ac_cv_have_intxx_t="yes" ],
534 [ ac_cv_have_intxx_t="no" ]
537 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
538 AC_DEFINE(HAVE_INTXX_T)
542 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
544 [ #include <sys/types.h> ],
545 [ int64_t a; a = 1;],
546 [ ac_cv_have_int64_t="yes" ],
547 [ ac_cv_have_int64_t="no" ]
550 if test "x$ac_cv_have_int64_t" = "xyes" ; then
551 AC_DEFINE(HAVE_INT64_T)
555 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
557 [ #include <sys/types.h> ],
558 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
559 [ ac_cv_have_u_intxx_t="yes" ],
560 [ ac_cv_have_u_intxx_t="no" ]
563 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
564 AC_DEFINE(HAVE_U_INTXX_T)
568 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
570 [ #include <sys/types.h> ],
571 [ u_int64_t a; a = 1;],
572 [ ac_cv_have_u_int64_t="yes" ],
573 [ ac_cv_have_u_int64_t="no" ]
576 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
577 AC_DEFINE(HAVE_U_INT64_T)
581 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
582 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
584 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
587 #include <sys/bitypes.h>
590 int8_t a; int16_t b; int32_t c;
591 u_int8_t e; u_int16_t f; u_int32_t g;
592 a = b = c = e = f = g = 1;
595 AC_DEFINE(HAVE_U_INTXX_T)
596 AC_DEFINE(HAVE_INTXX_T)
603 if test -z "$have_u_intxx_t" ; then
604 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
607 #include <sys/types.h>
609 [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ],
610 [ ac_cv_have_uintxx_t="yes" ],
611 [ ac_cv_have_uintxx_t="no" ]
614 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
615 AC_DEFINE(HAVE_UINTXX_T)
619 AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [
622 #include <sys/types.h>
623 #include <sys/socket.h>
625 [socklen_t foo; foo = 1235;],
626 [ ac_cv_have_socklen_t="yes" ],
627 [ ac_cv_have_socklen_t="no" ]
630 if test "x$ac_cv_have_socklen_t" = "xyes" ; then
631 AC_DEFINE(HAVE_SOCKLEN_T)
634 AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [
637 #include <sys/types.h>
639 [ size_t foo; foo = 1235; ],
640 [ ac_cv_have_size_t="yes" ],
641 [ ac_cv_have_size_t="no" ]
644 if test "x$ac_cv_have_size_t" = "xyes" ; then
645 AC_DEFINE(HAVE_SIZE_T)
648 AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [
651 #include <sys/types.h>
653 [ ssize_t foo; foo = 1235; ],
654 [ ac_cv_have_ssize_t="yes" ],
655 [ ac_cv_have_ssize_t="no" ]
658 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
659 AC_DEFINE(HAVE_SSIZE_T)
662 AC_CACHE_CHECK([for sa_family_t], ac_cv_have_sa_family_t, [
665 #include <sys/types.h>
666 #include <sys/socket.h>
668 [ sa_family_t foo; foo = 1235; ],
669 [ ac_cv_have_sa_family_t="yes" ],
672 #include <sys/types.h>
673 #include <sys/socket.h>
674 #include <netinet/in.h>
676 [ sa_family_t foo; foo = 1235; ],
677 [ ac_cv_have_sa_family_t="yes" ],
679 [ ac_cv_have_sa_family_t="no" ]
683 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
684 AC_DEFINE(HAVE_SA_FAMILY_T)
687 AC_CACHE_CHECK([for pid_t], ac_cv_have_pid_t, [
690 #include <sys/types.h>
692 [ pid_t foo; foo = 1235; ],
693 [ ac_cv_have_pid_t="yes" ],
694 [ ac_cv_have_pid_t="no" ]
697 if test "x$ac_cv_have_pid_t" = "xyes" ; then
698 AC_DEFINE(HAVE_PID_T)
701 AC_CACHE_CHECK([for mode_t], ac_cv_have_mode_t, [
704 #include <sys/types.h>
706 [ mode_t foo; foo = 1235; ],
707 [ ac_cv_have_mode_t="yes" ],
708 [ ac_cv_have_mode_t="no" ]
711 if test "x$ac_cv_have_mode_t" = "xyes" ; then
712 AC_DEFINE(HAVE_MODE_T)
716 AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [
719 #include <sys/types.h>
720 #include <sys/socket.h>
722 [ struct sockaddr_storage s; ],
723 [ ac_cv_have_struct_sockaddr_storage="yes" ],
724 [ ac_cv_have_struct_sockaddr_storage="no" ]
727 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
728 AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE)
731 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [
734 #include <sys/types.h>
735 #include <netinet/in.h>
737 [ struct sockaddr_in6 s; s.sin6_family = 0; ],
738 [ ac_cv_have_struct_sockaddr_in6="yes" ],
739 [ ac_cv_have_struct_sockaddr_in6="no" ]
742 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
743 AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6)
746 AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [
749 #include <sys/types.h>
750 #include <netinet/in.h>
752 [ struct in6_addr s; s.s6_addr[0] = 0; ],
753 [ ac_cv_have_struct_in6_addr="yes" ],
754 [ ac_cv_have_struct_in6_addr="no" ]
757 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
758 AC_DEFINE(HAVE_STRUCT_IN6_ADDR)
761 AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [
764 #include <sys/types.h>
765 #include <sys/socket.h>
768 [ struct addrinfo s; s.ai_flags = AI_PASSIVE; ],
769 [ ac_cv_have_struct_addrinfo="yes" ],
770 [ ac_cv_have_struct_addrinfo="no" ]
773 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
774 AC_DEFINE(HAVE_STRUCT_ADDRINFO)
777 dnl Checks for structure members
778 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP)
779 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
780 OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX)
781 OSSH_CHECK_HEADER_FOR_FIELD(ut_pid, utmp.h, HAVE_PID_IN_UTMP)
782 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmp.h, HAVE_TYPE_IN_UTMP)
783 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmpx.h, HAVE_TYPE_IN_UTMPX)
784 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmp.h, HAVE_TV_IN_UTMP)
785 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmp.h, HAVE_ID_IN_UTMP)
786 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmpx.h, HAVE_ID_IN_UTMPX)
787 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmp.h, HAVE_ADDR_IN_UTMP)
788 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmpx.h, HAVE_ADDR_IN_UTMPX)
789 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmp.h, HAVE_ADDR_V6_IN_UTMP)
790 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmpx.h, HAVE_ADDR_V6_IN_UTMPX)
791 OSSH_CHECK_HEADER_FOR_FIELD(ut_exit, utmp.h, HAVE_EXIT_IN_UTMP)
792 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmp.h, HAVE_TIME_IN_UTMP)
793 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
794 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
797 AC_CACHE_CHECK([for sun_len field in struct sockaddr_un],
798 ac_cv_have_sun_len_in_struct_sockaddr_un, [
801 #include <sys/types.h>
802 #include <sys/socket.h>
804 [ struct sockaddr_un s; s.sun_len = 1; ],
805 [ ac_cv_have_sun_len_in_struct_sockaddr_un="yes" ],
806 [ ac_cv_have_sun_len_in_struct_sockaddr_un="no" ],
809 if test "x$ac_cv_have_sun_len_in_struct_sockaddr_un" = "xyes" ; then
810 AC_DEFINE(HAVE_SUN_LEN_IN_SOCKADDR_UN)
813 AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
814 ac_cv_have_ss_family_in_struct_ss, [
817 #include <sys/types.h>
818 #include <sys/socket.h>
820 [ struct sockaddr_storage s; s.ss_family = 1; ],
821 [ ac_cv_have_ss_family_in_struct_ss="yes" ],
822 [ ac_cv_have_ss_family_in_struct_ss="no" ],
825 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
826 AC_DEFINE(HAVE_SS_FAMILY_IN_SS)
829 AC_CACHE_CHECK([for __ss_family field in struct sockaddr_storage],
830 ac_cv_have___ss_family_in_struct_ss, [
833 #include <sys/types.h>
834 #include <sys/socket.h>
836 [ struct sockaddr_storage s; s.__ss_family = 1; ],
837 [ ac_cv_have___ss_family_in_struct_ss="yes" ],
838 [ ac_cv_have___ss_family_in_struct_ss="no" ]
841 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
842 AC_DEFINE(HAVE___SS_FAMILY_IN_SS)
845 AC_CACHE_CHECK([for pw_class field in struct passwd],
846 ac_cv_have_pw_class_in_struct_passwd, [
851 [ struct passwd p; p.pw_class = 0; ],
852 [ ac_cv_have_pw_class_in_struct_passwd="yes" ],
853 [ ac_cv_have_pw_class_in_struct_passwd="no" ]
856 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
857 AC_DEFINE(HAVE_PW_CLASS_IN_PASSWD)
861 AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [
863 [ extern char *__progname; printf("%s", __progname); ],
864 [ ac_cv_libc_defines___progname="yes" ],
865 [ ac_cv_libc_defines___progname="no" ]
868 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
869 AC_DEFINE(HAVE___PROGNAME)
873 AC_CACHE_CHECK([if libc defines sys_errlist], ac_cv_libc_defines_sys_errlist, [
875 [ extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);],
876 [ ac_cv_libc_defines_sys_errlist="yes" ],
877 [ ac_cv_libc_defines_sys_errlist="no" ]
880 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
881 AC_DEFINE(HAVE_SYS_ERRLIST)
885 AC_CACHE_CHECK([if libc defines sys_nerr], ac_cv_libc_defines_sys_nerr, [
887 [ extern int sys_nerr; printf("%i", sys_nerr);],
888 [ ac_cv_libc_defines_sys_nerr="yes" ],
889 [ ac_cv_libc_defines_sys_nerr="no" ]
892 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
893 AC_DEFINE(HAVE_SYS_NERR)
897 # Looking for programs, paths and files
899 [ --with-rsh=PATH Specify path to remote shell program ],
901 if test "x$withval" != "$no" ; then
906 AC_PATH_PROG(rsh_path, rsh)
911 [ --with-xauth=PATH Specify path to xauth program ],
913 if test "x$withval" != "$xno" ; then
918 AC_PATH_PROG(xauth_path, xauth,,$PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin)
919 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
920 xauth_path="/usr/openwin/bin/xauth"
925 if test ! -z "$xauth_path" ; then
926 AC_DEFINE_UNQUOTED(XAUTH_PATH, "$xauth_path")
928 if test ! -z "$rsh_path" ; then
929 AC_DEFINE_UNQUOTED(RSH_PATH, "$rsh_path")
932 # Check for mail directory (last resort if we cannot get it from headers)
933 if test ! -z "$MAIL" ; then
934 maildir=`dirname $MAIL`
935 AC_DEFINE_UNQUOTED(MAIL_DIRECTORY, "$maildir")
938 if test -z "$no_dev_ptmx" ; then
939 AC_CHECK_FILE("/dev/ptmx",
941 AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)
946 AC_CHECK_FILE("/dev/ptc",
948 AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)
953 # Options from here on. Some of these are preset by platform above
955 # Check for user-specified random device, otherwise check /dev/urandom
957 [ --with-random=FILE read randomness from FILE (default=/dev/urandom)],
959 if test "x$withval" != "xno" ; then
960 RANDOM_POOL="$withval";
961 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
965 # Check for random device
966 AC_CHECK_FILE("/dev/urandom",
968 RANDOM_POOL="/dev/urandom";
969 AC_SUBST(RANDOM_POOL)
970 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
976 # Check for EGD pool file
977 AC_ARG_WITH(egd-pool,
978 [ --with-egd-pool=FILE read randomness from EGD pool FILE (default none)],
980 if test "x$withval" != "xno" ; then
981 EGD_SOCKET="$withval";
982 AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET")
987 # detect pathnames for entropy gathering commands, if we need them
988 INSTALL_SSH_PRNG_CMDS=""
990 if (test -z "$RANDOM_POOL" && test -z "$EGD_SOCKET") ; then
991 # Use these commands to collect entropy
992 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
993 OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat)
994 OSSH_PATH_ENTROPY_PROG(PROG_ARP, arp)
995 OSSH_PATH_ENTROPY_PROG(PROG_IFCONFIG, ifconfig)
996 OSSH_PATH_ENTROPY_PROG(PROG_PS, ps)
997 OSSH_PATH_ENTROPY_PROG(PROG_W, w)
998 OSSH_PATH_ENTROPY_PROG(PROG_WHO, who)
999 OSSH_PATH_ENTROPY_PROG(PROG_LAST, last)
1000 OSSH_PATH_ENTROPY_PROG(PROG_LASTLOG, lastlog)
1001 OSSH_PATH_ENTROPY_PROG(PROG_DF, df)
1002 OSSH_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat)
1003 OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime)
1004 OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs)
1005 OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail)
1006 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
1008 INSTALL_SSH_PRNG_CMDS="yes"
1010 AC_SUBST(INSTALL_SSH_PRNG_CMDS)
1014 [ --with-catman=man|cat Install preformatted manpages[no]],
1017 if test x"$withval" != x"yes" ; then
1023 if test -z "$MANTYPE" ; then
1024 MANTYPE='$(TROFFMAN)'
1032 # Check whether user wants Kerberos support
1034 AC_ARG_WITH(kerberos4,
1035 [ --with-kerberos4=PATH Enable Kerberos 4 support],
1037 if test "x$withval" != "xno" ; then
1039 if test "x$withval" != "$xyes" ; then
1040 CFLAGS="$CFLAGS -I${withval}/include"
1041 LDFLAGS="$LDFLAGS -L${withval}/lib"
1042 if test ! -z "$need_dash_r" ; then
1043 LDFLAGS="$LDFLAGS -R${withval}/lib"
1045 if test ! -z "$blibpath" ; then
1046 blibpath="$blibpath:${withval}/lib"
1049 if test -d /usr/include/kerberosIV ; then
1050 CFLAGS="$CFLAGS -I/usr/include/kerberosIV"
1054 AC_CHECK_HEADERS(krb.h)
1055 AC_CHECK_LIB(krb, main)
1056 if test "$ac_cv_header_krb_h" != yes; then
1057 AC_MSG_WARN([Cannot find krb.h, build may fail])
1059 if test "$ac_cv_lib_krb_main" != yes; then
1060 AC_MSG_WARN([Cannot find libkrb, build may fail])
1064 AC_CHECK_LIB(resolv, dn_expand, , )
1072 # Check whether user wants AFS support
1075 [ --with-afs=PATH Enable AFS support],
1077 if test "x$withval" != "xno" ; then
1079 if test "x$withval" != "$xyes" ; then
1080 CFLAGS="$CFLAGS -I${withval}/include"
1081 LFLAGS="$LFLAGS -L${withval}/lib"
1084 if test -z "$KRB4" ; then
1085 AC_MSG_WARN([AFS requires Kerberos IV support, build may fail])
1089 if test ! -z "$AFS_LIBS" ; then
1090 LIBS="$LIBS $AFS_LIBS"
1099 # Check whether user wants S/Key support
1102 [ --with-skey Enable S/Key support],
1104 if test "x$withval" != "xno" ; then
1112 # Check whether user wants TCP wrappers support
1114 AC_ARG_WITH(tcp-wrappers,
1115 [ --with-tcp-wrappers Enable tcpwrappers support],
1117 if test "x$withval" != "xno" ; then
1120 AC_MSG_CHECKING(for libwrap)
1124 int deny_severity = 0, allow_severity = 0;
1133 AC_MSG_ERROR([*** libwrap missing])
1140 # Check whether to enable MD5 passwords
1142 AC_ARG_WITH(md5-passwords,
1143 [ --with-md5-passwords Enable use of MD5 passwords],
1145 if test "x$withval" != "xno" ; then
1146 AC_DEFINE(HAVE_MD5_PASSWORDS)
1152 # Whether to disable shadow password support
1154 [ --without-shadow Disable shadow password support],
1156 if test "x$withval" = "xno" ; then
1157 AC_DEFINE(DISABLE_SHADOW)
1163 if test -z "$disable_shadow" ; then
1164 AC_MSG_CHECKING([if the systems has expire shadow information])
1167 #include <sys/types.h>
1170 ],[ sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; ],
1171 [ sp_expire_available=yes ], []
1174 if test "x$sp_expire_available" = "xyes" ; then
1176 AC_DEFINE(HAS_SHADOW_EXPIRE)
1182 # Use ip address instead of hostname in $DISPLAY
1183 if test ! -z "$IPADDR_IN_DISPLAY" ; then
1184 DISPLAY_HACK_MSG="yes"
1185 AC_DEFINE(IPADDR_IN_DISPLAY)
1187 DISPLAY_HACK_MSG="no"
1188 AC_ARG_WITH(ipaddr-display,
1189 [ --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY],
1191 if test "x$withval" != "xno" ; then
1192 AC_DEFINE(IPADDR_IN_DISPLAY)
1193 DISPLAY_HACK_MSG="yes"
1199 # Whether to mess with the default path
1200 SERVER_PATH_MSG="(default)"
1201 AC_ARG_WITH(default-path,
1202 [ --with-default-path=PATH Specify default \$PATH environment for server],
1204 if test "x$withval" != "xno" ; then
1205 AC_DEFINE_UNQUOTED(USER_PATH, "$withval")
1206 SERVER_PATH_MSG="$withval"
1211 # Whether to force IPv4 by default (needed on broken glibc Linux)
1213 AC_ARG_WITH(ipv4-default,
1214 [ --with-ipv4-default Use IPv4 by connections unless '-6' specified],
1216 if test "x$withval" != "xno" ; then
1217 AC_DEFINE(IPV4_DEFAULT)
1223 AC_MSG_CHECKING([if we need to convert IPv4 in IPv6-mapped addresses])
1224 IPV4_IN6_HACK_MSG="no"
1226 [ --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses],
1228 if test "x$withval" != "xno" ; then
1230 AC_DEFINE(IPV4_IN_IPV6)
1231 IPV4_IN6_HACK_MSG="yes"
1236 if test "x$inet6_default_4in6" = "xyes"; then
1237 AC_MSG_RESULT([yes (default)])
1238 AC_DEFINE(IPV4_IN_IPV6)
1239 IPV4_IN6_HACK_MSG="yes"
1241 AC_MSG_RESULT([no (default)])
1246 AC_MSG_CHECKING(whether to install ssh as suid root)
1247 AC_ARG_ENABLE(suid-ssh,
1248 [ --enable-suid-ssh Install ssh as suid root (default)
1249 --disable-suid-ssh Install ssh without suid bit],
1250 [ case "$enableval" in
1255 *) AC_MSG_RESULT(yes)
1265 # Where to place sshd.pid
1267 AC_ARG_WITH(pid-dir,
1268 [ --with-pid-dir=PATH Specify location of ssh.pid file],
1270 if test "x$withval" != "xno" ; then
1276 # make sure the directory exists
1277 if test ! -d $piddir ; then
1278 piddir=`eval echo ${sysconfdir}`
1280 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
1284 AC_DEFINE_UNQUOTED(PIDDIR, "$piddir")
1287 dnl allow user to disable some login recording features
1288 AC_ARG_ENABLE(lastlog,
1289 [ --disable-lastlog disable use of lastlog even if detected [no]],
1290 [ AC_DEFINE(DISABLE_LASTLOG) ]
1293 [ --disable-utmp disable use of utmp even if detected [no]],
1294 [ AC_DEFINE(DISABLE_UTMP) ]
1296 AC_ARG_ENABLE(utmpx,
1297 [ --disable-utmpx disable use of utmpx even if detected [no]],
1298 [ AC_DEFINE(DISABLE_UTMPX) ]
1301 [ --disable-wtmp disable use of wtmp even if detected [no]],
1302 [ AC_DEFINE(DISABLE_WTMP) ]
1304 AC_ARG_ENABLE(wtmpx,
1305 [ --disable-wtmpx disable use of wtmpx even if detected [no]],
1306 [ AC_DEFINE(DISABLE_WTMPX) ]
1308 AC_ARG_ENABLE(libutil,
1309 [ --disable-libutil disable use of libutil (login() etc.) [no]],
1310 [ AC_DEFINE(DISABLE_LOGIN) ]
1312 AC_ARG_ENABLE(pututline,
1313 [ --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]],
1314 [ AC_DEFINE(DISABLE_PUTUTLINE) ]
1316 AC_ARG_ENABLE(pututxline,
1317 [ --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]],
1318 [ AC_DEFINE(DISABLE_PUTUTXLINE) ]
1320 AC_ARG_WITH(lastlog,
1321 [ --with-lastlog=FILE|DIR specify lastlog location [common locations]],
1322 [ conf_lastlog_location="$withval"; ],)
1324 dnl lastlog, [uw]tmpx? detection
1325 dnl NOTE: set the paths in the platform section to avoid the
1326 dnl need for command-line parameters
1327 dnl lastlog and [uw]tmp are subject to a file search if all else fails
1329 dnl lastlog detection
1330 dnl NOTE: the code itself will detect if lastlog is a directory
1331 AC_MSG_CHECKING([if your system defines LASTLOG_FILE])
1333 #include <sys/types.h>
1335 #ifdef HAVE_LASTLOG_H
1336 # include <lastlog.h>
1342 [ char *lastlog = LASTLOG_FILE; ],
1343 [ AC_MSG_RESULT(yes) ],
1346 AC_MSG_CHECKING([if your system defines _PATH_LASTLOG])
1348 #include <sys/types.h>
1350 #ifdef HAVE_LASTLOG_H
1351 # include <lastlog.h>
1357 [ char *lastlog = _PATH_LASTLOG; ],
1358 [ AC_MSG_RESULT(yes) ],
1361 system_lastlog_path=no
1366 if test -z "$conf_lastlog_location"; then
1367 if test x"$system_lastlog_path" = x"no" ; then
1368 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
1369 if (test -d "$f" || test -f "$f") ; then
1370 conf_lastlog_location=$f
1373 if test -z "$conf_lastlog_location"; then
1374 AC_MSG_WARN([** Cannot find lastlog **])
1375 dnl Don't define DISABLE_LASTLOG - that means we don't try wtmp/wtmpx
1380 if test -n "$conf_lastlog_location"; then
1381 AC_DEFINE_UNQUOTED(CONF_LASTLOG_FILE, "$conf_lastlog_location")
1385 AC_MSG_CHECKING([if your system defines UTMP_FILE])
1387 #include <sys/types.h>
1393 [ char *utmp = UTMP_FILE; ],
1394 [ AC_MSG_RESULT(yes) ],
1396 system_utmp_path=no ]
1398 if test -z "$conf_utmp_location"; then
1399 if test x"$system_utmp_path" = x"no" ; then
1400 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
1401 if test -f $f ; then
1402 conf_utmp_location=$f
1405 if test -z "$conf_utmp_location"; then
1406 AC_DEFINE(DISABLE_UTMP)
1410 if test -n "$conf_utmp_location"; then
1411 AC_DEFINE_UNQUOTED(CONF_UTMP_FILE, "$conf_utmp_location")
1415 AC_MSG_CHECKING([if your system defines WTMP_FILE])
1417 #include <sys/types.h>
1423 [ char *wtmp = WTMP_FILE; ],
1424 [ AC_MSG_RESULT(yes) ],
1426 system_wtmp_path=no ]
1428 if test -z "$conf_wtmp_location"; then
1429 if test x"$system_wtmp_path" = x"no" ; then
1430 for f in /usr/adm/wtmp /var/log/wtmp; do
1431 if test -f $f ; then
1432 conf_wtmp_location=$f
1435 if test -z "$conf_wtmp_location"; then
1436 AC_DEFINE(DISABLE_WTMP)
1440 if test -n "$conf_wtmp_location"; then
1441 AC_DEFINE_UNQUOTED(CONF_WTMP_FILE, "$conf_wtmp_location")
1445 dnl utmpx detection - I don't know any system so perverse as to require
1446 dnl utmpx, but not define UTMPX_FILE (ditto wtmpx.) No doubt it's out
1448 AC_MSG_CHECKING([if your system defines UTMPX_FILE])
1450 #include <sys/types.h>
1459 [ char *utmpx = UTMPX_FILE; ],
1460 [ AC_MSG_RESULT(yes) ],
1462 system_utmpx_path=no ]
1464 if test -z "$conf_utmpx_location"; then
1465 if test x"$system_utmpx_path" = x"no" ; then
1466 AC_DEFINE(DISABLE_UTMPX)
1469 AC_DEFINE_UNQUOTED(CONF_UTMPX_FILE, "$conf_utmpx_location")
1473 AC_MSG_CHECKING([if your system defines WTMPX_FILE])
1475 #include <sys/types.h>
1484 [ char *wtmpx = WTMPX_FILE; ],
1485 [ AC_MSG_RESULT(yes) ],
1487 system_wtmpx_path=no ]
1489 if test -z "$conf_wtmpx_location"; then
1490 if test x"$system_wtmpx_path" = x"no" ; then
1491 AC_DEFINE(DISABLE_WTMPX)
1494 AC_DEFINE_UNQUOTED(CONF_WTMPX_FILE, "$conf_wtmpx_location")
1498 # Change default command timeout for builtin PRNG
1500 AC_ARG_WITH(entropy-timeout,
1501 [ --with-entropy-timeout Specify entropy gathering command timeout (msec)],
1503 if test "x$withval" != "xno" ; then
1504 entropy_timeout=$withval
1508 AC_DEFINE_UNQUOTED(ENTROPY_TIMEOUT_MSEC, $entropy_timeout)
1511 if test ! -z "$blibpath" ; then
1512 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
1513 AC_MSG_WARN([Please check and edit -blibpath in LDFLAGS in Makefile])
1518 AC_OUTPUT(Makefile ssh_prng_cmds)
1520 # Print summary of options
1522 if test x$MANTYPE = x'$(CATMAN)' ; then
1527 if test ! -z "$RANDOM_POOL" ; then
1528 RAND_MSG="Device ($RANDOM_POOL)"
1530 if test ! -z "$EGD_SOCKET" ; then
1531 RAND_MSG="EGD ($EGD_SOCKET)"
1533 RAND_MSG="Builtin (timeout $entropy_timeout)"
1537 # Someone please show me a better way :)
1538 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
1539 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
1540 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
1541 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
1542 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
1543 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
1544 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
1547 echo "OpenSSH configured has been configured with the following options."
1548 echo " User binaries: $B"
1549 echo " User binaries: $B"
1550 echo " System binaries: $C"
1551 echo " Configuration files: $D"
1552 echo " Askpass program: $E"
1553 echo " Manual pages: $F"
1554 echo " PID file: $G"
1555 echo " Random number collection: $RAND_MSG"
1556 echo " Manpage format: $MAN_MSG"
1557 echo " PAM support: ${PAM_MSG}"
1558 echo " KerberosIV support: $KRB4_MSG"
1559 echo " AFS support: $AFS_MSG"
1560 echo " S/KEY support: $SKEY_MSG"
1561 echo " TCP Wrappers support: $TCPW_MSG"
1562 echo " MD5 password support: $MD5_MSG"
1563 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
1564 echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
1565 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
1569 echo " Host: ${host}"
1570 echo " Compiler: ${CC}"
1571 echo " Compiler flags: ${CFLAGS}"
1572 echo " Linker flags: ${LDFLAGS}"
1573 echo " Libraries: ${LIBS}"