summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-05-07 11:47:26 +0100
committerColin Watson <cjwatson@debian.org>2013-05-07 11:47:26 +0100
commit2ea3f720daeb1ca9f765365fce3a9546961fe624 (patch)
treec4fb7d1f51fa51e7677232de806aae150e29e2ac /configure
parentf5efcd3450bbf8261915e0c4a6f851229dddaa79 (diff)
parentecebda56da46a03dafff923d91c382f31faa9eec (diff)
* New upstream release (http://www.openssh.com/txt/release-6.2).
- Add support for multiple required authentication in SSH protocol 2 via an AuthenticationMethods option (closes: #195716). - Fix Sophie Germain formula in moduli(5) (closes: #698612). - Update ssh-copy-id to Phil Hands' greatly revised version (closes: #99785, #322228, #620428; LP: #518883, #835901, #1074798).
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure540
1 files changed, 456 insertions, 84 deletions
diff --git a/configure b/configure
index 2f249c936..4eeed9d09 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
1#! /bin/sh 1#! /bin/sh
2# From configure.ac Revision: 1.496 . 2# From configure.ac Revision: 1.518 .
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.68 for OpenSSH Portable. 4# Generated by GNU Autoconf 2.68 for OpenSSH Portable.
5# 5#
@@ -614,6 +614,8 @@ XAUTH_PATH
614STRIP_OPT 614STRIP_OPT
615xauth_path 615xauth_path
616PRIVSEP_PATH 616PRIVSEP_PATH
617K5LIBS
618GSSLIBS
617KRB5CONF 619KRB5CONF
618SSHDLIBS 620SSHDLIBS
619SSHLIBS 621SSHLIBS
@@ -5589,60 +5591,6 @@ if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5589 have_linux_no_new_privs=1 5591 have_linux_no_new_privs=1
5590fi 5592fi
5591 5593
5592if test "x$have_linux_no_new_privs" = "x1" ; then
5593ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
5594 #include <sys/types.h>
5595 #include <linux/seccomp.h>
5596
5597"
5598if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
5599 have_seccomp_filter=1
5600fi
5601
5602fi
5603if test "x$have_seccomp_filter" = "x1" ; then
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
5605$as_echo_n "checking kernel for seccomp_filter support... " >&6; }
5606if test "$cross_compiling" = yes; then :
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
5608$as_echo "cross-compiling, assuming yes" >&6; }
5609
5610else
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612/* end confdefs.h. */
5613
5614 #include <errno.h>
5615 #include <linux/seccomp.h>
5616 #include <stdlib.h>
5617 #include <sys/prctl.h>
5618
5619int
5620main ()
5621{
5622 errno = 0;
5623 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
5624 exit(errno == EFAULT ? 0 : 1);
5625 ;
5626 return 0;
5627}
5628_ACEOF
5629if ac_fn_c_try_run "$LINENO"; then :
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5631$as_echo "yes" >&6; }
5632else
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635$as_echo "no" >&6; }
5636 # Disable seccomp filter as a target
5637 have_seccomp_filter=0
5638
5639fi
5640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5641 conftest.$ac_objext conftest.beam conftest.$ac_ext
5642fi
5643
5644fi
5645
5646use_stack_protector=1 5594use_stack_protector=1
5647 5595
5648# Check whether --with-stackprotect was given. 5596# Check whether --with-stackprotect was given.
@@ -5998,6 +5946,34 @@ fi
5998 fi 5946 fi
5999fi 5947fi
6000 5948
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
5950$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
5951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h. */
5953
5954#include <stdlib.h>
5955__attribute__((__unused__)) static void foo(void){return;}
5956int
5957main ()
5958{
5959 exit(0);
5960 ;
5961 return 0;
5962}
5963_ACEOF
5964if ac_fn_c_try_compile "$LINENO"; then :
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5966$as_echo "yes" >&6; }
5967else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969$as_echo "no" >&6; }
5970
5971$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
5972
5973
5974fi
5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976
6001if test "x$no_attrib_nonnull" != "x1" ; then 5977if test "x$no_attrib_nonnull" != "x1" ; then
6002 5978
6003$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h 5979$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
@@ -6089,6 +6065,7 @@ for ac_header in \
6089 crypto/sha2.h \ 6065 crypto/sha2.h \
6090 dirent.h \ 6066 dirent.h \
6091 endian.h \ 6067 endian.h \
6068 elf.h \
6092 features.h \ 6069 features.h \
6093 fcntl.h \ 6070 fcntl.h \
6094 floatingpoint.h \ 6071 floatingpoint.h \
@@ -6515,6 +6492,9 @@ $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6515 6492
6516$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h 6493$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6517 6494
6495
6496$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
6497
6518 ;; 6498 ;;
6519*-*-cygwin*) 6499*-*-cygwin*)
6520 check_for_libcrypt_later=1 6500 check_for_libcrypt_later=1
@@ -6779,6 +6759,9 @@ $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6779 6759
6780 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h 6760 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6781 6761
6762
6763$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
6764
6782 maildir="/var/mail" 6765 maildir="/var/mail"
6783 LIBS="$LIBS -lsec" 6766 LIBS="$LIBS -lsec"
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
@@ -7008,22 +6991,32 @@ _ACEOF
7008fi 6991fi
7009done 6992done
7010 6993
7011 have_seccomp_audit_arch=1 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
6995$as_echo_n "checking for seccomp architecture... " >&6; }
6996 seccomp_audit_arch=
7012 case "$host" in 6997 case "$host" in
7013 x86_64-*) 6998 x86_64-*)
7014 6999 seccomp_audit_arch=AUDIT_ARCH_X86_64
7015$as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64" >>confdefs.h
7016
7017 ;; 7000 ;;
7018 i*86-*) 7001 i*86-*)
7019 7002 seccomp_audit_arch=AUDIT_ARCH_I386
7020$as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386" >>confdefs.h
7021
7022 ;;
7023 *)
7024 have_seccomp_audit_arch=0
7025 ;; 7003 ;;
7004 arm*-*)
7005 seccomp_audit_arch=AUDIT_ARCH_ARM
7006 ;;
7026 esac 7007 esac
7008 if test "x$seccomp_audit_arch" != "x" ; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
7010$as_echo "\"$seccomp_audit_arch\"" >&6; }
7011
7012cat >>confdefs.h <<_ACEOF
7013#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
7014_ACEOF
7015
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
7018$as_echo "architecture not supported" >&6; }
7019 fi
7027 ;; 7020 ;;
7028mips-sony-bsd|mips-sony-newsos4) 7021mips-sony-bsd|mips-sony-newsos4)
7029 7022
@@ -7074,6 +7067,9 @@ fi
7074 7067
7075$as_echo "#define BROKEN_GLOB 1" >>confdefs.h 7068$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7076 7069
7070
7071$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7072
7077 ;; 7073 ;;
7078*-*-bsdi*) 7074*-*-bsdi*)
7079 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7075 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
@@ -7558,6 +7554,7 @@ done
7558 7554
7559 MANTYPE=man 7555 MANTYPE=man
7560 TEST_SHELL=ksh 7556 TEST_SHELL=ksh
7557 SKIP_DISABLE_LASTLOG_DEFINE=yes
7561 ;; 7558 ;;
7562*-*-unicosmk*) 7559*-*-unicosmk*)
7563 7560
@@ -8389,12 +8386,13 @@ fi
8389done 8386done
8390 8387
8391 8388
8392for ac_header in libutil.h 8389for ac_header in bsd/libutil.h libutil.h
8393do : 8390do :
8394 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" 8391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8395if test "x$ac_cv_header_libutil_h" = xyes; then : 8392ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8393if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8396 cat >>confdefs.h <<_ACEOF 8394 cat >>confdefs.h <<_ACEOF
8397#define HAVE_LIBUTIL_H 1 8395#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8398_ACEOF 8396_ACEOF
8399 8397
8400fi 8398fi
@@ -9584,6 +9582,8 @@ for ac_func in \
9584 getopt \ 9582 getopt \
9585 getpeereid \ 9583 getpeereid \
9586 getpeerucred \ 9584 getpeerucred \
9585 getpgid \
9586 getpgrp \
9587 _getpty \ 9587 _getpty \
9588 getrlimit \ 9588 getrlimit \
9589 getttyent \ 9589 getttyent \
@@ -9643,6 +9643,7 @@ for ac_func in \
9643 strtonum \ 9643 strtonum \
9644 strtoll \ 9644 strtoll \
9645 strtoul \ 9645 strtoul \
9646 strtoull \
9646 swap32 \ 9647 swap32 \
9647 sysconf \ 9648 sysconf \
9648 tcgetpgrp \ 9649 tcgetpgrp \
@@ -9651,6 +9652,7 @@ for ac_func in \
9651 unsetenv \ 9652 unsetenv \
9652 updwtmpx \ 9653 updwtmpx \
9653 user_from_uid \ 9654 user_from_uid \
9655 usleep \
9654 vasprintf \ 9656 vasprintf \
9655 vhangup \ 9657 vhangup \
9656 vsnprintf \ 9658 vsnprintf \
@@ -11258,6 +11260,147 @@ fi
11258rm -f core conftest.err conftest.$ac_objext \ 11260rm -f core conftest.err conftest.$ac_objext \
11259 conftest$ac_exeext conftest.$ac_ext 11261 conftest$ac_exeext conftest.$ac_ext
11260 11262
11263# Check for OpenSSL with EVP_aes_*ctr
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
11265$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
11266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267/* end confdefs.h. */
11268
11269#include <string.h>
11270#include <openssl/evp.h>
11271
11272int
11273main ()
11274{
11275
11276 exit(EVP_aes_128_ctr() == NULL ||
11277 EVP_aes_192_cbc() == NULL ||
11278 EVP_aes_256_cbc() == NULL);
11279
11280 ;
11281 return 0;
11282}
11283_ACEOF
11284if ac_fn_c_try_link "$LINENO"; then :
11285
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11287$as_echo "yes" >&6; }
11288
11289$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
11290
11291
11292else
11293
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295$as_echo "no" >&6; }
11296
11297
11298fi
11299rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
11301
11302# Check for OpenSSL with EVP_aes_*gcm
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
11304$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
11305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306/* end confdefs.h. */
11307
11308#include <string.h>
11309#include <openssl/evp.h>
11310
11311int
11312main ()
11313{
11314
11315 exit(EVP_aes_128_gcm() == NULL ||
11316 EVP_aes_256_gcm() == NULL ||
11317 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
11318 EVP_CTRL_GCM_IV_GEN == 0 ||
11319 EVP_CTRL_GCM_SET_TAG == 0 ||
11320 EVP_CTRL_GCM_GET_TAG == 0 ||
11321 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
11322
11323 ;
11324 return 0;
11325}
11326_ACEOF
11327if ac_fn_c_try_link "$LINENO"; then :
11328
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11330$as_echo "yes" >&6; }
11331
11332$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
11333
11334
11335else
11336
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338$as_echo "no" >&6; }
11339
11340
11341fi
11342rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
11346$as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; }
11347if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
11348 $as_echo_n "(cached) " >&6
11349else
11350 ac_func_search_save_LIBS=$LIBS
11351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352/* end confdefs.h. */
11353
11354/* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
11357#ifdef __cplusplus
11358extern "C"
11359#endif
11360char EVP_CIPHER_CTX_ctrl ();
11361int
11362main ()
11363{
11364return EVP_CIPHER_CTX_ctrl ();
11365 ;
11366 return 0;
11367}
11368_ACEOF
11369for ac_lib in '' crypto; do
11370 if test -z "$ac_lib"; then
11371 ac_res="none required"
11372 else
11373 ac_res=-l$ac_lib
11374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11375 fi
11376 if ac_fn_c_try_link "$LINENO"; then :
11377 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
11378fi
11379rm -f core conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext
11381 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
11382 break
11383fi
11384done
11385if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
11386
11387else
11388 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
11389fi
11390rm conftest.$ac_ext
11391LIBS=$ac_func_search_save_LIBS
11392fi
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
11394$as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
11395ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
11396if test "$ac_res" != no; then :
11397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11398
11399$as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h
11400
11401fi
11402
11403
11261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 11404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
11262$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } 11405$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
11263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -11887,6 +12030,57 @@ _ACEOF
11887 12030
11888 12031
11889 12032
12033if test "x$have_linux_no_new_privs" = "x1" ; then
12034ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
12035 #include <sys/types.h>
12036 #include <linux/seccomp.h>
12037
12038"
12039if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
12040 have_seccomp_filter=1
12041fi
12042
12043fi
12044if test "x$have_seccomp_filter" = "x1" ; then
12045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
12046$as_echo_n "checking kernel for seccomp_filter support... " >&6; }
12047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048/* end confdefs.h. */
12049
12050 #include <errno.h>
12051 #include <elf.h>
12052 #include <linux/audit.h>
12053 #include <linux/seccomp.h>
12054 #include <stdlib.h>
12055 #include <sys/prctl.h>
12056
12057int
12058main ()
12059{
12060 int i = $seccomp_audit_arch;
12061 errno = 0;
12062 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
12063 exit(errno == EFAULT ? 0 : 1);
12064 ;
12065 return 0;
12066}
12067_ACEOF
12068if ac_fn_c_try_link "$LINENO"; then :
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12070$as_echo "yes" >&6; }
12071else
12072
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074$as_echo "no" >&6; }
12075 # Disable seccomp filter as a target
12076 have_seccomp_filter=0
12077
12078
12079fi
12080rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12082fi
12083
11890# Decide which sandbox style to use 12084# Decide which sandbox style to use
11891sandbox_arg="" 12085sandbox_arg=""
11892 12086
@@ -11935,6 +12129,7 @@ main ()
11935 struct rlimit rl_zero; 12129 struct rlimit rl_zero;
11936 int fd, r; 12130 int fd, r;
11937 fd_set fds; 12131 fd_set fds;
12132 struct timeval tv;
11938 12133
11939 fd = open("/dev/null", O_RDONLY); 12134 fd = open("/dev/null", O_RDONLY);
11940 FD_ZERO(&fds); 12135 FD_ZERO(&fds);
@@ -11942,7 +12137,9 @@ main ()
11942 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 12137 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
11943 setrlimit(RLIMIT_FSIZE, &rl_zero); 12138 setrlimit(RLIMIT_FSIZE, &rl_zero);
11944 setrlimit(RLIMIT_NOFILE, &rl_zero); 12139 setrlimit(RLIMIT_NOFILE, &rl_zero);
11945 r = select(fd+1, &fds, NULL, NULL, NULL); 12140 tv.tv_sec = 1;
12141 tv.tv_usec = 0;
12142 r = select(fd+1, &fds, NULL, NULL, &tv);
11946 exit (r == -1 ? 1 : 0); 12143 exit (r == -1 ? 1 : 0);
11947 12144
11948 ; 12145 ;
@@ -11963,6 +12160,54 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11963fi 12160fi
11964 12161
11965 12162
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
12164$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
12165if test "$cross_compiling" = yes; then :
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
12167$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12168
12169else
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171/* end confdefs.h. */
12172
12173#include <sys/types.h>
12174#ifdef HAVE_SYS_TIME_H
12175# include <sys/time.h>
12176#endif
12177#include <sys/resource.h>
12178#include <errno.h>
12179#include <stdlib.h>
12180
12181int
12182main ()
12183{
12184
12185 struct rlimit rl_zero;
12186 int fd, r;
12187 fd_set fds;
12188
12189 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
12190 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
12191 exit (r == -1 ? 1 : 0);
12192
12193 ;
12194 return 0;
12195}
12196_ACEOF
12197if ac_fn_c_try_run "$LINENO"; then :
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12199$as_echo "yes" >&6; }
12200 rlimit_nofile_zero_works=yes
12201else
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
12204 rlimit_nofile_zero_works=no
12205fi
12206rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12207 conftest.$ac_objext conftest.beam conftest.$ac_ext
12208fi
12209
12210
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 12211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
11967$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } 12212$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
11968if test "$cross_compiling" = yes; then : 12213if test "$cross_compiling" = yes; then :
@@ -12026,11 +12271,13 @@ $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
12026elif test "x$sandbox_arg" = "xseccomp_filter" || \ 12271elif test "x$sandbox_arg" = "xseccomp_filter" || \
12027 ( test -z "$sandbox_arg" && \ 12272 ( test -z "$sandbox_arg" && \
12028 test "x$have_seccomp_filter" = "x1" && \ 12273 test "x$have_seccomp_filter" = "x1" && \
12274 test "x$ac_cv_header_elf_h" = "xyes" && \
12029 test "x$ac_cv_header_linux_audit_h" = "xyes" && \ 12275 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
12030 test "x$have_seccomp_audit_arch" = "x1" && \ 12276 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
12277 test "x$seccomp_audit_arch" != "x" && \
12031 test "x$have_linux_no_new_privs" = "x1" && \ 12278 test "x$have_linux_no_new_privs" = "x1" && \
12032 test "x$ac_cv_func_prctl" = "xyes" ) ; then 12279 test "x$ac_cv_func_prctl" = "xyes" ) ; then
12033 test "x$have_seccomp_audit_arch" != "x1" && \ 12280 test "x$seccomp_audit_arch" = "x" && \
12034 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 12281 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
12035 test "x$have_linux_no_new_privs" != "x1" && \ 12282 test "x$have_linux_no_new_privs" != "x1" && \
12036 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 12283 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
@@ -12044,7 +12291,8 @@ $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
12044 12291
12045elif test "x$sandbox_arg" = "xrlimit" || \ 12292elif test "x$sandbox_arg" = "xrlimit" || \
12046 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ 12293 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
12047 test "x$select_works_with_rlimit" == "xyes" ) ; then 12294 test "x$select_works_with_rlimit" = "xyes" && \
12295 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
12048 test "x$ac_cv_func_setrlimit" != "xyes" && \ 12296 test "x$ac_cv_func_setrlimit" != "xyes" && \
12049 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 12297 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
12050 test "x$select_works_with_rlimit" != "xyes" && \ 12298 test "x$select_works_with_rlimit" != "xyes" && \
@@ -15229,6 +15477,9 @@ fi
15229 15477
15230 15478
15231 if test -x $KRB5CONF ; then 15479 if test -x $KRB5CONF ; then
15480 K5CFLAGS="`$KRB5CONF --cflags`"
15481 K5LIBS="`$KRB5CONF --libs`"
15482 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15232 15483
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
15234$as_echo_n "checking for gssapi support... " >&6; } 15485$as_echo_n "checking for gssapi support... " >&6; }
@@ -15238,15 +15489,13 @@ $as_echo "yes" >&6; }
15238 15489
15239$as_echo "#define GSSAPI 1" >>confdefs.h 15490$as_echo "#define GSSAPI 1" >>confdefs.h
15240 15491
15241 k5confopts=gssapi 15492 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
15493 GSSLIBS="`$KRB5CONF --libs gssapi`"
15494 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
15242 else 15495 else
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15244$as_echo "no" >&6; } 15497$as_echo "no" >&6; }
15245 k5confopts=""
15246 fi 15498 fi
15247 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
15248 K5LIBS="`$KRB5CONF --libs $k5confopts`"
15249 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15251$as_echo_n "checking whether we are using Heimdal... " >&6; } 15500$as_echo_n "checking whether we are using Heimdal... " >&6; }
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -15449,7 +15698,7 @@ if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
15449 $as_echo_n "(cached) " >&6 15698 $as_echo_n "(cached) " >&6
15450else 15699else
15451 ac_check_lib_save_LIBS=$LIBS 15700 ac_check_lib_save_LIBS=$LIBS
15452LIBS="-lgssapi_krb5 $K5LIBS $LIBS" 15701LIBS="-lgssapi_krb5 $LIBS"
15453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454/* end confdefs.h. */ 15703/* end confdefs.h. */
15455 15704
@@ -15482,7 +15731,7 @@ $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
15482if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : 15731if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
15483 $as_echo "#define GSSAPI 1" >>confdefs.h 15732 $as_echo "#define GSSAPI 1" >>confdefs.h
15484 15733
15485 K5LIBS="-lgssapi_krb5 $K5LIBS" 15734 GSSLIBS="-lgssapi_krb5"
15486else 15735else
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
15488$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } 15737$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
@@ -15490,7 +15739,7 @@ if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
15490 $as_echo_n "(cached) " >&6 15739 $as_echo_n "(cached) " >&6
15491else 15740else
15492 ac_check_lib_save_LIBS=$LIBS 15741 ac_check_lib_save_LIBS=$LIBS
15493LIBS="-lgssapi $K5LIBS $LIBS" 15742LIBS="-lgssapi $LIBS"
15494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495/* end confdefs.h. */ 15744/* end confdefs.h. */
15496 15745
@@ -15523,7 +15772,48 @@ $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
15523if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : 15772if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
15524 $as_echo "#define GSSAPI 1" >>confdefs.h 15773 $as_echo "#define GSSAPI 1" >>confdefs.h
15525 15774
15526 K5LIBS="-lgssapi $K5LIBS" 15775 GSSLIBS="-lgssapi"
15776else
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
15778$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
15779if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
15780 $as_echo_n "(cached) " >&6
15781else
15782 ac_check_lib_save_LIBS=$LIBS
15783LIBS="-lgss $LIBS"
15784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785/* end confdefs.h. */
15786
15787/* Override any GCC internal prototype to avoid an error.
15788 Use char because int might match the return type of a GCC
15789 builtin and then its argument prototype would still apply. */
15790#ifdef __cplusplus
15791extern "C"
15792#endif
15793char gss_init_sec_context ();
15794int
15795main ()
15796{
15797return gss_init_sec_context ();
15798 ;
15799 return 0;
15800}
15801_ACEOF
15802if ac_fn_c_try_link "$LINENO"; then :
15803 ac_cv_lib_gss_gss_init_sec_context=yes
15804else
15805 ac_cv_lib_gss_gss_init_sec_context=no
15806fi
15807rm -f core conftest.err conftest.$ac_objext \
15808 conftest$ac_exeext conftest.$ac_ext
15809LIBS=$ac_check_lib_save_LIBS
15810fi
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
15812$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
15813if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
15814 $as_echo "#define GSSAPI 1" >>confdefs.h
15815
15816 GSSLIBS="-lgss"
15527else 15817else
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 15818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
15529$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} 15819$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
@@ -15533,6 +15823,9 @@ fi
15533fi 15823fi
15534 15824
15535 15825
15826fi
15827
15828
15536 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 15829 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
15537if test "x$ac_cv_header_gssapi_h" = xyes; then : 15830if test "x$ac_cv_header_gssapi_h" = xyes; then :
15538 15831
@@ -15620,7 +15913,6 @@ fi
15620done 15913done
15621 15914
15622 15915
15623 LIBS="$LIBS $K5LIBS"
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
15625$as_echo_n "checking for library containing k_hasafs... " >&6; } 15917$as_echo_n "checking for library containing k_hasafs... " >&6; }
15626if ${ac_cv_search_k_hasafs+:} false; then : 15918if ${ac_cv_search_k_hasafs+:} false; then :
@@ -15679,12 +15971,39 @@ $as_echo "#define USE_AFS 1" >>confdefs.h
15679 15971
15680fi 15972fi
15681 15973
15974
15975 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
15976#ifdef HAVE_GSSAPI_H
15977# include <gssapi.h>
15978#elif defined(HAVE_GSSAPI_GSSAPI_H)
15979# include <gssapi/gssapi.h>
15980#endif
15981
15982#ifdef HAVE_GSSAPI_GENERIC_H
15983# include <gssapi_generic.h>
15984#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
15985# include <gssapi/gssapi_generic.h>
15986#endif
15987
15988"
15989if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
15990 ac_have_decl=1
15991else
15992 ac_have_decl=0
15993fi
15994
15995cat >>confdefs.h <<_ACEOF
15996#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
15997_ACEOF
15998
15682 fi 15999 fi
15683 16000
15684 16001
15685fi 16002fi
15686 16003
15687 16004
16005
16006
15688# Check whether user wants ConsoleKit support 16007# Check whether user wants ConsoleKit support
15689CONSOLEKIT_MSG="no" 16008CONSOLEKIT_MSG="no"
15690LIBCK_CONNECTOR="" 16009LIBCK_CONNECTOR=""
@@ -16868,7 +17187,6 @@ _ACEOF
16868 17187
16869fi 17188fi
16870 17189
16871
16872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 17190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
16873$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } 17191$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -16921,6 +17239,60 @@ if test ! -z "$blibpath" ; then
16921$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} 17239$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16922fi 17240fi
16923 17241
17242ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
17243#ifdef HAVE_SYS_TYPES_H
17244#include <sys/types.h>
17245#endif
17246#ifdef HAVE_UTMP_H
17247#include <utmp.h>
17248#endif
17249#ifdef HAVE_UTMPX_H
17250#include <utmpx.h>
17251#endif
17252#ifdef HAVE_LASTLOG_H
17253#include <lastlog.h>
17254#endif
17255
17256"
17257if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
17258
17259else
17260
17261 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
17262 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
17263
17264 fi
17265
17266fi
17267
17268
17269ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
17270#ifdef HAVE_SYS_TYPES_H
17271#include <sys/types.h>
17272#endif
17273#ifdef HAVE_UTMP_H
17274#include <utmp.h>
17275#endif
17276#ifdef HAVE_UTMPX_H
17277#include <utmpx.h>
17278#endif
17279#ifdef HAVE_LASTLOG_H
17280#include <lastlog.h>
17281#endif
17282
17283"
17284if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
17285
17286else
17287
17288 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
17289
17290 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
17291
17292
17293fi
17294
17295
16924CFLAGS="$CFLAGS $werror_flags" 17296CFLAGS="$CFLAGS $werror_flags"
16925 17297
16926if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then 17298if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then