summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure559
1 files changed, 526 insertions, 33 deletions
diff --git a/configure b/configure
index 1d29674e0..19cc20c84 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
1#! /bin/sh 1#! /bin/sh
2# From configure.ac Revision: 1.383 . 2# From configure.ac Revision: 1.409 .
3# Guess values for system-dependent variables and create Makefiles. 3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenSSH Portable. 4# Generated by GNU Autoconf 2.61 for OpenSSH Portable.
5# 5#
@@ -723,6 +723,7 @@ MANTYPE
723mansubdir 723mansubdir
724user_path 724user_path
725piddir 725piddir
726TEST_SSH_IPV6
726LIBOBJS 727LIBOBJS
727LTLIBOBJS' 728LTLIBOBJS'
728ac_subst_files='' 729ac_subst_files=''
@@ -1324,6 +1325,7 @@ Optional Features:
1324Optional Packages: 1325Optional Packages:
1325 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1326 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1328 --without-stackprotect Don't use compiler's stack protection
1327 --without-rpath Disable auto-added -R linker paths 1329 --without-rpath Disable auto-added -R linker paths
1328 --with-cflags Specify additional flags to pass to compiler 1330 --with-cflags Specify additional flags to pass to compiler
1329 --with-cppflags Specify additional flags to pass to preprocessor 1331 --with-cppflags Specify additional flags to pass to preprocessor
@@ -1349,7 +1351,7 @@ Optional Packages:
1349 --with-privsep-user=user Specify non-privileged user for privilege separation 1351 --with-privsep-user=user Specify non-privileged user for privilege separation
1350 --with-sectok Enable smartcard support using libsectok 1352 --with-sectok Enable smartcard support using libsectok
1351 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) 1353 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1352 --with-selinux Enable SELinux support 1354 --with-selinux Enable SELinux support
1353 --with-kerberos5=PATH Enable Kerberos 5 support 1355 --with-kerberos5=PATH Enable Kerberos 5 support
1354 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) 1356 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1355 --with-xauth=PATH Specify path to xauth program 1357 --with-xauth=PATH Specify path to xauth program
@@ -5383,6 +5385,17 @@ if test $ac_cv_have_decl_LLONG_MAX = yes; then
5383fi 5385fi
5384 5386
5385 5387
5388use_stack_protector=1
5389
5390# Check whether --with-stackprotect was given.
5391if test "${with_stackprotect+set}" = set; then
5392 withval=$with_stackprotect;
5393 if test "x$withval" = "xno"; then
5394 use_stack_protector=0
5395 fi
5396fi
5397
5398
5386if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 5399if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5387 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" 5400 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5388 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` 5401 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
@@ -5393,11 +5406,175 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5393 no_attrib_nonnull=1 5406 no_attrib_nonnull=1
5394 ;; 5407 ;;
5395 2.*) no_attrib_nonnull=1 ;; 5408 2.*) no_attrib_nonnull=1 ;;
5396 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;; 5409 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
5397 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;; 5410 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;;
5398 *) ;; 5411 *) ;;
5399 esac 5412 esac
5400 5413
5414 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
5415echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
5416 saved_CFLAGS="$CFLAGS"
5417 CFLAGS="$CFLAGS -fno-builtin-memset"
5418 cat >conftest.$ac_ext <<_ACEOF
5419/* confdefs.h. */
5420_ACEOF
5421cat confdefs.h >>conftest.$ac_ext
5422cat >>conftest.$ac_ext <<_ACEOF
5423/* end confdefs.h. */
5424
5425#include <string.h>
5426int main(void){char b[10]; memset(b, 0, sizeof(b));}
5427
5428_ACEOF
5429rm -f conftest.$ac_objext conftest$ac_exeext
5430if { (ac_try="$ac_link"
5431case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434esac
5435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_link") 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } && {
5443 test -z "$ac_c_werror_flag" ||
5444 test ! -s conftest.err
5445 } && test -s conftest$ac_exeext &&
5446 $as_test_x conftest$ac_exeext; then
5447 { echo "$as_me:$LINENO: result: yes" >&5
5448echo "${ECHO_T}yes" >&6; }
5449else
5450 echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 { echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6; }
5455 CFLAGS="$saved_CFLAGS"
5456
5457fi
5458
5459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5460 conftest$ac_exeext conftest.$ac_ext
5461
5462 # -fstack-protector-all doesn't always work for some GCC versions
5463 # and/or platforms, so we test if we can. If it's not supported
5464 # on a give platform gcc will emit a warning so we use -Werror.
5465 if test "x$use_stack_protector" = "x1"; then
5466 for t in -fstack-protector-all -fstack-protector; do
5467 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5468echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
5469 saved_CFLAGS="$CFLAGS"
5470 saved_LDFLAGS="$LDFLAGS"
5471 CFLAGS="$CFLAGS $t -Werror"
5472 LDFLAGS="$LDFLAGS $t -Werror"
5473 cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479
5480#include <stdlib.h>
5481int main(void){return 0;}
5482
5483_ACEOF
5484rm -f conftest.$ac_objext conftest$ac_exeext
5485if { (ac_try="$ac_link"
5486case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_link") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest$ac_exeext &&
5501 $as_test_x conftest$ac_exeext; then
5502 { echo "$as_me:$LINENO: result: yes" >&5
5503echo "${ECHO_T}yes" >&6; }
5504 CFLAGS="$saved_CFLAGS $t"
5505 LDFLAGS="$saved_LDFLAGS $t"
5506 { echo "$as_me:$LINENO: checking if $t works" >&5
5507echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
5508 if test "$cross_compiling" = yes; then
5509 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5510echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5511 break
5512
5513else
5514 cat >conftest.$ac_ext <<_ACEOF
5515/* confdefs.h. */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h. */
5520
5521#include <stdlib.h>
5522int main(void){exit(0);}
5523
5524_ACEOF
5525rm -f conftest$ac_exeext
5526if { (ac_try="$ac_link"
5527case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530esac
5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_link") 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5536 { (case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_try") 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 { echo "$as_me:$LINENO: result: yes" >&5
5546echo "${ECHO_T}yes" >&6; }
5547 break
5548else
5549 echo "$as_me: program exited with status $ac_status" >&5
5550echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
5553( exit $ac_status )
5554 { echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6; }
5556fi
5557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5558fi
5559
5560
5561
5562else
5563 echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 { echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6; }
5568
5569fi
5570
5571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5572 conftest$ac_exeext conftest.$ac_ext
5573 CFLAGS="$saved_CFLAGS"
5574 LDFLAGS="$saved_LDFLAGS"
5575 done
5576 fi
5577
5401 if test -z "$have_llong_max"; then 5578 if test -z "$have_llong_max"; then
5402 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes 5579 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5403 unset ac_cv_have_decl_LLONG_MAX 5580 unset ac_cv_have_decl_LLONG_MAX
@@ -5614,6 +5791,9 @@ fi
5614 5791
5615 5792
5616 5793
5794
5795
5796
5617for ac_header in \ 5797for ac_header in \
5618 bstring.h \ 5798 bstring.h \
5619 crypt.h \ 5799 crypt.h \
@@ -5653,7 +5833,9 @@ for ac_header in \
5653 sys/cdefs.h \ 5833 sys/cdefs.h \
5654 sys/dir.h \ 5834 sys/dir.h \
5655 sys/mman.h \ 5835 sys/mman.h \
5836 sys/mount.h \
5656 sys/ndir.h \ 5837 sys/ndir.h \
5838 sys/poll.h \
5657 sys/prctl.h \ 5839 sys/prctl.h \
5658 sys/pstat.h \ 5840 sys/pstat.h \
5659 sys/select.h \ 5841 sys/select.h \
@@ -5661,6 +5843,7 @@ for ac_header in \
5661 sys/stream.h \ 5843 sys/stream.h \
5662 sys/stropts.h \ 5844 sys/stropts.h \
5663 sys/strtio.h \ 5845 sys/strtio.h \
5846 sys/statvfs.h \
5664 sys/sysmacros.h \ 5847 sys/sysmacros.h \
5665 sys/time.h \ 5848 sys/time.h \
5666 sys/timers.h \ 5849 sys/timers.h \
@@ -6761,7 +6944,8 @@ fi
6761 6944
6762 6945
6763 6946
6764for ac_func in setauthdb 6947
6948for ac_func in getgrset setauthdb
6765do 6949do
6766as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6767{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -7094,6 +7278,11 @@ _ACEOF
7094_ACEOF 7278_ACEOF
7095 7279
7096 7280
7281cat >>confdefs.h <<\_ACEOF
7282#define BROKEN_GLOB 1
7283_ACEOF
7284
7285
7097cat >>confdefs.h <<_ACEOF 7286cat >>confdefs.h <<_ACEOF
7098#define BIND_8_COMPAT 1 7287#define BIND_8_COMPAT 1
7099_ACEOF 7288_ACEOF
@@ -7113,6 +7302,71 @@ cat >>confdefs.h <<\_ACEOF
7113#define SSH_TUN_PREPEND_AF 1 7302#define SSH_TUN_PREPEND_AF 1
7114_ACEOF 7303_ACEOF
7115 7304
7305
7306 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7307echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
7308if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311 cat >conftest.$ac_ext <<_ACEOF
7312/* confdefs.h. */
7313_ACEOF
7314cat confdefs.h >>conftest.$ac_ext
7315cat >>conftest.$ac_ext <<_ACEOF
7316/* end confdefs.h. */
7317$ac_includes_default
7318int
7319main ()
7320{
7321#ifndef AU_IPv4
7322 (void) AU_IPv4;
7323#endif
7324
7325 ;
7326 return 0;
7327}
7328_ACEOF
7329rm -f conftest.$ac_objext
7330if { (ac_try="$ac_compile"
7331case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334esac
7335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 ac_cv_have_decl_AU_IPv4=yes
7347else
7348 echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351 ac_cv_have_decl_AU_IPv4=no
7352fi
7353
7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355fi
7356{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7357echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
7358if test $ac_cv_have_decl_AU_IPv4 = yes; then
7359 :
7360else
7361
7362cat >>confdefs.h <<\_ACEOF
7363#define AU_IPv4 0
7364_ACEOF
7365
7366 #include <bsm/audit.h>
7367
7368fi
7369
7116 ;; 7370 ;;
7117*-*-dragonfly*) 7371*-*-dragonfly*)
7118 SSHDLIBS="$SSHDLIBS -lcrypt" 7372 SSHDLIBS="$SSHDLIBS -lcrypt"
@@ -7433,11 +7687,6 @@ _ACEOF
7433 check_for_openpty_ctty_bug=1 7687 check_for_openpty_ctty_bug=1
7434 7688
7435cat >>confdefs.h <<\_ACEOF 7689cat >>confdefs.h <<\_ACEOF
7436#define DONT_TRY_OTHER_AF 1
7437_ACEOF
7438
7439
7440cat >>confdefs.h <<\_ACEOF
7441#define PAM_TTY_KLUDGE 1 7690#define PAM_TTY_KLUDGE 1
7442_ACEOF 7691_ACEOF
7443 7692
@@ -7956,6 +8205,11 @@ _ACEOF
7956fi 8205fi
7957 8206
7958 8207
8208
8209cat >>confdefs.h <<\_ACEOF
8210#define BROKEN_GLOB 1
8211_ACEOF
8212
7959 ;; 8213 ;;
7960*-*-bsdi*) 8214*-*-bsdi*)
7961 cat >>confdefs.h <<\_ACEOF 8215 cat >>confdefs.h <<\_ACEOF
@@ -8839,6 +9093,11 @@ _ACEOF
8839#define BROKEN_SETREGID 1 9093#define BROKEN_SETREGID 1
8840_ACEOF 9094_ACEOF
8841 9095
9096
9097cat >>confdefs.h <<\_ACEOF
9098#define BROKEN_READV_COMPARISON 1
9099_ACEOF
9100
8842 ;; 9101 ;;
8843 9102
8844*-*-nto-qnx*) 9103*-*-nto-qnx*)
@@ -8873,6 +9132,11 @@ _ACEOF
8873#define SSHD_ACQUIRES_CTTY 1 9132#define SSHD_ACQUIRES_CTTY 1
8874_ACEOF 9133_ACEOF
8875 9134
9135
9136cat >>confdefs.h <<\_ACEOF
9137#define BROKEN_SHADOW_EXPIRE 1
9138_ACEOF
9139
8876 enable_etc_default_login=no # has incompatible /etc/default/login 9140 enable_etc_default_login=no # has incompatible /etc/default/login
8877 case "$host" in 9141 case "$host" in
8878 *-*-nto-qnx6*) 9142 *-*-nto-qnx6*)
@@ -11038,7 +11302,8 @@ fi
11038 11302
11039 11303
11040 11304
11041for ac_func in logout updwtmp logwtmp 11305
11306for ac_func in fmt_scaled logout updwtmp logwtmp
11042do 11307do
11043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11044{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11309{ echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -12179,7 +12444,8 @@ done
12179 12444
12180 # These are optional 12445 # These are optional
12181 12446
12182for ac_func in getaudit_addr 12447
12448for ac_func in getaudit_addr aug_get_machine
12183do 12449do
12184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12185{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12451{ echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -12386,8 +12652,15 @@ fi
12386 12652
12387 12653
12388 12654
12655
12656
12657
12658
12659
12389for ac_func in \ 12660for ac_func in \
12390 arc4random \ 12661 arc4random \
12662 arc4random_buf \
12663 arc4random_uniform \
12391 asprintf \ 12664 asprintf \
12392 b64_ntop \ 12665 b64_ntop \
12393 __b64_ntop \ 12666 __b64_ntop \
@@ -12401,6 +12674,7 @@ for ac_func in \
12401 fchmod \ 12674 fchmod \
12402 fchown \ 12675 fchown \
12403 freeaddrinfo \ 12676 freeaddrinfo \
12677 fstatvfs \
12404 futimes \ 12678 futimes \
12405 getaddrinfo \ 12679 getaddrinfo \
12406 getcwd \ 12680 getcwd \
@@ -12452,6 +12726,8 @@ for ac_func in \
12452 sigvec \ 12726 sigvec \
12453 snprintf \ 12727 snprintf \
12454 socketpair \ 12728 socketpair \
12729 statfs \
12730 statvfs \
12455 strdup \ 12731 strdup \
12456 strerror \ 12732 strerror \
12457 strlcat \ 12733 strlcat \
@@ -16619,6 +16895,12 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
16619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16620_ACEOF 16896_ACEOF
16621 SSHDLIBS="$SSHDLIBS -liaf" 16897 SSHDLIBS="$SSHDLIBS -liaf"
16898
16899cat >>confdefs.h <<\_ACEOF
16900#define HAVE_LIBIAF 1
16901_ACEOF
16902
16903
16622fi 16904fi
16623done 16905done
16624 16906
@@ -21400,6 +21682,153 @@ _ACEOF
21400 21682
21401fi 21683fi
21402 21684
21685{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
21686echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
21687if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21689else
21690 cat >conftest.$ac_ext <<_ACEOF
21691/* confdefs.h. */
21692_ACEOF
21693cat confdefs.h >>conftest.$ac_ext
21694cat >>conftest.$ac_ext <<_ACEOF
21695/* end confdefs.h. */
21696
21697#include <sys/types.h>
21698#ifdef HAVE_SYS_BITYPES_H
21699#include <sys/bitypes.h>
21700#endif
21701#ifdef HAVE_SYS_STATFS_H
21702#include <sys/statfs.h>
21703#endif
21704#ifdef HAVE_SYS_STATVFS_H
21705#include <sys/statvfs.h>
21706#endif
21707
21708
21709typedef fsblkcnt_t ac__type_new_;
21710int
21711main ()
21712{
21713if ((ac__type_new_ *) 0)
21714 return 0;
21715if (sizeof (ac__type_new_))
21716 return 0;
21717 ;
21718 return 0;
21719}
21720_ACEOF
21721rm -f conftest.$ac_objext
21722if { (ac_try="$ac_compile"
21723case "(($ac_try" in
21724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21726esac
21727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_compile") 2>conftest.er1
21729 ac_status=$?
21730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && {
21735 test -z "$ac_c_werror_flag" ||
21736 test ! -s conftest.err
21737 } && test -s conftest.$ac_objext; then
21738 ac_cv_type_fsblkcnt_t=yes
21739else
21740 echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 ac_cv_type_fsblkcnt_t=no
21744fi
21745
21746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21747fi
21748{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
21749echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
21750if test $ac_cv_type_fsblkcnt_t = yes; then
21751
21752cat >>confdefs.h <<_ACEOF
21753#define HAVE_FSBLKCNT_T 1
21754_ACEOF
21755
21756
21757fi
21758{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
21759echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
21760if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21762else
21763 cat >conftest.$ac_ext <<_ACEOF
21764/* confdefs.h. */
21765_ACEOF
21766cat confdefs.h >>conftest.$ac_ext
21767cat >>conftest.$ac_ext <<_ACEOF
21768/* end confdefs.h. */
21769
21770#include <sys/types.h>
21771#ifdef HAVE_SYS_BITYPES_H
21772#include <sys/bitypes.h>
21773#endif
21774#ifdef HAVE_SYS_STATFS_H
21775#include <sys/statfs.h>
21776#endif
21777#ifdef HAVE_SYS_STATVFS_H
21778#include <sys/statvfs.h>
21779#endif
21780
21781
21782typedef fsfilcnt_t ac__type_new_;
21783int
21784main ()
21785{
21786if ((ac__type_new_ *) 0)
21787 return 0;
21788if (sizeof (ac__type_new_))
21789 return 0;
21790 ;
21791 return 0;
21792}
21793_ACEOF
21794rm -f conftest.$ac_objext
21795if { (ac_try="$ac_compile"
21796case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799esac
21800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
21802 ac_status=$?
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && {
21808 test -z "$ac_c_werror_flag" ||
21809 test ! -s conftest.err
21810 } && test -s conftest.$ac_objext; then
21811 ac_cv_type_fsfilcnt_t=yes
21812else
21813 echo "$as_me: failed program was:" >&5
21814sed 's/^/| /' conftest.$ac_ext >&5
21815
21816 ac_cv_type_fsfilcnt_t=no
21817fi
21818
21819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820fi
21821{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
21822echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
21823if test $ac_cv_type_fsfilcnt_t = yes; then
21824
21825cat >>confdefs.h <<_ACEOF
21826#define HAVE_FSFILCNT_T 1
21827_ACEOF
21828
21829
21830fi
21831
21403 21832
21404{ echo "$as_me:$LINENO: checking for in_addr_t" >&5 21833{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
21405echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; } 21834echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
@@ -23707,6 +24136,60 @@ _ACEOF
23707 24136
23708fi 24137fi
23709 24138
24139{ echo "$as_me:$LINENO: checking if f_fsid has val members" >&5
24140echo $ECHO_N "checking if f_fsid has val members... $ECHO_C" >&6; }
24141cat >conftest.$ac_ext <<_ACEOF
24142/* confdefs.h. */
24143_ACEOF
24144cat confdefs.h >>conftest.$ac_ext
24145cat >>conftest.$ac_ext <<_ACEOF
24146/* end confdefs.h. */
24147
24148#include <sys/types.h>
24149#include <sys/statvfs.h>
24150int
24151main ()
24152{
24153struct fsid_t t; t.val[0] = 0;
24154 ;
24155 return 0;
24156}
24157_ACEOF
24158rm -f conftest.$ac_objext
24159if { (ac_try="$ac_compile"
24160case "(($ac_try" in
24161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24162 *) ac_try_echo=$ac_try;;
24163esac
24164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24165 (eval "$ac_compile") 2>conftest.er1
24166 ac_status=$?
24167 grep -v '^ *+' conftest.er1 >conftest.err
24168 rm -f conftest.er1
24169 cat conftest.err >&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); } && {
24172 test -z "$ac_c_werror_flag" ||
24173 test ! -s conftest.err
24174 } && test -s conftest.$ac_objext; then
24175 { echo "$as_me:$LINENO: result: yes" >&5
24176echo "${ECHO_T}yes" >&6; }
24177
24178cat >>confdefs.h <<\_ACEOF
24179#define FSID_HAS_VAL 1
24180_ACEOF
24181
24182else
24183 echo "$as_me: failed program was:" >&5
24184sed 's/^/| /' conftest.$ac_ext >&5
24185
24186 { echo "$as_me:$LINENO: result: no" >&5
24187echo "${ECHO_T}no" >&6; }
24188
24189fi
24190
24191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24192
23710{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 24193{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
23711echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; } 24194echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
23712if test "${ac_cv_have_control_in_msghdr+set}" = set; then 24195if test "${ac_cv_have_control_in_msghdr+set}" = set; then
@@ -25985,13 +26468,13 @@ if test "$ac_res" != no; then
25985fi 26468fi
25986 26469
25987 26470
25988 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 26471 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
25989echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; } 26472echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
25990if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then 26473if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
25991 echo $ECHO_N "(cached) $ECHO_C" >&6 26474 echo $ECHO_N "(cached) $ECHO_C" >&6
25992else 26475else
25993 ac_check_lib_save_LIBS=$LIBS 26476 ac_check_lib_save_LIBS=$LIBS
25994LIBS="-lgssapi $K5LIBS $LIBS" 26477LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
25995cat >conftest.$ac_ext <<_ACEOF 26478cat >conftest.$ac_ext <<_ACEOF
25996/* confdefs.h. */ 26479/* confdefs.h. */
25997_ACEOF 26480_ACEOF
@@ -26032,34 +26515,34 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26032 test ! -s conftest.err 26515 test ! -s conftest.err
26033 } && test -s conftest$ac_exeext && 26516 } && test -s conftest$ac_exeext &&
26034 $as_test_x conftest$ac_exeext; then 26517 $as_test_x conftest$ac_exeext; then
26035 ac_cv_lib_gssapi_gss_init_sec_context=yes 26518 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
26036else 26519else
26037 echo "$as_me: failed program was:" >&5 26520 echo "$as_me: failed program was:" >&5
26038sed 's/^/| /' conftest.$ac_ext >&5 26521sed 's/^/| /' conftest.$ac_ext >&5
26039 26522
26040 ac_cv_lib_gssapi_gss_init_sec_context=no 26523 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
26041fi 26524fi
26042 26525
26043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26044 conftest$ac_exeext conftest.$ac_ext 26527 conftest$ac_exeext conftest.$ac_ext
26045LIBS=$ac_check_lib_save_LIBS 26528LIBS=$ac_check_lib_save_LIBS
26046fi 26529fi
26047{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 26530{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
26048echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } 26531echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
26049if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then 26532if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
26050 cat >>confdefs.h <<\_ACEOF 26533 cat >>confdefs.h <<\_ACEOF
26051#define GSSAPI 1 26534#define GSSAPI 1
26052_ACEOF 26535_ACEOF
26053 26536
26054 K5LIBS="-lgssapi $K5LIBS" 26537 K5LIBS="-lgssapi_krb5 $K5LIBS"
26055else 26538else
26056 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 26539 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
26057echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; } 26540echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
26058if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then 26541if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
26059 echo $ECHO_N "(cached) $ECHO_C" >&6 26542 echo $ECHO_N "(cached) $ECHO_C" >&6
26060else 26543else
26061 ac_check_lib_save_LIBS=$LIBS 26544 ac_check_lib_save_LIBS=$LIBS
26062LIBS="-lgssapi_krb5 $K5LIBS $LIBS" 26545LIBS="-lgssapi $K5LIBS $LIBS"
26063cat >conftest.$ac_ext <<_ACEOF 26546cat >conftest.$ac_ext <<_ACEOF
26064/* confdefs.h. */ 26547/* confdefs.h. */
26065_ACEOF 26548_ACEOF
@@ -26100,26 +26583,26 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26100 test ! -s conftest.err 26583 test ! -s conftest.err
26101 } && test -s conftest$ac_exeext && 26584 } && test -s conftest$ac_exeext &&
26102 $as_test_x conftest$ac_exeext; then 26585 $as_test_x conftest$ac_exeext; then
26103 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes 26586 ac_cv_lib_gssapi_gss_init_sec_context=yes
26104else 26587else
26105 echo "$as_me: failed program was:" >&5 26588 echo "$as_me: failed program was:" >&5
26106sed 's/^/| /' conftest.$ac_ext >&5 26589sed 's/^/| /' conftest.$ac_ext >&5
26107 26590
26108 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no 26591 ac_cv_lib_gssapi_gss_init_sec_context=no
26109fi 26592fi
26110 26593
26111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26112 conftest$ac_exeext conftest.$ac_ext 26595 conftest$ac_exeext conftest.$ac_ext
26113LIBS=$ac_check_lib_save_LIBS 26596LIBS=$ac_check_lib_save_LIBS
26114fi 26597fi
26115{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 26598{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
26116echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } 26599echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
26117if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then 26600if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
26118 cat >>confdefs.h <<\_ACEOF 26601 cat >>confdefs.h <<\_ACEOF
26119#define GSSAPI 1 26602#define GSSAPI 1
26120_ACEOF 26603_ACEOF
26121 26604
26122 K5LIBS="-lgssapi_krb5 $K5LIBS" 26605 K5LIBS="-lgssapi $K5LIBS"
26123else 26606else
26124 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 26607 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
26125echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} 26608echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
@@ -28389,6 +28872,15 @@ fi
28389 28872
28390CFLAGS="$CFLAGS $werror_flags" 28873CFLAGS="$CFLAGS $werror_flags"
28391 28874
28875if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \
28876 test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
28877 TEST_SSH_IPV6=no
28878
28879else
28880 TEST_SSH_IPV6=yes
28881
28882fi
28883
28392 28884
28393ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh" 28885ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh"
28394 28886
@@ -29164,11 +29656,12 @@ MANTYPE!$MANTYPE$ac_delim
29164mansubdir!$mansubdir$ac_delim 29656mansubdir!$mansubdir$ac_delim
29165user_path!$user_path$ac_delim 29657user_path!$user_path$ac_delim
29166piddir!$piddir$ac_delim 29658piddir!$piddir$ac_delim
29659TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
29167LIBOBJS!$LIBOBJS$ac_delim 29660LIBOBJS!$LIBOBJS$ac_delim
29168LTLIBOBJS!$LTLIBOBJS$ac_delim 29661LTLIBOBJS!$LTLIBOBJS$ac_delim
29169_ACEOF 29662_ACEOF
29170 29663
29171 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then 29664 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
29172 break 29665 break
29173 elif $ac_last_try; then 29666 elif $ac_last_try; then
29174 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 29667 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5