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