summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-05-07 10:06:42 +0100
committerColin Watson <cjwatson@debian.org>2013-05-07 10:06:42 +0100
commitecebda56da46a03dafff923d91c382f31faa9eec (patch)
tree449614b6c06a2622c74a609b31fcc46c60037c56 /configure
parentc6a2c0334e45419875687d250aed9bea78480f2e (diff)
parentffc06452028ba78cd693d4ed43df8b60a10d6163 (diff)
merge 6.2p1; reorder additions to monitor.h for easier merging in future
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure540
1 files changed, 456 insertions, 84 deletions
diff --git a/configure b/configure
index 5e473371d..c4d1ed0d2 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
@@ -5587,60 +5589,6 @@ if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5587 have_linux_no_new_privs=1 5589 have_linux_no_new_privs=1
5588fi 5590fi
5589 5591
5590if test "x$have_linux_no_new_privs" = "x1" ; then
5591ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
5592 #include <sys/types.h>
5593 #include <linux/seccomp.h>
5594
5595"
5596if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
5597 have_seccomp_filter=1
5598fi
5599
5600fi
5601if test "x$have_seccomp_filter" = "x1" ; then
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
5603$as_echo_n "checking kernel for seccomp_filter support... " >&6; }
5604if test "$cross_compiling" = yes; then :
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
5606$as_echo "cross-compiling, assuming yes" >&6; }
5607
5608else
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h. */
5611
5612 #include <errno.h>
5613 #include <linux/seccomp.h>
5614 #include <stdlib.h>
5615 #include <sys/prctl.h>
5616
5617int
5618main ()
5619{
5620 errno = 0;
5621 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
5622 exit(errno == EFAULT ? 0 : 1);
5623 ;
5624 return 0;
5625}
5626_ACEOF
5627if ac_fn_c_try_run "$LINENO"; then :
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5629$as_echo "yes" >&6; }
5630else
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634 # Disable seccomp filter as a target
5635 have_seccomp_filter=0
5636
5637fi
5638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5639 conftest.$ac_objext conftest.beam conftest.$ac_ext
5640fi
5641
5642fi
5643
5644use_stack_protector=1 5592use_stack_protector=1
5645 5593
5646# Check whether --with-stackprotect was given. 5594# Check whether --with-stackprotect was given.
@@ -5996,6 +5944,34 @@ fi
5996 fi 5944 fi
5997fi 5945fi
5998 5946
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
5948$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
5949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h. */
5951
5952#include <stdlib.h>
5953__attribute__((__unused__)) static void foo(void){return;}
5954int
5955main ()
5956{
5957 exit(0);
5958 ;
5959 return 0;
5960}
5961_ACEOF
5962if ac_fn_c_try_compile "$LINENO"; then :
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5964$as_echo "yes" >&6; }
5965else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967$as_echo "no" >&6; }
5968
5969$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
5970
5971
5972fi
5973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974
5999if test "x$no_attrib_nonnull" != "x1" ; then 5975if test "x$no_attrib_nonnull" != "x1" ; then
6000 5976
6001$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h 5977$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
@@ -6087,6 +6063,7 @@ for ac_header in \
6087 crypto/sha2.h \ 6063 crypto/sha2.h \
6088 dirent.h \ 6064 dirent.h \
6089 endian.h \ 6065 endian.h \
6066 elf.h \
6090 features.h \ 6067 features.h \
6091 fcntl.h \ 6068 fcntl.h \
6092 floatingpoint.h \ 6069 floatingpoint.h \
@@ -6513,6 +6490,9 @@ $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6513 6490
6514$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h 6491$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6515 6492
6493
6494$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
6495
6516 ;; 6496 ;;
6517*-*-cygwin*) 6497*-*-cygwin*)
6518 check_for_libcrypt_later=1 6498 check_for_libcrypt_later=1
@@ -6777,6 +6757,9 @@ $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6777 6757
6778 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h 6758 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6779 6759
6760
6761$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
6762
6780 maildir="/var/mail" 6763 maildir="/var/mail"
6781 LIBS="$LIBS -lsec" 6764 LIBS="$LIBS -lsec"
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
@@ -7006,22 +6989,32 @@ _ACEOF
7006fi 6989fi
7007done 6990done
7008 6991
7009 have_seccomp_audit_arch=1 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
6993$as_echo_n "checking for seccomp architecture... " >&6; }
6994 seccomp_audit_arch=
7010 case "$host" in 6995 case "$host" in
7011 x86_64-*) 6996 x86_64-*)
7012 6997 seccomp_audit_arch=AUDIT_ARCH_X86_64
7013$as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64" >>confdefs.h
7014
7015 ;; 6998 ;;
7016 i*86-*) 6999 i*86-*)
7017 7000 seccomp_audit_arch=AUDIT_ARCH_I386
7018$as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386" >>confdefs.h
7019
7020 ;;
7021 *)
7022 have_seccomp_audit_arch=0
7023 ;; 7001 ;;
7002 arm*-*)
7003 seccomp_audit_arch=AUDIT_ARCH_ARM
7004 ;;
7024 esac 7005 esac
7006 if test "x$seccomp_audit_arch" != "x" ; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
7008$as_echo "\"$seccomp_audit_arch\"" >&6; }
7009
7010cat >>confdefs.h <<_ACEOF
7011#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
7012_ACEOF
7013
7014 else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
7016$as_echo "architecture not supported" >&6; }
7017 fi
7025 ;; 7018 ;;
7026mips-sony-bsd|mips-sony-newsos4) 7019mips-sony-bsd|mips-sony-newsos4)
7027 7020
@@ -7072,6 +7065,9 @@ fi
7072 7065
7073$as_echo "#define BROKEN_GLOB 1" >>confdefs.h 7066$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7074 7067
7068
7069$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7070
7075 ;; 7071 ;;
7076*-*-bsdi*) 7072*-*-bsdi*)
7077 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7073 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
@@ -7556,6 +7552,7 @@ done
7556 7552
7557 MANTYPE=man 7553 MANTYPE=man
7558 TEST_SHELL=ksh 7554 TEST_SHELL=ksh
7555 SKIP_DISABLE_LASTLOG_DEFINE=yes
7559 ;; 7556 ;;
7560*-*-unicosmk*) 7557*-*-unicosmk*)
7561 7558
@@ -8387,12 +8384,13 @@ fi
8387done 8384done
8388 8385
8389 8386
8390for ac_header in libutil.h 8387for ac_header in bsd/libutil.h libutil.h
8391do : 8388do :
8392 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" 8389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8393if test "x$ac_cv_header_libutil_h" = xyes; then : 8390ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8391if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8394 cat >>confdefs.h <<_ACEOF 8392 cat >>confdefs.h <<_ACEOF
8395#define HAVE_LIBUTIL_H 1 8393#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8396_ACEOF 8394_ACEOF
8397 8395
8398fi 8396fi
@@ -9582,6 +9580,8 @@ for ac_func in \
9582 getopt \ 9580 getopt \
9583 getpeereid \ 9581 getpeereid \
9584 getpeerucred \ 9582 getpeerucred \
9583 getpgid \
9584 getpgrp \
9585 _getpty \ 9585 _getpty \
9586 getrlimit \ 9586 getrlimit \
9587 getttyent \ 9587 getttyent \
@@ -9641,6 +9641,7 @@ for ac_func in \
9641 strtonum \ 9641 strtonum \
9642 strtoll \ 9642 strtoll \
9643 strtoul \ 9643 strtoul \
9644 strtoull \
9644 swap32 \ 9645 swap32 \
9645 sysconf \ 9646 sysconf \
9646 tcgetpgrp \ 9647 tcgetpgrp \
@@ -9649,6 +9650,7 @@ for ac_func in \
9649 unsetenv \ 9650 unsetenv \
9650 updwtmpx \ 9651 updwtmpx \
9651 user_from_uid \ 9652 user_from_uid \
9653 usleep \
9652 vasprintf \ 9654 vasprintf \
9653 vhangup \ 9655 vhangup \
9654 vsnprintf \ 9656 vsnprintf \
@@ -11256,6 +11258,147 @@ fi
11256rm -f core conftest.err conftest.$ac_objext \ 11258rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext 11259 conftest$ac_exeext conftest.$ac_ext
11258 11260
11261# Check for OpenSSL with EVP_aes_*ctr
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
11263$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
11264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265/* end confdefs.h. */
11266
11267#include <string.h>
11268#include <openssl/evp.h>
11269
11270int
11271main ()
11272{
11273
11274 exit(EVP_aes_128_ctr() == NULL ||
11275 EVP_aes_192_cbc() == NULL ||
11276 EVP_aes_256_cbc() == NULL);
11277
11278 ;
11279 return 0;
11280}
11281_ACEOF
11282if ac_fn_c_try_link "$LINENO"; then :
11283
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11285$as_echo "yes" >&6; }
11286
11287$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
11288
11289
11290else
11291
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293$as_echo "no" >&6; }
11294
11295
11296fi
11297rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11299
11300# Check for OpenSSL with EVP_aes_*gcm
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
11302$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
11303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304/* end confdefs.h. */
11305
11306#include <string.h>
11307#include <openssl/evp.h>
11308
11309int
11310main ()
11311{
11312
11313 exit(EVP_aes_128_gcm() == NULL ||
11314 EVP_aes_256_gcm() == NULL ||
11315 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
11316 EVP_CTRL_GCM_IV_GEN == 0 ||
11317 EVP_CTRL_GCM_SET_TAG == 0 ||
11318 EVP_CTRL_GCM_GET_TAG == 0 ||
11319 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
11320
11321 ;
11322 return 0;
11323}
11324_ACEOF
11325if ac_fn_c_try_link "$LINENO"; then :
11326
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11328$as_echo "yes" >&6; }
11329
11330$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
11331
11332
11333else
11334
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336$as_echo "no" >&6; }
11337
11338
11339fi
11340rm -f core conftest.err conftest.$ac_objext \
11341 conftest$ac_exeext conftest.$ac_ext
11342
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
11344$as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; }
11345if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
11346 $as_echo_n "(cached) " >&6
11347else
11348 ac_func_search_save_LIBS=$LIBS
11349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350/* end confdefs.h. */
11351
11352/* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11355#ifdef __cplusplus
11356extern "C"
11357#endif
11358char EVP_CIPHER_CTX_ctrl ();
11359int
11360main ()
11361{
11362return EVP_CIPHER_CTX_ctrl ();
11363 ;
11364 return 0;
11365}
11366_ACEOF
11367for ac_lib in '' crypto; do
11368 if test -z "$ac_lib"; then
11369 ac_res="none required"
11370 else
11371 ac_res=-l$ac_lib
11372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11373 fi
11374 if ac_fn_c_try_link "$LINENO"; then :
11375 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
11376fi
11377rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext
11379 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
11380 break
11381fi
11382done
11383if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
11384
11385else
11386 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
11387fi
11388rm conftest.$ac_ext
11389LIBS=$ac_func_search_save_LIBS
11390fi
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
11392$as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
11393ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
11394if test "$ac_res" != no; then :
11395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11396
11397$as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h
11398
11399fi
11400
11401
11259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
11260$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } 11403$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
11261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -11885,6 +12028,57 @@ _ACEOF
11885 12028
11886 12029
11887 12030
12031if test "x$have_linux_no_new_privs" = "x1" ; then
12032ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
12033 #include <sys/types.h>
12034 #include <linux/seccomp.h>
12035
12036"
12037if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
12038 have_seccomp_filter=1
12039fi
12040
12041fi
12042if test "x$have_seccomp_filter" = "x1" ; then
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
12044$as_echo_n "checking kernel for seccomp_filter support... " >&6; }
12045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h. */
12047
12048 #include <errno.h>
12049 #include <elf.h>
12050 #include <linux/audit.h>
12051 #include <linux/seccomp.h>
12052 #include <stdlib.h>
12053 #include <sys/prctl.h>
12054
12055int
12056main ()
12057{
12058 int i = $seccomp_audit_arch;
12059 errno = 0;
12060 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
12061 exit(errno == EFAULT ? 0 : 1);
12062 ;
12063 return 0;
12064}
12065_ACEOF
12066if ac_fn_c_try_link "$LINENO"; then :
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12068$as_echo "yes" >&6; }
12069else
12070
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072$as_echo "no" >&6; }
12073 # Disable seccomp filter as a target
12074 have_seccomp_filter=0
12075
12076
12077fi
12078rm -f core conftest.err conftest.$ac_objext \
12079 conftest$ac_exeext conftest.$ac_ext
12080fi
12081
11888# Decide which sandbox style to use 12082# Decide which sandbox style to use
11889sandbox_arg="" 12083sandbox_arg=""
11890 12084
@@ -11933,6 +12127,7 @@ main ()
11933 struct rlimit rl_zero; 12127 struct rlimit rl_zero;
11934 int fd, r; 12128 int fd, r;
11935 fd_set fds; 12129 fd_set fds;
12130 struct timeval tv;
11936 12131
11937 fd = open("/dev/null", O_RDONLY); 12132 fd = open("/dev/null", O_RDONLY);
11938 FD_ZERO(&fds); 12133 FD_ZERO(&fds);
@@ -11940,7 +12135,9 @@ main ()
11940 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 12135 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
11941 setrlimit(RLIMIT_FSIZE, &rl_zero); 12136 setrlimit(RLIMIT_FSIZE, &rl_zero);
11942 setrlimit(RLIMIT_NOFILE, &rl_zero); 12137 setrlimit(RLIMIT_NOFILE, &rl_zero);
11943 r = select(fd+1, &fds, NULL, NULL, NULL); 12138 tv.tv_sec = 1;
12139 tv.tv_usec = 0;
12140 r = select(fd+1, &fds, NULL, NULL, &tv);
11944 exit (r == -1 ? 1 : 0); 12141 exit (r == -1 ? 1 : 0);
11945 12142
11946 ; 12143 ;
@@ -11961,6 +12158,54 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11961fi 12158fi
11962 12159
11963 12160
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
12162$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
12163if test "$cross_compiling" = yes; then :
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
12165$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12166
12167else
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169/* end confdefs.h. */
12170
12171#include <sys/types.h>
12172#ifdef HAVE_SYS_TIME_H
12173# include <sys/time.h>
12174#endif
12175#include <sys/resource.h>
12176#include <errno.h>
12177#include <stdlib.h>
12178
12179int
12180main ()
12181{
12182
12183 struct rlimit rl_zero;
12184 int fd, r;
12185 fd_set fds;
12186
12187 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
12188 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
12189 exit (r == -1 ? 1 : 0);
12190
12191 ;
12192 return 0;
12193}
12194_ACEOF
12195if ac_fn_c_try_run "$LINENO"; then :
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12197$as_echo "yes" >&6; }
12198 rlimit_nofile_zero_works=yes
12199else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201$as_echo "no" >&6; }
12202 rlimit_nofile_zero_works=no
12203fi
12204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12205 conftest.$ac_objext conftest.beam conftest.$ac_ext
12206fi
12207
12208
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 12209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
11965$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } 12210$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
11966if test "$cross_compiling" = yes; then : 12211if test "$cross_compiling" = yes; then :
@@ -12024,11 +12269,13 @@ $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
12024elif test "x$sandbox_arg" = "xseccomp_filter" || \ 12269elif test "x$sandbox_arg" = "xseccomp_filter" || \
12025 ( test -z "$sandbox_arg" && \ 12270 ( test -z "$sandbox_arg" && \
12026 test "x$have_seccomp_filter" = "x1" && \ 12271 test "x$have_seccomp_filter" = "x1" && \
12272 test "x$ac_cv_header_elf_h" = "xyes" && \
12027 test "x$ac_cv_header_linux_audit_h" = "xyes" && \ 12273 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
12028 test "x$have_seccomp_audit_arch" = "x1" && \ 12274 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
12275 test "x$seccomp_audit_arch" != "x" && \
12029 test "x$have_linux_no_new_privs" = "x1" && \ 12276 test "x$have_linux_no_new_privs" = "x1" && \
12030 test "x$ac_cv_func_prctl" = "xyes" ) ; then 12277 test "x$ac_cv_func_prctl" = "xyes" ) ; then
12031 test "x$have_seccomp_audit_arch" != "x1" && \ 12278 test "x$seccomp_audit_arch" = "x" && \
12032 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 12279 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
12033 test "x$have_linux_no_new_privs" != "x1" && \ 12280 test "x$have_linux_no_new_privs" != "x1" && \
12034 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 12281 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
@@ -12042,7 +12289,8 @@ $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
12042 12289
12043elif test "x$sandbox_arg" = "xrlimit" || \ 12290elif test "x$sandbox_arg" = "xrlimit" || \
12044 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ 12291 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
12045 test "x$select_works_with_rlimit" == "xyes" ) ; then 12292 test "x$select_works_with_rlimit" = "xyes" && \
12293 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
12046 test "x$ac_cv_func_setrlimit" != "xyes" && \ 12294 test "x$ac_cv_func_setrlimit" != "xyes" && \
12047 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 12295 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
12048 test "x$select_works_with_rlimit" != "xyes" && \ 12296 test "x$select_works_with_rlimit" != "xyes" && \
@@ -15227,6 +15475,9 @@ fi
15227 15475
15228 15476
15229 if test -x $KRB5CONF ; then 15477 if test -x $KRB5CONF ; then
15478 K5CFLAGS="`$KRB5CONF --cflags`"
15479 K5LIBS="`$KRB5CONF --libs`"
15480 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15230 15481
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
15232$as_echo_n "checking for gssapi support... " >&6; } 15483$as_echo_n "checking for gssapi support... " >&6; }
@@ -15236,15 +15487,13 @@ $as_echo "yes" >&6; }
15236 15487
15237$as_echo "#define GSSAPI 1" >>confdefs.h 15488$as_echo "#define GSSAPI 1" >>confdefs.h
15238 15489
15239 k5confopts=gssapi 15490 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
15491 GSSLIBS="`$KRB5CONF --libs gssapi`"
15492 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
15240 else 15493 else
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242$as_echo "no" >&6; } 15495$as_echo "no" >&6; }
15243 k5confopts=""
15244 fi 15496 fi
15245 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
15246 K5LIBS="`$KRB5CONF --libs $k5confopts`"
15247 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15249$as_echo_n "checking whether we are using Heimdal... " >&6; } 15498$as_echo_n "checking whether we are using Heimdal... " >&6; }
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -15447,7 +15696,7 @@ if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
15447 $as_echo_n "(cached) " >&6 15696 $as_echo_n "(cached) " >&6
15448else 15697else
15449 ac_check_lib_save_LIBS=$LIBS 15698 ac_check_lib_save_LIBS=$LIBS
15450LIBS="-lgssapi_krb5 $K5LIBS $LIBS" 15699LIBS="-lgssapi_krb5 $LIBS"
15451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452/* end confdefs.h. */ 15701/* end confdefs.h. */
15453 15702
@@ -15480,7 +15729,7 @@ $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
15480if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : 15729if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
15481 $as_echo "#define GSSAPI 1" >>confdefs.h 15730 $as_echo "#define GSSAPI 1" >>confdefs.h
15482 15731
15483 K5LIBS="-lgssapi_krb5 $K5LIBS" 15732 GSSLIBS="-lgssapi_krb5"
15484else 15733else
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
15486$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } 15735$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
@@ -15488,7 +15737,7 @@ if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
15488 $as_echo_n "(cached) " >&6 15737 $as_echo_n "(cached) " >&6
15489else 15738else
15490 ac_check_lib_save_LIBS=$LIBS 15739 ac_check_lib_save_LIBS=$LIBS
15491LIBS="-lgssapi $K5LIBS $LIBS" 15740LIBS="-lgssapi $LIBS"
15492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493/* end confdefs.h. */ 15742/* end confdefs.h. */
15494 15743
@@ -15521,7 +15770,48 @@ $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
15521if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : 15770if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
15522 $as_echo "#define GSSAPI 1" >>confdefs.h 15771 $as_echo "#define GSSAPI 1" >>confdefs.h
15523 15772
15524 K5LIBS="-lgssapi $K5LIBS" 15773 GSSLIBS="-lgssapi"
15774else
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
15776$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
15777if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
15778 $as_echo_n "(cached) " >&6
15779else
15780 ac_check_lib_save_LIBS=$LIBS
15781LIBS="-lgss $LIBS"
15782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783/* end confdefs.h. */
15784
15785/* Override any GCC internal prototype to avoid an error.
15786 Use char because int might match the return type of a GCC
15787 builtin and then its argument prototype would still apply. */
15788#ifdef __cplusplus
15789extern "C"
15790#endif
15791char gss_init_sec_context ();
15792int
15793main ()
15794{
15795return gss_init_sec_context ();
15796 ;
15797 return 0;
15798}
15799_ACEOF
15800if ac_fn_c_try_link "$LINENO"; then :
15801 ac_cv_lib_gss_gss_init_sec_context=yes
15802else
15803 ac_cv_lib_gss_gss_init_sec_context=no
15804fi
15805rm -f core conftest.err conftest.$ac_objext \
15806 conftest$ac_exeext conftest.$ac_ext
15807LIBS=$ac_check_lib_save_LIBS
15808fi
15809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
15810$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
15811if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
15812 $as_echo "#define GSSAPI 1" >>confdefs.h
15813
15814 GSSLIBS="-lgss"
15525else 15815else
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 15816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
15527$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} 15817$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
@@ -15531,6 +15821,9 @@ fi
15531fi 15821fi
15532 15822
15533 15823
15824fi
15825
15826
15534 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 15827 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
15535if test "x$ac_cv_header_gssapi_h" = xyes; then : 15828if test "x$ac_cv_header_gssapi_h" = xyes; then :
15536 15829
@@ -15618,7 +15911,6 @@ fi
15618done 15911done
15619 15912
15620 15913
15621 LIBS="$LIBS $K5LIBS"
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
15623$as_echo_n "checking for library containing k_hasafs... " >&6; } 15915$as_echo_n "checking for library containing k_hasafs... " >&6; }
15624if ${ac_cv_search_k_hasafs+:} false; then : 15916if ${ac_cv_search_k_hasafs+:} false; then :
@@ -15677,12 +15969,39 @@ $as_echo "#define USE_AFS 1" >>confdefs.h
15677 15969
15678fi 15970fi
15679 15971
15972
15973 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
15974#ifdef HAVE_GSSAPI_H
15975# include <gssapi.h>
15976#elif defined(HAVE_GSSAPI_GSSAPI_H)
15977# include <gssapi/gssapi.h>
15978#endif
15979
15980#ifdef HAVE_GSSAPI_GENERIC_H
15981# include <gssapi_generic.h>
15982#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
15983# include <gssapi/gssapi_generic.h>
15984#endif
15985
15986"
15987if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
15988 ac_have_decl=1
15989else
15990 ac_have_decl=0
15991fi
15992
15993cat >>confdefs.h <<_ACEOF
15994#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
15995_ACEOF
15996
15680 fi 15997 fi
15681 15998
15682 15999
15683fi 16000fi
15684 16001
15685 16002
16003
16004
15686# Looking for programs, paths and files 16005# Looking for programs, paths and files
15687 16006
15688PRIVSEP_PATH=/var/empty 16007PRIVSEP_PATH=/var/empty
@@ -16737,7 +17056,6 @@ _ACEOF
16737 17056
16738fi 17057fi
16739 17058
16740
16741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 17059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
16742$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } 17060$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -16790,6 +17108,60 @@ if test ! -z "$blibpath" ; then
16790$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} 17108$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16791fi 17109fi
16792 17110
17111ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
17112#ifdef HAVE_SYS_TYPES_H
17113#include <sys/types.h>
17114#endif
17115#ifdef HAVE_UTMP_H
17116#include <utmp.h>
17117#endif
17118#ifdef HAVE_UTMPX_H
17119#include <utmpx.h>
17120#endif
17121#ifdef HAVE_LASTLOG_H
17122#include <lastlog.h>
17123#endif
17124
17125"
17126if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
17127
17128else
17129
17130 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
17131 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
17132
17133 fi
17134
17135fi
17136
17137
17138ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
17139#ifdef HAVE_SYS_TYPES_H
17140#include <sys/types.h>
17141#endif
17142#ifdef HAVE_UTMP_H
17143#include <utmp.h>
17144#endif
17145#ifdef HAVE_UTMPX_H
17146#include <utmpx.h>
17147#endif
17148#ifdef HAVE_LASTLOG_H
17149#include <lastlog.h>
17150#endif
17151
17152"
17153if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
17154
17155else
17156
17157 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
17158
17159 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
17160
17161
17162fi
17163
17164
16793CFLAGS="$CFLAGS $werror_flags" 17165CFLAGS="$CFLAGS $werror_flags"
16794 17166
16795if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then 17167if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then