]> andersk Git - openssh.git/blame - configure.in
- (djm) Sync $sysconfdir/moduli
[openssh.git] / configure.in
CommitLineData
0b202697 1# $Id$
2
4cca272e 3AC_INIT(ssh.c)
5881cd60 4
5AC_CONFIG_HEADER(config.h)
b14b2ae7 6AC_PROG_CC
a7effaac 7AC_CANONICAL_HOST
cf0c5df5 8AC_C_BIGENDIAN
5881cd60 9
a0391976 10# Checks for programs.
4cca272e 11AC_PROG_CPP
5881cd60 12AC_PROG_RANLIB
cf8dd513 13AC_PROG_INSTALL
bee0a37e 14AC_PATH_PROG(AR, ar)
13dd877b 15AC_PATH_PROGS(PERL, perl5 perl)
a0f84251 16AC_SUBST(PERL)
ad85db64 17AC_PATH_PROG(ENT, ent)
18AC_SUBST(ENT)
77bb0bca 19AC_PATH_PROGS(FILEPRIV, filepriv, true, /sbin:/usr/sbin)
6958bd37 20AC_PATH_PROG(TEST_MINUS_S_SH, bash)
21AC_PATH_PROG(TEST_MINUS_S_SH, ksh)
22AC_PATH_PROG(TEST_MINUS_S_SH, sh)
f498ed15 23
c193d002 24if test -z "$AR" ; then
25 AC_MSG_ERROR([*** 'ar' missing, please install or fix your \$PATH ***])
26fi
27
2e73a022 28# Use LOGIN_PROGRAM from environment if possible
29if test ! -z "$LOGIN_PROGRAM" ; then
30 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM")
31else
32 # Search for login
33 AC_PATH_PROG(LOGIN_PROGRAM_FALLBACK, login)
34 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
35 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM_FALLBACK")
36 fi
37fi
38
d423d822 39if test -z "$LD" ; then
40 LD=$CC
41fi
42AC_SUBST(LD)
43
d423d822 44AC_C_INLINE
5ed2bb5b 45if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
46 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
d423d822 47fi
48
a0391976 49# Check for some target-specific stuff
a7effaac 50case "$host" in
9d6b1b96 51*-*-aix*)
52 AFS_LIBS="-lld"
0c2fb82f 53 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
84afc958 54 LDFLAGS="$LDFLAGS -L/usr/local/lib"
e5fe9a1f 55 if (test "$LD" != "gcc" && test -z "$blibpath"); then
bd499f9e 56 blibpath="/usr/lib:/lib:/usr/local/lib"
57 fi
c1ef8333 58 AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)])
4c8ef3fb 59 AC_DEFINE(BROKEN_GETADDRINFO)
a3cef3ca 60 dnl AIX handles lastlog as part of its login message
61 AC_DEFINE(DISABLE_LASTLOG)
9d6b1b96 62 ;;
3c62e7eb 63*-*-cygwin*)
2f31bdd6 64 LIBS="$LIBS -lregex /usr/lib/textmode.o"
3c62e7eb 65 AC_DEFINE(HAVE_CYGWIN)
7043a38d 66 AC_DEFINE(USE_PIPES)
3c62e7eb 67 AC_DEFINE(DISABLE_SHADOW)
68 AC_DEFINE(IPV4_DEFAULT)
69 AC_DEFINE(IP_TOS_IS_BROKEN)
3d114925 70 AC_DEFINE(NO_X11_UNIX_SOCKETS)
3c62e7eb 71 no_libsocket=1
72 no_libnsl=1
73 ;;
d6fdb079 74*-*-dgux*)
75 AC_DEFINE(IP_TOS_IS_BROKEN)
76 ;;
39c98ef7 77*-*-darwin*)
78 AC_DEFINE(BROKEN_GETADDRINFO)
79 ;;
a7effaac 80*-*-hpux10*)
81 if test -z "$GCC"; then
fc1e8bf4 82 CFLAGS="$CFLAGS -Ae"
a7effaac 83 fi
28564873 84 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
44839801 85 IPADDR_IN_DISPLAY=yes
137d7b6c 86 AC_DEFINE(USE_PIPES)
0bbfbdeb 87 AC_DEFINE(DISABLE_SHADOW)
764d4113 88 AC_DEFINE(DISABLE_UTMP)
f5af5cd5 89 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
28564873 90 LIBS="$LIBS -lxnet -lsec"
a7effaac 91 ;;
2b763e31 92*-*-hpux11*)
b8fea62d 93 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
44839801 94 IPADDR_IN_DISPLAY=yes
adeebd37 95 AC_DEFINE(PAM_SUN_CODEBASE)
2b10f47a 96 AC_DEFINE(USE_PIPES)
0bbfbdeb 97 AC_DEFINE(DISABLE_SHADOW)
764d4113 98 AC_DEFINE(DISABLE_UTMP)
f5af5cd5 99 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
b8fea62d 100 LIBS="$LIBS -lxnet -lsec"
2b763e31 101 ;;
d94aa2ae 102*-*-irix5*)
0c2fb82f 103 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
c5fa2eb0 104 LDFLAGS="$LDFLAGS"
6ac7829a 105 PATH="$PATH:/usr/etc"
b9795b89 106 no_libsocket=1
107 no_libnsl=1
416ed5a7 108 AC_DEFINE(BROKEN_INET_NTOA)
b9795b89 109 ;;
110*-*-irix6*)
0c2fb82f 111 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
c5fa2eb0 112 LDFLAGS="$LDFLAGS"
6ac7829a 113 PATH="$PATH:/usr/etc"
3206bb3b 114 AC_DEFINE(WITH_IRIX_ARRAY)
115 AC_DEFINE(WITH_IRIX_PROJECT)
116 AC_DEFINE(WITH_IRIX_AUDIT)
0b49a754 117 AC_CHECK_FUNC(jlimit_startjob, [AC_DEFINE(WITH_IRIX_JOBS)])
d94aa2ae 118 no_libsocket=1
119 no_libnsl=1
416ed5a7 120 AC_DEFINE(BROKEN_INET_NTOA)
d94aa2ae 121 ;;
5cdfe03f 122*-*-linux*)
123 no_dev_ptmx=1
717057b6 124 check_for_libcrypt_later=1
80faa19f 125 AC_DEFINE(DONT_TRY_OTHER_AF)
a8545c6c 126 AC_DEFINE(PAM_TTY_KLUDGE)
80faa19f 127 inet6_default_4in6=yes
5cdfe03f 128 ;;
66d6c27e 129mips-sony-bsd|mips-sony-newsos4)
130 AC_DEFINE(HAVE_NEWS4)
131 SONY=1
132 AC_CHECK_LIB(iberty, xatexit, AC_DEFINE(HAVE_XATEXIT),
ed6553e2 133 AC_MSG_ERROR([*** libiberty missing - please install first or check config.log ***])
66d6c27e 134 )
135 ;;
d468fc76 136*-*-netbsd*)
a0391976 137 need_dash_r=1
d468fc76 138 ;;
86b416a7 139*-*-freebsd*)
140 check_for_libcrypt_later=1
141 ;;
729bfe59 142*-next-*)
729bfe59 143 conf_lastlog_location="/usr/adm/lastlog"
698d107e 144 conf_utmp_location=/etc/utmp
145 conf_wtmp_location=/usr/adm/wtmp
146 MAIL=/usr/spool/mail
729bfe59 147 AC_DEFINE(HAVE_NEXT)
443172c4 148 AC_DEFINE(BROKEN_REALPATH)
00937921 149 AC_DEFINE(USE_PIPES)
86b416a7 150 AC_DEFINE(BROKEN_SAVED_UIDS)
0c2fb82f 151 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
b1335fdf 152 CFLAGS="$CFLAGS"
729bfe59 153 ;;
9d6b1b96 154*-*-solaris*)
0c2fb82f 155 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
fbf305f1 156 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
a0391976 157 need_dash_r=1
adeebd37 158 AC_DEFINE(PAM_SUN_CODEBASE)
7e2d5fa4 159 AC_DEFINE(LOGIN_NEEDS_UTMPX)
160 AC_DEFINE(LOGIN_NEEDS_TERM)
1d7b9b20 161 # hardwire lastlog location (can't detect it on some versions)
162 conf_lastlog_location="/var/adm/lastlog"
32c80420 163 AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
164 sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'`
165 if test "$sol2ver" -ge 8; then
166 AC_MSG_RESULT(yes)
167 AC_DEFINE(DISABLE_UTMP)
168 AC_DEFINE(DISABLE_WTMP)
169 else
170 AC_MSG_RESULT(no)
171 fi
9d6b1b96 172 ;;
a423beaf 173*-*-sunos4*)
0c2fb82f 174 CPPFLAGS="$CPPFLAGS -DSUNOS4"
a423beaf 175 AC_CHECK_FUNCS(getpwanam)
adeebd37 176 AC_DEFINE(PAM_SUN_CODEBASE)
667beaa9 177 AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
32eec038 178 conf_utmp_location=/etc/utmp
179 conf_wtmp_location=/var/adm/wtmp
180 conf_lastlog_location=/var/adm/lastlog
137d7b6c 181 AC_DEFINE(USE_PIPES)
a423beaf 182 ;;
6f68f28a 183*-ncr-sysv*)
184 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
185 LDFLAGS="$LDFLAGS -L/usr/local/lib"
6f68f28a 186 LIBS="$LIBS -lc89 -lnsl -lgen -lsocket"
d8e76a0a 187 AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
6f68f28a 188 ;;
132dd316 189*-sni-sysv*)
0c2fb82f 190 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
132dd316 191 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib"
9548d6c8 192 IPADDR_IN_DISPLAY=yes
193 AC_DEFINE(USE_PIPES)
132dd316 194 AC_DEFINE(IP_TOS_IS_BROKEN)
097ca118 195 AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
05e1da75 196 LIBS="$LIBS -lgen -lnsl -lucb"
132dd316 197 ;;
77bb0bca 198*-*-sysv4.2*)
0c2fb82f 199 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
77bb0bca 200 LDFLAGS="$LDFLAGS -L/usr/local/lib"
cb547f98 201# enable_suid_ssh=no
ed6553e2 202 AC_DEFINE(USE_PIPES)
77bb0bca 203 ;;
204*-*-sysv5*)
0c2fb82f 205 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
77bb0bca 206 LDFLAGS="$LDFLAGS -L/usr/local/lib"
cb547f98 207# enable_suid_ssh=no
ed6553e2 208 AC_DEFINE(USE_PIPES)
77bb0bca 209 ;;
9d6b1b96 210*-*-sysv*)
0c2fb82f 211 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
84afc958 212 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9d6b1b96 213 LIBS="$LIBS -lgen -lsocket"
214 ;;
77bb0bca 215*-*-sco3.2v4*)
0c2fb82f 216 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
77bb0bca 217 LDFLAGS="$LDFLAGS -L/usr/local/lib"
d287c664 218 LIBS="$LIBS -lgen -lsocket -los -lprot -lx -ltinfo -lm"
ed6553e2 219 rsh_path="/usr/bin/rcmd"
77bb0bca 220 RANLIB=true
ed6553e2 221 no_dev_ptmx=1
77bb0bca 222 AC_DEFINE(BROKEN_SYS_TERMIO_H)
ed6553e2 223 AC_DEFINE(USE_PIPES)
77bb0bca 224 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
d287c664 225 AC_DEFINE(DISABLE_SHADOW)
2c523de9 226 AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
86b416a7 227 AC_DEFINE(BROKEN_SAVED_UIDS)
aca75d94 228 AC_CHECK_FUNCS(getluid setluid)
533875af 229 MANTYPE=man
77bb0bca 230 ;;
231*-*-sco3.2v5*)
0c2fb82f 232 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
509b1f88 233 LDFLAGS="$LDFLAGS -L/usr/local/lib"
ed6553e2 234 LIBS="$LIBS -lprot -lx -ltinfo -lm"
509b1f88 235 no_dev_ptmx=1
77bb0bca 236 rsh_path="/usr/bin/rcmd"
ed6553e2 237 AC_DEFINE(USE_PIPES)
77bb0bca 238 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
d287c664 239 AC_DEFINE(DISABLE_SHADOW)
0dd78cd8 240 AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
aca75d94 241 AC_CHECK_FUNCS(getluid setluid)
533875af 242 MANTYPE=man
509b1f88 243 ;;
ca5c7d6a 244*-*-unicos*)
a704dd54 245 no_libsocket=1
246 no_libnsl=1
ca5c7d6a 247 AC_DEFINE(USE_PIPES)
a704dd54 248 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal,-L/usr/local/lib"
249 LIBS="$LIBS -lgen -lrsc"
250 ;;
4d33e531 251*-dec-osf*)
99c8ddac 252 AC_MSG_CHECKING(for Digital Unix SIA)
253 no_osfsia=""
254 AC_ARG_WITH(osfsia,
255 [ --with-osfsia Enable Digital Unix SIA],
256 [
257 if test "x$withval" = "xno" ; then
258 AC_MSG_RESULT(disabled)
259 no_osfsia=1
260 fi
261 ],
262 )
263 if test -z "$no_osfsia" ; then
4d33e531 264 if test -f /etc/sia/matrix.conf; then
265 AC_MSG_RESULT(yes)
266 AC_DEFINE(HAVE_OSF_SIA)
267 AC_DEFINE(DISABLE_LOGIN)
268 LIBS="$LIBS -lsecurity -ldb -lm -laud"
269 else
270 AC_MSG_RESULT(no)
271 fi
272 fi
273 ;;
41cb4569 274
275*-*-nto-qnx)
276 AC_DEFINE(USE_PIPES)
277 AC_DEFINE(NO_X11_UNIX_SOCKETS)
278 AC_DEFINE(MISSING_NFDBITS)
279 AC_DEFINE(MISSING_HOWMANY)
280 AC_DEFINE(MISSING_FD_MASK)
281 ;;
a7effaac 282esac
283
8e7b16f8 284# Allow user to specify flags
285AC_ARG_WITH(cflags,
286 [ --with-cflags Specify additional flags to pass to compiler],
287 [
288 if test "x$withval" != "xno" ; then
289 CFLAGS="$CFLAGS $withval"
290 fi
291 ]
292)
0c2fb82f 293AC_ARG_WITH(cppflags,
294 [ --with-cppflags Specify additional flags to pass to preprocessor] ,
295 [
296 if test "x$withval" != "xno"; then
297 CPPFLAGS="$CPPFLAGS $withval"
298 fi
299 ]
300)
8e7b16f8 301AC_ARG_WITH(ldflags,
97b378bf 302 [ --with-ldflags Specify additional flags to pass to linker],
8e7b16f8 303 [
304 if test "x$withval" != "xno" ; then
305 LDFLAGS="$LDFLAGS $withval"
306 fi
307 ]
308)
309AC_ARG_WITH(libs,
310 [ --with-libs Specify additional libraries to link with],
311 [
312 if test "x$withval" != "xno" ; then
313 LIBS="$LIBS $withval"
314 fi
315 ]
316)
317
b41d8d4d 318AC_ARG_WITH(pcre,
319 [ --with-pcre Override built in regex library with pcre],
320 [
321
322 AC_CHECK_LIB(pcre, pcre_info,
323 [
324 AC_DEFINE(HAVE_LIBPCRE)
325 LIBS="$LIBS -lpcreposix -lpcre"
326 no_comp_check="yes"
327 ],
328 [ AC_MSG_ERROR([*** Can not locate pcre libraries.]) ]
329 )
330 ]
331)
8e7b16f8 332
a0391976 333# Checks for libraries.
bdf80b2c 334if test -z "$no_libnsl" ; then
2c523de9 335 AC_CHECK_LIB(nsl, yp_match, , )
336fi
bdf80b2c 337if test -z "$no_libsocket" ; then
2c523de9 338 AC_CHECK_LIB(socket, main, , )
339fi
340
f61d6b17 341dnl SCO OS3 needs this for libwrap
342AC_CHECK_LIB(rpc, innetgr, LIBS="-lrpc -lyp -lrpc $LIBS" , , -lyp -lrpc)
343
2c523de9 344AC_CHECK_LIB(gen, getspnam, LIBS="$LIBS -lgen")
ed6553e2 345AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first or check config.log ***]))
4cca272e 346AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil")
48e7916f 347
b41d8d4d 348# We don't want to check if we did an pcre override.
349if test -z "$no_comp_check" ; then
350 AC_CHECK_FUNC(regcomp,
351 [ AC_DEFINE(HAVE_REGCOMP)],
352 [
353 AC_CHECK_LIB(pcre, pcre_info,
354 [
355 AC_DEFINE(HAVE_LIBPCRE)
356 LIBS="$LIBS -lpcreposix -lpcre"
357 ],
358 [
359 AC_MSG_ERROR([*** No regex library found.])
360 ])
361 ]
362 )
363fi
4cca272e 364
2c523de9 365dnl UnixWare 2.x
366AC_CHECK_FUNC(strcasecmp,
367 [], [ AC_CHECK_LIB(resolv, strcasecmp, LIBS="$LIBS -lresolv") ]
368)
369AC_CHECK_FUNC(utimes,
370 [], [ AC_CHECK_LIB(c89, utimes, LIBS="$LIBS -lc89") ]
371)
4cca272e 372
a738c3b0 373AC_FUNC_STRFTIME
374
a0391976 375# Checks for header files.
35c69348 376AC_CHECK_HEADERS(bstring.h crypt.h endian.h floatingpoint.h getopt.h glob.h lastlog.h libgen.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h regex.h shadow.h security/pam_appl.h stdint.h strings.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 utime.h utmp.h utmpx.h)
84ceda19 377
378# Check for ALTDIRFUNC glob() extension
379AC_MSG_CHECKING(for GLOB_ALTDIRFUNC support)
380AC_EGREP_CPP(FOUNDIT,
381 [
382 #include <glob.h>
383 #ifdef GLOB_ALTDIRFUNC
384 FOUNDIT
385 #endif
386 ],
387 [
388 AC_DEFINE(GLOB_HAS_ALTDIRFUNC)
389 AC_MSG_RESULT(yes)
390 ],
391 [
392 AC_MSG_RESULT(no)
393 ]
394)
4cca272e 395
40849fdb 396# Check for g.gl_matchc glob() extension
397AC_MSG_CHECKING(for gl_matchc field in glob_t)
398AC_EGREP_CPP(FOUNDIT,
399 [
400 #include <glob.h>
401 int main(void){glob_t g; g.gl_matchc = 1;}
402 ],
403 [
404 AC_DEFINE(GLOB_HAS_GL_MATCHC)
405 AC_MSG_RESULT(yes)
406 ],
407 [
408 AC_MSG_RESULT(no)
409 ]
410)
411
edbe6722 412AC_MSG_CHECKING([whether struct dirent allocates space for d_name])
413AC_TRY_RUN(
414 [
415#include <sys/types.h>
416#include <dirent.h>
417int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));}
418 ],
419 [AC_MSG_RESULT(yes)],
420 [
421 AC_MSG_RESULT(no)
422 AC_DEFINE(BROKEN_ONE_BYTE_DIRENT_D_NAME)
423 ]
424)
425
278588d8 426# Check whether user wants S/Key support
427SKEY_MSG="no"
428AC_ARG_WITH(skey,
429 [ --with-skey=PATH Enable S/Key support],
430 [
431 if test "x$withval" != "xno" ; then
432
433 if test "x$withval" != "xyes" ; then
434 CPPFLAGS="$CPPFLAGS -I${withval}/include"
435 LDFLAGS="$LDFLAGS -L${withval}/lib"
436 fi
437
438 AC_DEFINE(SKEY)
439 LIBS="-lskey $LIBS"
440 SKEY_MSG="yes"
441
442 AC_CHECK_FUNC(skey_keyinfo,
443 [],
444 [
445 AC_MSG_ERROR([** Incomplete or missing s/key libraries.])
446 ])
447 fi
448 ]
449)
450
451# Check whether user wants TCP wrappers support
452TCPW_MSG="no"
453AC_ARG_WITH(tcp-wrappers,
454 [ --with-tcp-wrappers Enable tcpwrappers support],
455 [
456 if test "x$withval" != "xno" ; then
457 saved_LIBS="$LIBS"
458 LIBS="-lwrap $LIBS"
459 AC_MSG_CHECKING(for libwrap)
460 AC_TRY_LINK(
461 [
462#include <tcpd.h>
463 int deny_severity = 0, allow_severity = 0;
464 ],
465 [hosts_access(0);],
466 [
467 AC_MSG_RESULT(yes)
468 AC_DEFINE(LIBWRAP)
469 TCPW_MSG="yes"
470 ],
471 [
472 AC_MSG_ERROR([*** libwrap missing])
473 ]
474 )
475 fi
476 ]
477)
478
2e73a022 479dnl Checks for library functions.
35c69348 480AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock dirname fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getopt getnameinfo getrlimit getrusage getttyent glob inet_aton inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty readpassphrase realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid setvbuf sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp utimes vsnprintf vhangup waitpid _getpty __b64_ntop)
2e73a022 481dnl Checks for time functions
1d7b9b20 482AC_CHECK_FUNCS(gettimeofday time)
2e73a022 483dnl Checks for libutil functions
8f523d67 484AC_CHECK_HEADERS(libutil.h)
1d7b9b20 485AC_CHECK_FUNCS(login logout updwtmp logwtmp)
2e73a022 486dnl Checks for utmp functions
b03bd394 487AC_CHECK_FUNCS(endutent getutent getutid getutline pututline setutent)
1d7b9b20 488AC_CHECK_FUNCS(utmpname)
2e73a022 489dnl Checks for utmpx functions
b03bd394 490AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline )
1d7b9b20 491AC_CHECK_FUNCS(setutxent utmpxname)
76cd7316 492
5fa45897 493AC_CHECK_FUNC(getuserattr,
494 [AC_DEFINE(HAVE_GETUSERATTR)],
495 [AC_CHECK_LIB(s, getuserattr, [LIBS="$LIBS -ls"; AC_DEFINE(HAVE_GETUSERATTR)])]
496)
497
beb43d31 498AC_CHECK_FUNC(login,
499 [AC_DEFINE(HAVE_LOGIN)],
500 [AC_CHECK_LIB(bsd, login, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_LOGIN)])]
501)
502
503AC_CHECK_FUNC(daemon,
504 [AC_DEFINE(HAVE_DAEMON)],
505 [AC_CHECK_LIB(bsd, daemon, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])]
506)
507
aa6bd60a 508AC_CHECK_FUNC(getpagesize,
509 [AC_DEFINE(HAVE_GETPAGESIZE)],
510 [AC_CHECK_LIB(ucb, getpagesize, [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])]
511)
512
2647ae26 513# Check for broken snprintf
514if test "x$ac_cv_func_snprintf" = "xyes" ; then
515 AC_MSG_CHECKING([whether snprintf correctly terminates long strings])
516 AC_TRY_RUN(
517 [
518#include <stdio.h>
519int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
520 ],
521 [AC_MSG_RESULT(yes)],
522 [
523 AC_MSG_RESULT(no)
524 AC_DEFINE(BROKEN_SNPRINTF)
525 AC_MSG_WARN([****** Your snprintf() function is broken, complain to your vendor])
526 ]
527 )
528fi
529
7f8f5e00 530AC_FUNC_GETPGRP
531
717057b6 532# Check for PAM libs
cbd7492e 533PAM_MSG="no"
a0391976 534AC_ARG_WITH(pam,
717057b6 535 [ --with-pam Enable PAM support ],
a0391976 536 [
717057b6 537 if test "x$withval" != "xno" ; then
538 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
539 AC_MSG_ERROR([PAM headers not found])
540 fi
a0391976 541
717057b6 542 AC_CHECK_LIB(dl, dlopen, , )
543 AC_CHECK_LIB(pam, pam_set_item, , AC_MSG_ERROR([*** libpam missing]))
544 AC_CHECK_FUNCS(pam_getenvlist)
2b763e31 545
717057b6 546 disable_shadow=yes
547 PAM_MSG="yes"
4cb5ffa0 548
717057b6 549 AC_DEFINE(USE_PAM)
550 fi
551 ]
552)
cbd7492e 553
717057b6 554# Check for older PAM
555if test "x$PAM_MSG" = "xyes" ; then
a0391976 556 # Check PAM strerror arguments (old PAM)
557 AC_MSG_CHECKING([whether pam_strerror takes only one argument])
558 AC_TRY_COMPILE(
559 [
18ba2aab 560#include <stdlib.h>
561#include <security/pam_appl.h>
a0391976 562 ],
563 [(void)pam_strerror((pam_handle_t *)NULL, -1);],
564 [AC_MSG_RESULT(no)],
565 [
566 AC_DEFINE(HAVE_OLD_PAM)
567 AC_MSG_RESULT(yes)
cbd7492e 568 PAM_MSG="yes (old library)"
a0391976 569 ]
717057b6 570 )
a0391976 571fi
572
573# The big search for OpenSSL
574AC_ARG_WITH(ssl-dir,
575 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
576 [
e9e4a1c7 577 if test "x$withval" != "xno" ; then
a0391976 578 tryssldir=$withval
579 fi
580 ]
581)
582
583saved_LIBS="$LIBS"
cb0b7ea4 584saved_LDFLAGS="$LDFLAGS"
0c2fb82f 585saved_CPPFLAGS="$CPPFLAGS"
a0391976 586if test "x$prefix" != "xNONE" ; then
587 tryssldir="$tryssldir $prefix"
588fi
58d100bf 589AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
7950bf97 590 for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
d6f13fbb 591 CPPFLAGS="$saved_CPPFLAGS"
592 LDFLAGS="$saved_LDFLAGS"
593 LIBS="$saved_LIBS -lcrypto"
594
595 # Skip directories if they don't exist
596 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
597 continue;
598 fi
717057b6 599 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
d6f13fbb 600 # Try to use $ssldir/lib if it exists, otherwise
601 # $ssldir
602 if test -d "$ssldir/lib" ; then
8d0cc79b 603 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
d6f13fbb 604 if test ! -z "$need_dash_r" ; then
8d0cc79b 605 LDFLAGS="-R$ssldir/lib $LDFLAGS"
d6f13fbb 606 fi
607 else
8d0cc79b 608 LDFLAGS="-L$ssldir $saved_LDFLAGS"
d6f13fbb 609 if test ! -z "$need_dash_r" ; then
8d0cc79b 610 LDFLAGS="-R$ssldir $LDFLAGS"
d6f13fbb 611 fi
612 fi
613 # Try to use $ssldir/include if it exists, otherwise
614 # $ssldir
615 if test -d "$ssldir/include" ; then
8d0cc79b 616 CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
d6f13fbb 617 else
8d0cc79b 618 CPPFLAGS="-I$ssldir $saved_CPPFLAGS"
58d100bf 619 fi
a0391976 620 fi
a0391976 621
d45e3d76 622 # Basic test to check for compatible version and correct linking
623 # *does not* test for RSA - that comes later.
624 AC_TRY_RUN(
625 [
44fb55e9 626#include <string.h>
627#include <openssl/rand.h>
18ba2aab 628int main(void)
629{
d45e3d76 630 char a[2048];
631 memset(a, 0, sizeof(a));
18ba2aab 632 RAND_add(a, sizeof(a), sizeof(a));
d45e3d76 633 return(RAND_status() <= 0);
18ba2aab 634}
d45e3d76 635 ],
636 [
637 found_crypto=1
638 break;
639 ], []
640 )
58d100bf 641
642 if test ! -z "$found_crypto" ; then
643 break;
644 fi
bcf36c78 645 done
646
58d100bf 647 if test -z "$found_crypto" ; then
ed6553e2 648 AC_MSG_ERROR([Could not find working OpenSSL library, please install or check config.log])
58d100bf 649 fi
650 if test -z "$ssldir" ; then
651 ssldir="(system)"
bcf36c78 652 fi
a0391976 653
58d100bf 654 ac_cv_openssldir=$ssldir
655])
656
e5fe9a1f 657if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then
58d100bf 658 AC_DEFINE(HAVE_OPENSSL)
659 dnl Need to recover ssldir - test above runs in subshell
660 ssldir=$ac_cv_openssldir
717057b6 661 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
d6f13fbb 662 # Try to use $ssldir/lib if it exists, otherwise
663 # $ssldir
664 if test -d "$ssldir/lib" ; then
8d0cc79b 665 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
d6f13fbb 666 if test ! -z "$need_dash_r" ; then
8d0cc79b 667 LDFLAGS="-R$ssldir/lib $LDFLAGS"
d6f13fbb 668 fi
669 else
8d0cc79b 670 LDFLAGS="-L$ssldir $saved_LDFLAGS"
d6f13fbb 671 if test ! -z "$need_dash_r" ; then
8d0cc79b 672 LDFLAGS="-R$ssldir $LDFLAGS"
d6f13fbb 673 fi
717057b6 674 fi
d6f13fbb 675 # Try to use $ssldir/include if it exists, otherwise
676 # $ssldir
677 if test -d "$ssldir/include" ; then
8d0cc79b 678 CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
d6f13fbb 679 else
8d0cc79b 680 CPPFLAGS="-I$ssldir $saved_CPPFLAGS"
717057b6 681 fi
bd499f9e 682 fi
a0391976 683fi
d45e3d76 684LIBS="$saved_LIBS -lcrypto"
685
686# Now test RSA support
687saved_LIBS="$LIBS"
688AC_MSG_CHECKING([for RSA support])
689for WANTS_RSAREF in "" 1 ; do
690 if test -z "$WANTS_RSAREF" ; then
691 LIBS="$saved_LIBS"
692 else
693 LIBS="$saved_LIBS -lRSAglue -lrsaref"
694 fi
695 AC_TRY_RUN([
696#include <string.h>
697#include <openssl/rand.h>
698#include <openssl/rsa.h>
699#include <openssl/bn.h>
700#include <openssl/sha.h>
701int main(void)
702{
703 int num; RSA *key; static unsigned char p_in[] = "blahblah";
704 unsigned char c[256], p[256];
705 memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
706 if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
707 num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
708 return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
709}
710 ],
711 [
712 rsa_works=1
713 break;
714 ], [])
715done
0abe778b 716LIBS="$saved_LIBS"
d45e3d76 717
718if test ! -z "$no_rsa" ; then
719 AC_MSG_RESULT(disabled)
cbd7492e 720 RSA_MSG="disabled"
cb0b7ea4 721else
d45e3d76 722 if test -z "$rsa_works" ; then
723 AC_MSG_WARN([*** No RSA support found *** ])
cbd7492e 724 RSA_MSG="no"
d45e3d76 725 else
726 if test -z "$WANTS_RSAREF" ; then
727 AC_MSG_RESULT(yes)
cbd7492e 728 RSA_MSG="yes"
d45e3d76 729 else
cbd7492e 730 RSA_MSG="yes (using RSAref)"
d45e3d76 731 AC_MSG_RESULT(using RSAref)
0abe778b 732 LIBS="$LIBS -lcrypto -lRSAglue -lrsaref"
d45e3d76 733 fi
734 fi
bcf36c78 735fi
58d100bf 736
717057b6 737# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
738# version in OpenSSL. Skip this for PAM
739if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
20cad736 740 AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt")
717057b6 741fi
742
66d6c27e 743# Cheap hack to ensure NEWS-OS libraries are arranged right.
744if test ! -z "$SONY" ; then
745 LIBS="$LIBS -liberty";
746fi
747
a0391976 748# Checks for data types
976f7e19 749AC_CHECK_SIZEOF(char, 1)
2b942fe0 750AC_CHECK_SIZEOF(short int, 2)
751AC_CHECK_SIZEOF(int, 4)
752AC_CHECK_SIZEOF(long int, 4)
753AC_CHECK_SIZEOF(long long int, 8)
754
a0391976 755# More checks for data types
14a9a859 756AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
757 AC_TRY_COMPILE(
758 [ #include <sys/types.h> ],
759 [ u_int a; a = 1;],
760 [ ac_cv_have_u_int="yes" ],
761 [ ac_cv_have_u_int="no" ]
762 )
763])
764if test "x$ac_cv_have_u_int" = "xyes" ; then
765 AC_DEFINE(HAVE_U_INT)
766 have_u_int=1
767fi
768
58d100bf 769AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
770 AC_TRY_COMPILE(
771 [ #include <sys/types.h> ],
772 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
773 [ ac_cv_have_intxx_t="yes" ],
774 [ ac_cv_have_intxx_t="no" ]
775 )
776])
777if test "x$ac_cv_have_intxx_t" = "xyes" ; then
778 AC_DEFINE(HAVE_INTXX_T)
779 have_intxx_t=1
780fi
41cb4569 781
782if (test -z "$have_intxx_t" && \
783 test "x$ac_cv_header_stdint_h" = "xyes")
784then
785 AC_MSG_CHECKING([for intXX_t types in stdint.h])
786 AC_TRY_COMPILE(
787 [ #include <stdint.h> ],
788 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
789 [
790 AC_DEFINE(HAVE_INTXX_T)
791 AC_MSG_RESULT(yes)
792 ],
793 [ AC_MSG_RESULT(no) ]
794 )
795fi
796
bd590612 797AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
798 AC_TRY_COMPILE(
799 [ #include <sys/types.h> ],
800 [ int64_t a; a = 1;],
801 [ ac_cv_have_int64_t="yes" ],
802 [ ac_cv_have_int64_t="no" ]
803 )
804])
805if test "x$ac_cv_have_int64_t" = "xyes" ; then
806 AC_DEFINE(HAVE_INT64_T)
807 have_int64_t=1
808fi
809
41cb4569 810if test -z "$have_int64_t" ; then
811 AC_MSG_CHECKING([for int64_t type in sys/socket.h])
812 AC_TRY_COMPILE(
813 [ #include <sys/socket.h> ],
814 [ int64_t a; a = 1],
815 [
816 AC_DEFINE(HAVE_INT64_T)
817 AC_MSG_RESULT(yes)
818 ],
819 [ AC_MSG_RESULT(no) ]
820 )
821fi
822
58d100bf 823AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
824 AC_TRY_COMPILE(
825 [ #include <sys/types.h> ],
826 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
827 [ ac_cv_have_u_intxx_t="yes" ],
828 [ ac_cv_have_u_intxx_t="no" ]
829 )
830])
831if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
832 AC_DEFINE(HAVE_U_INTXX_T)
833 have_u_intxx_t=1
834fi
2b942fe0 835
41cb4569 836if test -z "$have_u_intxx_t" ; then
837 AC_MSG_CHECKING([for u_intXX_t types in sys/socket.h])
838 AC_TRY_COMPILE(
839 [ #include <sys/socket.h> ],
840 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
841 [
842 AC_DEFINE(HAVE_U_INTXX_T)
843 AC_MSG_RESULT(yes)
844 ],
845 [ AC_MSG_RESULT(no) ]
846 )
847fi
848
bd590612 849AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
850 AC_TRY_COMPILE(
851 [ #include <sys/types.h> ],
852 [ u_int64_t a; a = 1;],
853 [ ac_cv_have_u_int64_t="yes" ],
854 [ ac_cv_have_u_int64_t="no" ]
855 )
856])
857if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
858 AC_DEFINE(HAVE_U_INT64_T)
859 have_u_int64_t=1
860fi
861
41cb4569 862if test -z "$have_u_intxx_t" ; then
863 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
864 AC_TRY_COMPILE(
865 [
866#include <sys/types.h>
867 ],
868 [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ],
869 [ ac_cv_have_uintxx_t="yes" ],
870 [ ac_cv_have_uintxx_t="no" ]
871 )
872 ])
873 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
874 AC_DEFINE(HAVE_UINTXX_T)
875 fi
876fi
877
878if test -z "$have_uintxx_t" ; then
879 AC_MSG_CHECKING([for uintXX_t types in stdint.h])
880 AC_TRY_COMPILE(
881 [ #include <stdint.h> ],
882 [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;],
883 [
884 AC_DEFINE(HAVE_UINTXX_T)
885 AC_MSG_RESULT(yes)
886 ],
887 [ AC_MSG_RESULT(no) ]
888 )
889fi
890
e5fe9a1f 891if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
892 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
5cdfe03f 893then
894 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
895 AC_TRY_COMPILE(
58d100bf 896 [
897#include <sys/bitypes.h>
898 ],
5cdfe03f 899 [
837c30b8 900 int8_t a; int16_t b; int32_t c;
901 u_int8_t e; u_int16_t f; u_int32_t g;
902 a = b = c = e = f = g = 1;
5cdfe03f 903 ],
904 [
905 AC_DEFINE(HAVE_U_INTXX_T)
906 AC_DEFINE(HAVE_INTXX_T)
907 AC_MSG_RESULT(yes)
908 ],
909 [AC_MSG_RESULT(no)]
910 )
911fi
912
0362750e 913
914AC_CACHE_CHECK([for u_char], ac_cv_have_u_char, [
915 AC_TRY_COMPILE(
916 [
917#include <sys/types.h>
918 ],
919 [ u_char foo; foo = 125; ],
920 [ ac_cv_have_u_char="yes" ],
921 [ ac_cv_have_u_char="no" ]
922 )
923])
924if test "x$ac_cv_have_u_char" = "xyes" ; then
925 AC_DEFINE(HAVE_U_CHAR)
926fi
927
58d100bf 928AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [
474b5fef 929 AC_TRY_COMPILE(
474b5fef 930 [
58d100bf 931#include <sys/types.h>
932#include <sys/socket.h>
474b5fef 933 ],
58d100bf 934 [socklen_t foo; foo = 1235;],
935 [ ac_cv_have_socklen_t="yes" ],
936 [ ac_cv_have_socklen_t="no" ]
937 )
938])
939if test "x$ac_cv_have_socklen_t" = "xyes" ; then
940 AC_DEFINE(HAVE_SOCKLEN_T)
474b5fef 941fi
2b942fe0 942
58d100bf 943AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [
944 AC_TRY_COMPILE(
945 [
18ba2aab 946#include <sys/types.h>
58d100bf 947 ],
948 [ size_t foo; foo = 1235; ],
949 [ ac_cv_have_size_t="yes" ],
950 [ ac_cv_have_size_t="no" ]
951 )
952])
953if test "x$ac_cv_have_size_t" = "xyes" ; then
954 AC_DEFINE(HAVE_SIZE_T)
955fi
ea1970a3 956
c04f75f1 957AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [
958 AC_TRY_COMPILE(
959 [
960#include <sys/types.h>
961 ],
962 [ ssize_t foo; foo = 1235; ],
963 [ ac_cv_have_ssize_t="yes" ],
964 [ ac_cv_have_ssize_t="no" ]
965 )
966])
967if test "x$ac_cv_have_ssize_t" = "xyes" ; then
968 AC_DEFINE(HAVE_SSIZE_T)
969fi
970
f1c4659d 971AC_CACHE_CHECK([for clock_t], ac_cv_have_clock_t, [
972 AC_TRY_COMPILE(
973 [
974#include <time.h>
975 ],
976 [ clock_t foo; foo = 1235; ],
977 [ ac_cv_have_clock_t="yes" ],
978 [ ac_cv_have_clock_t="no" ]
979 )
980])
981if test "x$ac_cv_have_clock_t" = "xyes" ; then
982 AC_DEFINE(HAVE_CLOCK_T)
983fi
984
1c04b088 985AC_CACHE_CHECK([for sa_family_t], ac_cv_have_sa_family_t, [
986 AC_TRY_COMPILE(
987 [
988#include <sys/types.h>
989#include <sys/socket.h>
990 ],
991 [ sa_family_t foo; foo = 1235; ],
992 [ ac_cv_have_sa_family_t="yes" ],
77bb0bca 993 [ AC_TRY_COMPILE(
994 [
995#include <sys/types.h>
996#include <sys/socket.h>
997#include <netinet/in.h>
998 ],
999 [ sa_family_t foo; foo = 1235; ],
1000 [ ac_cv_have_sa_family_t="yes" ],
1001
1c04b088 1002 [ ac_cv_have_sa_family_t="no" ]
77bb0bca 1003 )]
1c04b088 1004 )
1005])
1006if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
1007 AC_DEFINE(HAVE_SA_FAMILY_T)
1008fi
1009
729bfe59 1010AC_CACHE_CHECK([for pid_t], ac_cv_have_pid_t, [
1011 AC_TRY_COMPILE(
1012 [
1013#include <sys/types.h>
1014 ],
1015 [ pid_t foo; foo = 1235; ],
1016 [ ac_cv_have_pid_t="yes" ],
1017 [ ac_cv_have_pid_t="no" ]
1018 )
1019])
1020if test "x$ac_cv_have_pid_t" = "xyes" ; then
1021 AC_DEFINE(HAVE_PID_T)
1022fi
1023
1024AC_CACHE_CHECK([for mode_t], ac_cv_have_mode_t, [
1025 AC_TRY_COMPILE(
1026 [
1027#include <sys/types.h>
1028 ],
1029 [ mode_t foo; foo = 1235; ],
1030 [ ac_cv_have_mode_t="yes" ],
1031 [ ac_cv_have_mode_t="no" ]
1032 )
1033])
1034if test "x$ac_cv_have_mode_t" = "xyes" ; then
1035 AC_DEFINE(HAVE_MODE_T)
1036fi
1037
e3a93db0 1038
58d100bf 1039AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [
1040 AC_TRY_COMPILE(
1041 [
18ba2aab 1042#include <sys/types.h>
1043#include <sys/socket.h>
58d100bf 1044 ],
1045 [ struct sockaddr_storage s; ],
1046 [ ac_cv_have_struct_sockaddr_storage="yes" ],
1047 [ ac_cv_have_struct_sockaddr_storage="no" ]
1048 )
1049])
1050if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
1051 AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE)
1052fi
48e671d5 1053
58d100bf 1054AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [
1055 AC_TRY_COMPILE(
1056 [
cbd7492e 1057#include <sys/types.h>
58d100bf 1058#include <netinet/in.h>
1059 ],
1060 [ struct sockaddr_in6 s; s.sin6_family = 0; ],
1061 [ ac_cv_have_struct_sockaddr_in6="yes" ],
1062 [ ac_cv_have_struct_sockaddr_in6="no" ]
1063 )
1064])
1065if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
1066 AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6)
1067fi
48e671d5 1068
58d100bf 1069AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [
1070 AC_TRY_COMPILE(
1071 [
cbd7492e 1072#include <sys/types.h>
58d100bf 1073#include <netinet/in.h>
1074 ],
1075 [ struct in6_addr s; s.s6_addr[0] = 0; ],
1076 [ ac_cv_have_struct_in6_addr="yes" ],
1077 [ ac_cv_have_struct_in6_addr="no" ]
1078 )
1079])
1080if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
1081 AC_DEFINE(HAVE_STRUCT_IN6_ADDR)
1082fi
48e671d5 1083
58d100bf 1084AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [
1085 AC_TRY_COMPILE(
1086 [
18ba2aab 1087#include <sys/types.h>
1088#include <sys/socket.h>
1089#include <netdb.h>
58d100bf 1090 ],
1091 [ struct addrinfo s; s.ai_flags = AI_PASSIVE; ],
1092 [ ac_cv_have_struct_addrinfo="yes" ],
1093 [ ac_cv_have_struct_addrinfo="no" ]
1094 )
1095])
1096if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
1097 AC_DEFINE(HAVE_STRUCT_ADDRINFO)
1098fi
1099
89c7e31c 1100AC_CACHE_CHECK([for struct timeval], ac_cv_have_struct_timeval, [
1101 AC_TRY_COMPILE(
1102 [ #include <sys/time.h> ],
1103 [ struct timeval tv; tv.tv_sec = 1;],
1104 [ ac_cv_have_struct_timeval="yes" ],
1105 [ ac_cv_have_struct_timeval="no" ]
1106 )
1107])
1108if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
1109 AC_DEFINE(HAVE_STRUCT_TIMEVAL)
1110 have_struct_timeval=1
1111fi
1112
2c523de9 1113# If we don't have int64_t then we can't compile sftp-server. So don't
1114# even attempt to do it.
1115if test "x$ac_cv_have_int64_t" = "xno" -a \
1116 "x$ac_cv_sizeof_long_int" != "x8" -a \
1117 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
1118 NO_SFTP='#'
733cf7f4 1119else
1120dnl test snprintf (broken on SCO w/gcc)
1121 AC_TRY_RUN(
1122 [
1123#include <stdio.h>
1124#include <string.h>
1125#ifdef HAVE_SNPRINTF
1126main()
1127{
1128 char buf[50];
1129 char expected_out[50];
1130 int mazsize = 50 ;
1131#if (SIZEOF_LONG_INT == 8)
1132 long int num = 0x7fffffffffffffff;
1133#else
763a1a18 1134 long long num = 0x7fffffffffffffffll;
733cf7f4 1135#endif
1136 strcpy(expected_out, "9223372036854775807");
1137 snprintf(buf, mazsize, "%lld", num);
1138 if(strcmp(buf, expected_out) != 0)
1139 exit(1);
1140 exit(0);
1141}
1142#else
1143main() { exit(0); }
1144#endif
1145 ], [ true ], [ AC_DEFINE(BROKEN_SNPRINTF) ]
1146 )
2c523de9 1147fi
89c7e31c 1148AC_SUBST(NO_SFTP)
2c523de9 1149
77bb0bca 1150dnl Checks for structure members
58d100bf 1151OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP)
1152OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
1153OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX)
1154OSSH_CHECK_HEADER_FOR_FIELD(ut_pid, utmp.h, HAVE_PID_IN_UTMP)
1155OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmp.h, HAVE_TYPE_IN_UTMP)
25422c70 1156OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmpx.h, HAVE_TYPE_IN_UTMPX)
58d100bf 1157OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmp.h, HAVE_TV_IN_UTMP)
1158OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmp.h, HAVE_ID_IN_UTMP)
daaff4d5 1159OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmpx.h, HAVE_ID_IN_UTMPX)
58d100bf 1160OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmp.h, HAVE_ADDR_IN_UTMP)
1161OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmpx.h, HAVE_ADDR_IN_UTMPX)
1162OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmp.h, HAVE_ADDR_V6_IN_UTMP)
1163OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmpx.h, HAVE_ADDR_V6_IN_UTMPX)
1d7b9b20 1164OSSH_CHECK_HEADER_FOR_FIELD(ut_exit, utmp.h, HAVE_EXIT_IN_UTMP)
1165OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmp.h, HAVE_TIME_IN_UTMP)
1166OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
1167OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
77bb0bca 1168AC_STRUCT_ST_BLKSIZE
1d7b9b20 1169
58d100bf 1170AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
1171 ac_cv_have_ss_family_in_struct_ss, [
1172 AC_TRY_COMPILE(
1173 [
18ba2aab 1174#include <sys/types.h>
1175#include <sys/socket.h>
58d100bf 1176 ],
1177 [ struct sockaddr_storage s; s.ss_family = 1; ],
1178 [ ac_cv_have_ss_family_in_struct_ss="yes" ],
1179 [ ac_cv_have_ss_family_in_struct_ss="no" ],
1180 )
1181])
1182if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
1183 AC_DEFINE(HAVE_SS_FAMILY_IN_SS)
1184fi
1185
58d100bf 1186AC_CACHE_CHECK([for __ss_family field in struct sockaddr_storage],
1187 ac_cv_have___ss_family_in_struct_ss, [
1188 AC_TRY_COMPILE(
1189 [
18ba2aab 1190#include <sys/types.h>
1191#include <sys/socket.h>
58d100bf 1192 ],
1193 [ struct sockaddr_storage s; s.__ss_family = 1; ],
1194 [ ac_cv_have___ss_family_in_struct_ss="yes" ],
1195 [ ac_cv_have___ss_family_in_struct_ss="no" ]
1196 )
1197])
1198if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
1199 AC_DEFINE(HAVE___SS_FAMILY_IN_SS)
1200fi
1201
2e73a022 1202AC_CACHE_CHECK([for pw_class field in struct passwd],
1203 ac_cv_have_pw_class_in_struct_passwd, [
1204 AC_TRY_COMPILE(
1205 [
2e73a022 1206#include <pwd.h>
1207 ],
97994d32 1208 [ struct passwd p; p.pw_class = 0; ],
2e73a022 1209 [ ac_cv_have_pw_class_in_struct_passwd="yes" ],
1210 [ ac_cv_have_pw_class_in_struct_passwd="no" ]
1211 )
1212])
1213if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
1214 AC_DEFINE(HAVE_PW_CLASS_IN_PASSWD)
1215fi
1216
7751d4eb 1217AC_CACHE_CHECK([for pw_expire field in struct passwd],
1218 ac_cv_have_pw_expire_in_struct_passwd, [
1219 AC_TRY_COMPILE(
1220 [
1221#include <pwd.h>
1222 ],
1223 [ struct passwd p; p.pw_expire = 0; ],
1224 [ ac_cv_have_pw_expire_in_struct_passwd="yes" ],
1225 [ ac_cv_have_pw_expire_in_struct_passwd="no" ]
1226 )
1227])
1228if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
1229 AC_DEFINE(HAVE_PW_EXPIRE_IN_PASSWD)
1230fi
1231
1232AC_CACHE_CHECK([for pw_change field in struct passwd],
1233 ac_cv_have_pw_change_in_struct_passwd, [
1234 AC_TRY_COMPILE(
1235 [
1236#include <pwd.h>
1237 ],
1238 [ struct passwd p; p.pw_change = 0; ],
1239 [ ac_cv_have_pw_change_in_struct_passwd="yes" ],
1240 [ ac_cv_have_pw_change_in_struct_passwd="no" ]
1241 )
1242])
1243if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
1244 AC_DEFINE(HAVE_PW_CHANGE_IN_PASSWD)
1245fi
58d100bf 1246
1247AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [
1248 AC_TRY_LINK([],
1249 [ extern char *__progname; printf("%s", __progname); ],
1250 [ ac_cv_libc_defines___progname="yes" ],
1251 [ ac_cv_libc_defines___progname="no" ]
1252 )
1253])
1254if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
1255 AC_DEFINE(HAVE___PROGNAME)
1256fi
8946db53 1257
1812a662 1258AC_CACHE_CHECK([whether getopt has optreset support],
1259 ac_cv_have_getopt_optreset, [
1260 AC_TRY_LINK(
1261 [
1262#include <getopt.h>
1263 ],
1264 [ extern int optreset; optreset = 0; ],
1265 [ ac_cv_have_getopt_optreset="yes" ],
1266 [ ac_cv_have_getopt_optreset="no" ]
1267 )
1268])
1269if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
1270 AC_DEFINE(HAVE_GETOPT_OPTRESET)
1271fi
a0391976 1272
819b676f 1273AC_CACHE_CHECK([if libc defines sys_errlist], ac_cv_libc_defines_sys_errlist, [
1274 AC_TRY_LINK([],
1275 [ extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);],
1276 [ ac_cv_libc_defines_sys_errlist="yes" ],
1277 [ ac_cv_libc_defines_sys_errlist="no" ]
1278 )
1279])
1280if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
1281 AC_DEFINE(HAVE_SYS_ERRLIST)
1282fi
1283
1284
416ed5a7 1285AC_CACHE_CHECK([if libc defines sys_nerr], ac_cv_libc_defines_sys_nerr, [
1286 AC_TRY_LINK([],
1287 [ extern int sys_nerr; printf("%i", sys_nerr);],
1288 [ ac_cv_libc_defines_sys_nerr="yes" ],
1289 [ ac_cv_libc_defines_sys_nerr="no" ]
1290 )
1291])
1292if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
1293 AC_DEFINE(HAVE_SYS_NERR)
1294fi
1295
1296
d0b19c95 1297# Check whether user wants Kerberos support
1298SCARD_MSG="no"
1299AC_ARG_WITH(smartcard,
1300 [ --with-smartcard Enable smartcard support],
1301 [
1302 if test "x$withval" != "xno" ; then
1303 if test "x$withval" != "xyes" ; then
1304 CPPFLAGS="$CPPFLAGS -I${withval}"
1305 LDFLAGS="$LDFLAGS -L${withval}"
1306 if test ! -z "$need_dash_r" ; then
1307 LDFLAGS="$LDFLAGS -R${withval}"
1308 fi
1309 if test ! -z "$blibpath" ; then
1310 blibpath="$blibpath:${withval}"
1311 fi
1312 fi
1313 AC_CHECK_HEADERS(sectok.h)
1314 if test "$ac_cv_header_sectok_h" != yes; then
1315 AC_MSG_ERROR(Can't find sectok.h)
1316 fi
1317 AC_CHECK_LIB(sectok, sectok_open)
1318 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
1319 AC_MSG_ERROR(Can't find libsectok)
1320 fi
1321 AC_DEFINE(SMARTCARD)
1322 SCARD_MSG="yes"
1323 fi
1324 ]
1325)
1326
b5b68128 1327# Check whether user wants Kerberos support
1328KRB4_MSG="no"
1329AC_ARG_WITH(kerberos4,
1330 [ --with-kerberos4=PATH Enable Kerberos 4 support],
1331 [
1332 if test "x$withval" != "xno" ; then
b5b68128 1333 if test "x$withval" != "xyes" ; then
1334 CPPFLAGS="$CPPFLAGS -I${withval}/include"
1335 LDFLAGS="$LDFLAGS -L${withval}/lib"
1336 if test ! -z "$need_dash_r" ; then
1337 LDFLAGS="$LDFLAGS -R${withval}/lib"
1338 fi
1339 if test ! -z "$blibpath" ; then
1340 blibpath="$blibpath:${withval}/lib"
1341 fi
1342 else
1343 if test -d /usr/include/kerberosIV ; then
1344 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
1345 fi
1346 fi
1347
1348 AC_CHECK_HEADERS(krb.h)
b5b68128 1349 if test "$ac_cv_header_krb_h" != yes; then
1350 AC_MSG_WARN([Cannot find krb.h, build may fail])
1351 fi
cccfea16 1352 AC_CHECK_LIB(krb, main)
b5b68128 1353 if test "$ac_cv_lib_krb_main" != yes; then
cccfea16 1354 AC_CHECK_LIB(krb4, main)
1355 if test "$ac_cv_lib_krb4_main" != yes; then
1356 AC_MSG_WARN([Cannot find libkrb nor libkrb4, build may fail])
1357 else
1358 KLIBS="-lkrb4"
1359 fi
1360 else
1361 KLIBS="-lkrb"
1362 fi
1363 AC_CHECK_LIB(des, des_cbc_encrypt)
1364 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
1365 AC_CHECK_LIB(des425, des_cbc_encrypt)
1366 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
1367 AC_MSG_WARN([Cannot find libdes nor libdes425, build may fail])
1368 else
1369 KLIBS="-ldes425"
1370 fi
1371 else
1372 KLIBS="-ldes"
b5b68128 1373 fi
b5b68128 1374 AC_CHECK_LIB(resolv, dn_expand, , )
1375 KRB4=yes
1376 KRB4_MSG="yes"
1377 AC_DEFINE(KRB4)
1378 fi
1379 ]
1380)
1381
1382# Check whether user wants AFS support
1383AFS_MSG="no"
1384AC_ARG_WITH(afs,
1385 [ --with-afs=PATH Enable AFS support],
1386 [
1387 if test "x$withval" != "xno" ; then
1388
1389 if test "x$withval" != "xyes" ; then
1390 CPPFLAGS="$CPPFLAGS -I${withval}/include"
1391 LDFLAGS="$LDFLAGS -L${withval}/lib"
1392 fi
1393
1394 if test -z "$KRB4" ; then
1395 AC_MSG_WARN([AFS requires Kerberos IV support, build may fail])
1396 fi
1397
1398 LIBS="-lkafs $LIBS"
1399 if test ! -z "$AFS_LIBS" ; then
1400 LIBS="$LIBS $AFS_LIBS"
1401 fi
1402 AC_DEFINE(AFS)
1403 AFS_MSG="yes"
1404 fi
1405 ]
1406)
1407LIBS="$LIBS $KLIBS"
1408
a0391976 1409# Looking for programs, paths and files
1410AC_ARG_WITH(rsh,
1411 [ --with-rsh=PATH Specify path to remote shell program ],
1412 [
bcf36c78 1413 if test "x$withval" != "$no" ; then
7a33f831 1414 rsh_path=$withval
a0391976 1415 fi
1416 ],
1417 [
1418 AC_PATH_PROG(rsh_path, rsh)
1419 ]
1420)
1421
1422AC_ARG_WITH(xauth,
1423 [ --with-xauth=PATH Specify path to xauth program ],
1424 [
00937921 1425 if test "x$withval" != "xno" ; then
cbd7492e 1426 xauth_path=$withval
a0391976 1427 fi
1428 ],
1429 [
77bb0bca 1430 AC_PATH_PROG(xauth_path, xauth,,$PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin)
e5fe9a1f 1431 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
a0391976 1432 xauth_path="/usr/openwin/bin/xauth"
1433 fi
1434 ]
1435)
1436
b3ec54b4 1437if test -z "$xauth_path" ; then
1438 XAUTH_PATH="undefined"
1439 AC_SUBST(XAUTH_PATH)
1440else
a0391976 1441 AC_DEFINE_UNQUOTED(XAUTH_PATH, "$xauth_path")
b3ec54b4 1442 XAUTH_PATH=$xauth_path
1443 AC_SUBST(XAUTH_PATH)
a0391976 1444fi
1445if test ! -z "$rsh_path" ; then
1446 AC_DEFINE_UNQUOTED(RSH_PATH, "$rsh_path")
1447fi
1448
1449# Check for mail directory (last resort if we cannot get it from headers)
1450if test ! -z "$MAIL" ; then
1451 maildir=`dirname $MAIL`
1452 AC_DEFINE_UNQUOTED(MAIL_DIRECTORY, "$maildir")
1453fi
1454
a0391976 1455if test -z "$no_dev_ptmx" ; then
3276571c 1456 AC_CHECK_FILE("/dev/ptmx",
1457 [
1458 AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)
1459 have_dev_ptmx=1
1460 ]
1461 )
1462fi
1463AC_CHECK_FILE("/dev/ptc",
1464 [
1465 AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)
1466 have_dev_ptc=1
1467 ]
1468)
1469
a0391976 1470# Options from here on. Some of these are preset by platform above
1471
a0391976 1472# Check for user-specified random device, otherwise check /dev/urandom
1473AC_ARG_WITH(random,
e1dd3a7a 1474 [ --with-random=FILE read entropy from FILE (default=/dev/urandom)],
a0391976 1475 [
bfc9a610 1476 if test "x$withval" != "xno" ; then
1477 RANDOM_POOL="$withval";
1478 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
1479 fi
a0391976 1480 ],
1481 [
1482 # Check for random device
1483 AC_CHECK_FILE("/dev/urandom",
1484 [
1485 RANDOM_POOL="/dev/urandom";
1486 AC_SUBST(RANDOM_POOL)
1487 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
1488 ]
1489 )
1490 ]
1491)
1492
9bdd5929 1493# Check for PRNGD/EGD pool file
1494AC_ARG_WITH(prngd-port,
1495 [ --with-prngd-port=PORT read entropy from PRNGD/EGD localhost:PORT],
1496 [
1497 if test ! -z "$withval" -a "x$withval" != "xno" ; then
1498 PRNGD_PORT="$withval"
1499 AC_DEFINE_UNQUOTED(PRNGD_PORT, $PRNGD_PORT)
1500 fi
1501 ]
1502)
1503
1504# Check for PRNGD/EGD pool file
1505AC_ARG_WITH(prngd-socket,
1506 [ --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)],
a0391976 1507 [
bfc9a610 1508 if test "x$withval" != "xno" ; then
9bdd5929 1509 PRNGD_SOCKET="$withval"
1510 AC_DEFINE_UNQUOTED(PRNGD_SOCKET, "$PRNGD_SOCKET")
bfc9a610 1511 fi
e1dd3a7a 1512 ],
1513 [
1514 # Check for existing socket only if we don't have a random device already
1515 if test -z "$RANDOM_POOL" ; then
1516 AC_MSG_CHECKING(for PRNGD/EGD socket)
1517 # Insert other locations here
733cf7f4 1518 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
9bdd5929 1519 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
1520 PRNGD_SOCKET="$sock"
1521 AC_DEFINE_UNQUOTED(PRNGD_SOCKET, "$PRNGD_SOCKET")
e1dd3a7a 1522 break;
1523 fi
1524 done
9bdd5929 1525 if test ! -z "$PRNGD_SOCKET" ; then
1526 AC_MSG_RESULT($PRNGD_SOCKET)
6958bd37 1527 else
1528 AC_MSG_RESULT(not found)
1529 fi
e1dd3a7a 1530 fi
a0391976 1531 ]
1532)
1533
e1dd3a7a 1534
d3083fbd 1535# detect pathnames for entropy gathering commands, if we need them
1536INSTALL_SSH_PRNG_CMDS=""
1537rm -f prng_commands
9bdd5929 1538if (test -z "$RANDOM_POOL" && test -z "$PRNGD") ; then
9d98aaf6 1539 # Use these commands to collect entropy
58d100bf 1540 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
1541 OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat)
1542 OSSH_PATH_ENTROPY_PROG(PROG_ARP, arp)
1543 OSSH_PATH_ENTROPY_PROG(PROG_IFCONFIG, ifconfig)
ca5c7d6a 1544 OSSH_PATH_ENTROPY_PROG(PROG_JSTAT, jstat)
58d100bf 1545 OSSH_PATH_ENTROPY_PROG(PROG_PS, ps)
1a23ac2c 1546 OSSH_PATH_ENTROPY_PROG(PROG_SAR, sar)
58d100bf 1547 OSSH_PATH_ENTROPY_PROG(PROG_W, w)
1548 OSSH_PATH_ENTROPY_PROG(PROG_WHO, who)
1549 OSSH_PATH_ENTROPY_PROG(PROG_LAST, last)
1550 OSSH_PATH_ENTROPY_PROG(PROG_LASTLOG, lastlog)
1551 OSSH_PATH_ENTROPY_PROG(PROG_DF, df)
1552 OSSH_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat)
1553 OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime)
1554 OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs)
1555 OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail)
d3083fbd 1556
1557 INSTALL_SSH_PRNG_CMDS="yes"
9d98aaf6 1558fi
d3083fbd 1559AC_SUBST(INSTALL_SSH_PRNG_CMDS)
1560
9d98aaf6 1561
fdf6b7aa 1562AC_ARG_WITH(mantype,
5d97cfbf 1563 [ --with-mantype=man|cat|doc Set man page type],
c54a6257 1564 [
5d97cfbf 1565 case "$withval" in
1566 man|cat|doc)
1567 MANTYPE=$withval
1568 ;;
1569 *)
1570 AC_MSG_ERROR(invalid man type: $withval)
1571 ;;
1572 esac
c54a6257 1573 ]
1574)
e0c4d3ac 1575if test -z "$MANTYPE"; then
533875af 1576 AC_PATH_PROGS(NROFF, nroff awf, /bin/false, /usr/bin:/usr/ucb)
e0c4d3ac 1577 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
1578 MANTYPE=doc
1579 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
1580 MANTYPE=man
1581 else
1582 MANTYPE=cat
1583 fi
1584fi
c54a6257 1585AC_SUBST(MANTYPE)
e0c4d3ac 1586if test "$MANTYPE" = "doc"; then
1587 mansubdir=man;
1588else
1589 mansubdir=$MANTYPE;
1590fi
1591AC_SUBST(mansubdir)
0bc5b6fb 1592
a0391976 1593# Check whether to enable MD5 passwords
cbd7492e 1594MD5_MSG="no"
2ddcfdf3 1595AC_ARG_WITH(md5-passwords,
caf3bc51 1596 [ --with-md5-passwords Enable use of MD5 passwords],
0bc5b6fb 1597 [
bcf36c78 1598 if test "x$withval" != "xno" ; then
0bc5b6fb 1599 AC_DEFINE(HAVE_MD5_PASSWORDS)
cbd7492e 1600 MD5_MSG="yes"
0bc5b6fb 1601 fi
1602 ]
caf3bc51 1603)
1604
a0391976 1605# Whether to disable shadow password support
a7effaac 1606AC_ARG_WITH(shadow,
1607 [ --without-shadow Disable shadow password support],
1608 [
1609 if test "x$withval" = "xno" ; then
1610 AC_DEFINE(DISABLE_SHADOW)
4cb5ffa0 1611 disable_shadow=yes
a7effaac 1612 fi
1613 ]
1614)
1615
4cb5ffa0 1616if test -z "$disable_shadow" ; then
1617 AC_MSG_CHECKING([if the systems has expire shadow information])
1618 AC_TRY_COMPILE(
1619 [
1620#include <sys/types.h>
1621#include <shadow.h>
1622 struct spwd sp;
1623 ],[ sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; ],
1624 [ sp_expire_available=yes ], []
1625 )
1626
1627 if test "x$sp_expire_available" = "xyes" ; then
1628 AC_MSG_RESULT(yes)
1629 AC_DEFINE(HAS_SHADOW_EXPIRE)
1630 else
1631 AC_MSG_RESULT(no)
1632 fi
1633fi
1634
a0391976 1635# Use ip address instead of hostname in $DISPLAY
44839801 1636if test ! -z "$IPADDR_IN_DISPLAY" ; then
1637 DISPLAY_HACK_MSG="yes"
1638 AC_DEFINE(IPADDR_IN_DISPLAY)
1639else
1640 DISPLAY_HACK_MSG="no"
1641 AC_ARG_WITH(ipaddr-display,
1642 [ --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY],
1643 [
1644 if test "x$withval" != "xno" ; then
1645 AC_DEFINE(IPADDR_IN_DISPLAY)
1646 DISPLAY_HACK_MSG="yes"
1647 fi
1648 ]
1649 )
1650fi
a7effaac 1651
a0391976 1652# Whether to mess with the default path
cbd7492e 1653SERVER_PATH_MSG="(default)"
c43d69a9 1654AC_ARG_WITH(default-path,
cb807f40 1655 [ --with-default-path=PATH Specify default \$PATH environment for server],
1656 [
1657 if test "x$withval" != "xno" ; then
b2d818e6 1658 user_path="$withval"
cbd7492e 1659 SERVER_PATH_MSG="$withval"
cb807f40 1660 fi
b2d818e6 1661 ],
1662 [
1663 AC_TRY_RUN(
1664 [
1665/* find out what STDPATH is */
1666#include <stdio.h>
b2d818e6 1667#ifdef HAVE_PATHS_H
1668# include <paths.h>
1669#endif
1670#ifndef _PATH_STDPATH
1671# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
1672#endif
1673#include <sys/types.h>
1674#include <sys/stat.h>
1675#include <fcntl.h>
1676#define DATA "conftest.stdpath"
1677
1678main()
1679{
1680 FILE *fd;
1681 int rc;
1682
1683 fd = fopen(DATA,"w");
1684 if(fd == NULL)
1685 exit(1);
1686
1687 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
1688 exit(1);
1689
1690 exit(0);
1691}
1692 ], [ user_path=`cat conftest.stdpath` ],
1693 [ user_path="/usr/bin:/bin:/usr/sbin:/sbin" ],
1694 [ user_path="/usr/bin:/bin:/usr/sbin:/sbin" ]
1695 )
1696# make sure $bindir is in USER_PATH so scp will work
1697 t_bindir=`eval echo ${bindir}`
1698 case $t_bindir in
1699 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
1700 esac
1701 case $t_bindir in
1702 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
1703 esac
1704 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
1705 if test $? -ne 0 ; then
1706 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
1707 if test $? -ne 0 ; then
1708 user_path=$user_path:$t_bindir
1709 AC_MSG_RESULT(Adding $t_bindir to USER_PATH so scp will work)
1710 fi
1711 fi
cb807f40 1712 ]
1713)
b2d818e6 1714AC_DEFINE_UNQUOTED(USER_PATH, "$user_path")
1715AC_SUBST(user_path)
cb807f40 1716
a0391976 1717# Whether to force IPv4 by default (needed on broken glibc Linux)
cbd7492e 1718IPV4_HACK_MSG="no"
59e76f33 1719AC_ARG_WITH(ipv4-default,
1720 [ --with-ipv4-default Use IPv4 by connections unless '-6' specified],
1721 [
1722 if test "x$withval" != "xno" ; then
1723 AC_DEFINE(IPV4_DEFAULT)
cbd7492e 1724 IPV4_HACK_MSG="yes"
59e76f33 1725 fi
1726 ]
1727)
1728
58d100bf 1729AC_MSG_CHECKING([if we need to convert IPv4 in IPv6-mapped addresses])
cbd7492e 1730IPV4_IN6_HACK_MSG="no"
80faa19f 1731AC_ARG_WITH(4in6,
1732 [ --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses],
1733 [
1734 if test "x$withval" != "xno" ; then
1735 AC_MSG_RESULT(yes)
1736 AC_DEFINE(IPV4_IN_IPV6)
cbd7492e 1737 IPV4_IN6_HACK_MSG="yes"
80faa19f 1738 else
1739 AC_MSG_RESULT(no)
1740 fi
1741 ],[
1742 if test "x$inet6_default_4in6" = "xyes"; then
1743 AC_MSG_RESULT([yes (default)])
1744 AC_DEFINE(IPV4_IN_IPV6)
cbd7492e 1745 IPV4_IN6_HACK_MSG="yes"
80faa19f 1746 else
1747 AC_MSG_RESULT([no (default)])
1748 fi
1749 ]
1750)
1751
af774732 1752# Whether to enable BSD auth support
1753AC_ARG_WITH(bsd-auth,
1754 [ --with-bsd-auth Enable BSD auth support],
1755 [
1756 if test "x$withval" != "xno" ; then
1757 AC_DEFINE(BSD_AUTH)
1758 bsd_auth=yes
1759 fi
1760 ]
1761)
1762
77bb0bca 1763AC_MSG_CHECKING(whether to install ssh as suid root)
1764AC_ARG_ENABLE(suid-ssh,
1765[ --enable-suid-ssh Install ssh as suid root (default)
1766 --disable-suid-ssh Install ssh without suid bit],
1767[ case "$enableval" in
1768 no)
1769 AC_MSG_RESULT(no)
1770 SSHMODE=0711
1771 ;;
1772 *) AC_MSG_RESULT(yes)
0b7d19eb 1773 SSHMODE=4711
77bb0bca 1774 ;;
1775 esac ],
1776 AC_MSG_RESULT(yes)
0b7d19eb 1777 SSHMODE=4711
77bb0bca 1778)
1779AC_SUBST(SSHMODE)
1780
1781
a0391976 1782# Where to place sshd.pid
19d9ac2a 1783piddir=/var/run
47e45e44 1784AC_ARG_WITH(pid-dir,
1785 [ --with-pid-dir=PATH Specify location of ssh.pid file],
1786 [
1787 if test "x$withval" != "xno" ; then
19d9ac2a 1788 piddir=$withval
47e45e44 1789 fi
1790 ]
1791)
b7a87eea 1792
77bb0bca 1793# make sure the directory exists
1794if test ! -d $piddir ; then
1795 piddir=`eval echo ${sysconfdir}`
1796 case $piddir in
1797 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
1798 esac
1799fi
1800
42f11eb2 1801AC_DEFINE_UNQUOTED(_PATH_SSH_PIDDIR, "$piddir")
19d9ac2a 1802AC_SUBST(piddir)
47e45e44 1803
1d7b9b20 1804dnl allow user to disable some login recording features
1805AC_ARG_ENABLE(lastlog,
bfd550a2 1806 [ --disable-lastlog disable use of lastlog even if detected [no]],
1d7b9b20 1807 [ AC_DEFINE(DISABLE_LASTLOG) ]
1808)
1809AC_ARG_ENABLE(utmp,
bfd550a2 1810 [ --disable-utmp disable use of utmp even if detected [no]],
1d7b9b20 1811 [ AC_DEFINE(DISABLE_UTMP) ]
1812)
1813AC_ARG_ENABLE(utmpx,
bfd550a2 1814 [ --disable-utmpx disable use of utmpx even if detected [no]],
1d7b9b20 1815 [ AC_DEFINE(DISABLE_UTMPX) ]
1816)
1817AC_ARG_ENABLE(wtmp,
bfd550a2 1818 [ --disable-wtmp disable use of wtmp even if detected [no]],
1d7b9b20 1819 [ AC_DEFINE(DISABLE_WTMP) ]
1820)
1821AC_ARG_ENABLE(wtmpx,
bfd550a2 1822 [ --disable-wtmpx disable use of wtmpx even if detected [no]],
1d7b9b20 1823 [ AC_DEFINE(DISABLE_WTMPX) ]
1824)
1825AC_ARG_ENABLE(libutil,
bfd550a2 1826 [ --disable-libutil disable use of libutil (login() etc.) [no]],
1d7b9b20 1827 [ AC_DEFINE(DISABLE_LOGIN) ]
1828)
1829AC_ARG_ENABLE(pututline,
bfd550a2 1830 [ --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]],
1d7b9b20 1831 [ AC_DEFINE(DISABLE_PUTUTLINE) ]
1832)
1833AC_ARG_ENABLE(pututxline,
bfd550a2 1834 [ --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]],
1d7b9b20 1835 [ AC_DEFINE(DISABLE_PUTUTXLINE) ]
1836)
1837AC_ARG_WITH(lastlog,
bfd550a2 1838 [ --with-lastlog=FILE|DIR specify lastlog location [common locations]],
8c89dd2b 1839 [
1840 if test "x$withval" = "xno" ; then
1841 AC_DEFINE(DISABLE_LASTLOG)
1842 else
1843 conf_lastlog_location=$withval
1844 fi
1845 ]
1846)
1d7b9b20 1847
1848dnl lastlog, [uw]tmpx? detection
1849dnl NOTE: set the paths in the platform section to avoid the
1850dnl need for command-line parameters
1851dnl lastlog and [uw]tmp are subject to a file search if all else fails
1852
1853dnl lastlog detection
1854dnl NOTE: the code itself will detect if lastlog is a directory
1855AC_MSG_CHECKING([if your system defines LASTLOG_FILE])
1856AC_TRY_COMPILE([
1857#include <sys/types.h>
1858#include <utmp.h>
1859#ifdef HAVE_LASTLOG_H
1860# include <lastlog.h>
1861#endif
d7c0f3d5 1862#ifdef HAVE_PATHS_H
1d7b9b20 1863# include <paths.h>
41cb4569 1864#endif
1865#ifdef HAVE_LOGIN_H
1866# include <login.h>
1d7b9b20 1867#endif
1868 ],
1869 [ char *lastlog = LASTLOG_FILE; ],
1870 [ AC_MSG_RESULT(yes) ],
d7c0f3d5 1871 [
1872 AC_MSG_RESULT(no)
1873 AC_MSG_CHECKING([if your system defines _PATH_LASTLOG])
1874 AC_TRY_COMPILE([
1875#include <sys/types.h>
1876#include <utmp.h>
1877#ifdef HAVE_LASTLOG_H
1878# include <lastlog.h>
1879#endif
1880#ifdef HAVE_PATHS_H
1881# include <paths.h>
1882#endif
1883 ],
1884 [ char *lastlog = _PATH_LASTLOG; ],
1885 [ AC_MSG_RESULT(yes) ],
1886 [
f282b668 1887 AC_MSG_RESULT(no)
d7c0f3d5 1888 system_lastlog_path=no
1889 ])
1890 ]
1d7b9b20 1891)
d7c0f3d5 1892
1d7b9b20 1893if test -z "$conf_lastlog_location"; then
1894 if test x"$system_lastlog_path" = x"no" ; then
1895 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
e5fe9a1f 1896 if (test -d "$f" || test -f "$f") ; then
1d7b9b20 1897 conf_lastlog_location=$f
1898 fi
1899 done
1900 if test -z "$conf_lastlog_location"; then
f8119cef 1901 AC_MSG_WARN([** Cannot find lastlog **])
1902 dnl Don't define DISABLE_LASTLOG - that means we don't try wtmp/wtmpx
1d7b9b20 1903 fi
1904 fi
1905fi
1906
1907if test -n "$conf_lastlog_location"; then
1908 AC_DEFINE_UNQUOTED(CONF_LASTLOG_FILE, "$conf_lastlog_location")
1909fi
1910
1911dnl utmp detection
1912AC_MSG_CHECKING([if your system defines UTMP_FILE])
1913AC_TRY_COMPILE([
1914#include <sys/types.h>
1915#include <utmp.h>
d7c0f3d5 1916#ifdef HAVE_PATHS_H
1d7b9b20 1917# include <paths.h>
1918#endif
1919 ],
1920 [ char *utmp = UTMP_FILE; ],
1921 [ AC_MSG_RESULT(yes) ],
1922 [ AC_MSG_RESULT(no)
1923 system_utmp_path=no ]
1924)
1925if test -z "$conf_utmp_location"; then
1926 if test x"$system_utmp_path" = x"no" ; then
1927 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
1928 if test -f $f ; then
1929 conf_utmp_location=$f
1930 fi
1931 done
1932 if test -z "$conf_utmp_location"; then
1933 AC_DEFINE(DISABLE_UTMP)
1934 fi
1935 fi
1936fi
1937if test -n "$conf_utmp_location"; then
1938 AC_DEFINE_UNQUOTED(CONF_UTMP_FILE, "$conf_utmp_location")
1939fi
1940
1941dnl wtmp detection
1942AC_MSG_CHECKING([if your system defines WTMP_FILE])
1943AC_TRY_COMPILE([
1944#include <sys/types.h>
1945#include <utmp.h>
d7c0f3d5 1946#ifdef HAVE_PATHS_H
1d7b9b20 1947# include <paths.h>
1948#endif
1949 ],
1950 [ char *wtmp = WTMP_FILE; ],
1951 [ AC_MSG_RESULT(yes) ],
1952 [ AC_MSG_RESULT(no)
1953 system_wtmp_path=no ]
1954)
1955if test -z "$conf_wtmp_location"; then
1956 if test x"$system_wtmp_path" = x"no" ; then
1957 for f in /usr/adm/wtmp /var/log/wtmp; do
1958 if test -f $f ; then
1959 conf_wtmp_location=$f
1960 fi
1961 done
1962 if test -z "$conf_wtmp_location"; then
1963 AC_DEFINE(DISABLE_WTMP)
1964 fi
1965 fi
1966fi
1967if test -n "$conf_wtmp_location"; then
1968 AC_DEFINE_UNQUOTED(CONF_WTMP_FILE, "$conf_wtmp_location")
1969fi
1970
1971
1972dnl utmpx detection - I don't know any system so perverse as to require
1973dnl utmpx, but not define UTMPX_FILE (ditto wtmpx.) No doubt it's out
1974dnl there, though.
1975AC_MSG_CHECKING([if your system defines UTMPX_FILE])
1976AC_TRY_COMPILE([
1977#include <sys/types.h>
1978#include <utmp.h>
1979#ifdef HAVE_UTMPX_H
1980#include <utmpx.h>
1981#endif
d7c0f3d5 1982#ifdef HAVE_PATHS_H
1d7b9b20 1983# include <paths.h>
1984#endif
1985 ],
1986 [ char *utmpx = UTMPX_FILE; ],
1987 [ AC_MSG_RESULT(yes) ],
1988 [ AC_MSG_RESULT(no)
1989 system_utmpx_path=no ]
1990)
1991if test -z "$conf_utmpx_location"; then
1992 if test x"$system_utmpx_path" = x"no" ; then
1993 AC_DEFINE(DISABLE_UTMPX)
1994 fi
1995else
1996 AC_DEFINE_UNQUOTED(CONF_UTMPX_FILE, "$conf_utmpx_location")
1997fi
1998
1999dnl wtmpx detection
2000AC_MSG_CHECKING([if your system defines WTMPX_FILE])
2001AC_TRY_COMPILE([
2002#include <sys/types.h>
2003#include <utmp.h>
2004#ifdef HAVE_UTMPX_H
2005#include <utmpx.h>
2006#endif
d7c0f3d5 2007#ifdef HAVE_PATHS_H
1d7b9b20 2008# include <paths.h>
2009#endif
2010 ],
2011 [ char *wtmpx = WTMPX_FILE; ],
2012 [ AC_MSG_RESULT(yes) ],
2013 [ AC_MSG_RESULT(no)
2014 system_wtmpx_path=no ]
2015)
2016if test -z "$conf_wtmpx_location"; then
2017 if test x"$system_wtmpx_path" = x"no" ; then
2018 AC_DEFINE(DISABLE_WTMPX)
2019 fi
2020else
2021 AC_DEFINE_UNQUOTED(CONF_WTMPX_FILE, "$conf_wtmpx_location")
2022fi
2023
b7a87eea 2024
2025# Change default command timeout for builtin PRNG
48c99b2c 2026entropy_timeout=200
b7a87eea 2027AC_ARG_WITH(entropy-timeout,
2028 [ --with-entropy-timeout Specify entropy gathering command timeout (msec)],
2029 [
2030 if test "x$withval" != "xno" ; then
2031 entropy_timeout=$withval
2032 fi
2033 ]
2034)
2035AC_DEFINE_UNQUOTED(ENTROPY_TIMEOUT_MSEC, $entropy_timeout)
2036
2037
bd499f9e 2038if test ! -z "$blibpath" ; then
2039 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
2040 AC_MSG_WARN([Please check and edit -blibpath in LDFLAGS in Makefile])
2041fi
2042
3c62e7eb 2043AC_EXEEXT
2044
93816ec8 2045AC_OUTPUT(Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds)
d3083fbd 2046
cbd7492e 2047# Print summary of options
2048
cbd7492e 2049if test ! -z "$RANDOM_POOL" ; then
2050 RAND_MSG="Device ($RANDOM_POOL)"
2051else
9bdd5929 2052 if test ! -z "$PRNGD_PORT" ; then
2053 RAND_MSG="PRNGD/EGD (port localhost:$PRNGD_PORT)"
2054 elif test ! -z "$PRNGD_SOCKET" ; then
2055 RAND_MSG="PRNGD/EGD (socket $PRNGD_SOCKET)"
cbd7492e 2056 else
2057 RAND_MSG="Builtin (timeout $entropy_timeout)"
48e7916f 2058 BUILTIN_RNG=1
cbd7492e 2059 fi
2060fi
2061
2062# Someone please show me a better way :)
2063A=`eval echo ${prefix}` ; A=`eval echo ${A}`
2064B=`eval echo ${bindir}` ; B=`eval echo ${B}`
2065C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
2066D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
f5665f6f 2067E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
e0c4d3ac 2068F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
cbd7492e 2069G=`eval echo ${piddir}` ; G=`eval echo ${G}`
b2d818e6 2070H=`eval echo ${user_path}` ; H=`eval echo ${H}`
cbd7492e 2071
2072echo ""
26de7942 2073echo "OpenSSH has been configured with the following options:"
cbd7492e 2074echo " User binaries: $B"
2075echo " System binaries: $C"
2076echo " Configuration files: $D"
2077echo " Askpass program: $E"
2078echo " Manual pages: $F"
2079echo " PID file: $G"
b2d818e6 2080echo " sshd default user PATH: $H"
cbd7492e 2081echo " Random number collection: $RAND_MSG"
5d97cfbf 2082echo " Manpage format: $MANTYPE"
cbd7492e 2083echo " PAM support: ${PAM_MSG}"
2084echo " KerberosIV support: $KRB4_MSG"
d0b19c95 2085echo " Smartcard support: $SCARD_MSG"
cbd7492e 2086echo " AFS support: $AFS_MSG"
2087echo " S/KEY support: $SKEY_MSG"
2088echo " TCP Wrappers support: $TCPW_MSG"
2089echo " MD5 password support: $MD5_MSG"
2090echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
2091echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
2092echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
2093
af774732 2094if test ! -z "$bsd_auth"; then
2095 echo " BSD Auth support: yes"
2096fi
2097
cbd7492e 2098echo ""
2099
0c2fb82f 2100echo " Host: ${host}"
2101echo " Compiler: ${CC}"
2102echo " Compiler flags: ${CFLAGS}"
2103echo "Preprocessor flags: ${CPPFLAGS}"
2104echo " Linker flags: ${LDFLAGS}"
2105echo " Libraries: ${LIBS}"
cbd7492e 2106
2107echo ""
2108
adeebd37 2109if test "x$PAM_MSG" = "xyes" ; then
2110 echo "PAM is enabled. You may need to install a PAM control file for sshd,"
2111 echo "otherwise password authentication may fail. Example PAM control files"
2112 echo "can be found in the contrib/ subdirectory"
2113 echo ""
2114fi
2115
48e7916f 2116if test ! -z "$BUILTIN_RNG" ; then
2117 echo "WARNING: you are using the builtin random number collection service."
2118 echo "Please read WARNING.RNG and request that your OS vendor includes"
2119 echo "/dev/random in future versions of their OS."
2120 echo ""
2121fi
2c523de9 2122
2123if test ! -z "$NO_SFTP"; then
2124 echo "sftp-server will be disabled. Your compiler does not support"
2125 echo "64bit integers."
2126 echo ""
2127fi
af774732 2128
This page took 1.938885 seconds and 5 git commands to generate.