diff options
author | Colin Watson <cjwatson@debian.org> | 2012-09-06 23:20:10 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2012-09-06 23:20:10 +0100 |
commit | c6a2c0334e45419875687d250aed9bea78480f2e (patch) | |
tree | d8f01bef9f3921fa1ca7592a19474be9c8349f76 /configure | |
parent | dd5ed53e20d218607260916a6b04d1c8c5b3d88f (diff) | |
parent | 8b13b5bdc4f19bd52ee673104d66b71c21153b96 (diff) |
merge 6.1p1
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 198 |
1 files changed, 183 insertions, 15 deletions
@@ -1,5 +1,5 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # From configure.ac Revision: 1.489 . | 2 | # From configure.ac Revision: 1.496 . |
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 | # |
@@ -6984,7 +6984,8 @@ $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | |||
6984 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | 6984 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h |
6985 | do : | 6985 | do : |
6986 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6986 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6987 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 6987 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> |
6988 | " | ||
6988 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 6989 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6989 | cat >>confdefs.h <<_ACEOF | 6990 | cat >>confdefs.h <<_ACEOF |
6990 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 6991 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
@@ -9194,8 +9195,9 @@ LIBEDIT_MSG="no" | |||
9194 | if test "${with_libedit+set}" = set; then : | 9195 | if test "${with_libedit+set}" = set; then : |
9195 | withval=$with_libedit; if test "x$withval" != "xno" ; then | 9196 | withval=$with_libedit; if test "x$withval" != "xno" ; then |
9196 | if test "x$withval" = "xyes" ; then | 9197 | if test "x$withval" = "xyes" ; then |
9197 | # Extract the first word of "pkg-config", so it can be a program name with args. | 9198 | if test -n "$ac_tool_prefix"; then |
9198 | set dummy pkg-config; ac_word=$2 | 9199 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
9200 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
9199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 9201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9200 | $as_echo_n "checking for $ac_word... " >&6; } | 9202 | $as_echo_n "checking for $ac_word... " >&6; } |
9201 | if ${ac_cv_path_PKGCONFIG+:} false; then : | 9203 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
@@ -9221,7 +9223,6 @@ done | |||
9221 | done | 9223 | done |
9222 | IFS=$as_save_IFS | 9224 | IFS=$as_save_IFS |
9223 | 9225 | ||
9224 | test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" | ||
9225 | ;; | 9226 | ;; |
9226 | esac | 9227 | esac |
9227 | fi | 9228 | fi |
@@ -9235,6 +9236,63 @@ $as_echo "no" >&6; } | |||
9235 | fi | 9236 | fi |
9236 | 9237 | ||
9237 | 9238 | ||
9239 | fi | ||
9240 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
9241 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
9242 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
9243 | set dummy pkg-config; ac_word=$2 | ||
9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
9245 | $as_echo_n "checking for $ac_word... " >&6; } | ||
9246 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | ||
9247 | $as_echo_n "(cached) " >&6 | ||
9248 | else | ||
9249 | case $ac_pt_PKGCONFIG in | ||
9250 | [\\/]* | ?:[\\/]*) | ||
9251 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
9252 | ;; | ||
9253 | *) | ||
9254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9255 | for as_dir in $PATH | ||
9256 | do | ||
9257 | IFS=$as_save_IFS | ||
9258 | test -z "$as_dir" && as_dir=. | ||
9259 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
9261 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
9262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9263 | break 2 | ||
9264 | fi | ||
9265 | done | ||
9266 | done | ||
9267 | IFS=$as_save_IFS | ||
9268 | |||
9269 | ;; | ||
9270 | esac | ||
9271 | fi | ||
9272 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
9273 | if test -n "$ac_pt_PKGCONFIG"; then | ||
9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | ||
9275 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | ||
9276 | else | ||
9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9278 | $as_echo "no" >&6; } | ||
9279 | fi | ||
9280 | |||
9281 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
9282 | PKGCONFIG="no" | ||
9283 | else | ||
9284 | case $cross_compiling:$ac_tool_warned in | ||
9285 | yes:) | ||
9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
9287 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
9288 | ac_tool_warned=yes ;; | ||
9289 | esac | ||
9290 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
9291 | fi | ||
9292 | else | ||
9293 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
9294 | fi | ||
9295 | |||
9238 | if test "x$PKGCONFIG" != "xno"; then | 9296 | if test "x$PKGCONFIG" != "xno"; then |
9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 | 9297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 |
9240 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } | 9298 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } |
@@ -9556,6 +9614,7 @@ for ac_func in \ | |||
9556 | seteuid \ | 9614 | seteuid \ |
9557 | setgroupent \ | 9615 | setgroupent \ |
9558 | setgroups \ | 9616 | setgroups \ |
9617 | setlinebuf \ | ||
9559 | setlogin \ | 9618 | setlogin \ |
9560 | setpassent\ | 9619 | setpassent\ |
9561 | setpcred \ | 9620 | setpcred \ |
@@ -11841,6 +11900,109 @@ if test "${with_sandbox+set}" = set; then : | |||
11841 | 11900 | ||
11842 | fi | 11901 | fi |
11843 | 11902 | ||
11903 | |||
11904 | # Some platforms (seems to be the ones that have a kernel poll(2)-type | ||
11905 | # function with which they implement select(2)) use an extra file descriptor | ||
11906 | # when calling select(2), which means we can't use the rlimit sandbox. | ||
11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 | ||
11908 | $as_echo_n "checking if select works with descriptor rlimit... " >&6; } | ||
11909 | if test "$cross_compiling" = yes; then : | ||
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
11911 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
11912 | |||
11913 | else | ||
11914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11915 | /* end confdefs.h. */ | ||
11916 | |||
11917 | #include <sys/types.h> | ||
11918 | #ifdef HAVE_SYS_TIME_H | ||
11919 | # include <sys/time.h> | ||
11920 | #endif | ||
11921 | #include <sys/resource.h> | ||
11922 | #ifdef HAVE_SYS_SELECT_H | ||
11923 | # include <sys/select.h> | ||
11924 | #endif | ||
11925 | #include <errno.h> | ||
11926 | #include <fcntl.h> | ||
11927 | #include <stdlib.h> | ||
11928 | |||
11929 | int | ||
11930 | main () | ||
11931 | { | ||
11932 | |||
11933 | struct rlimit rl_zero; | ||
11934 | int fd, r; | ||
11935 | fd_set fds; | ||
11936 | |||
11937 | fd = open("/dev/null", O_RDONLY); | ||
11938 | FD_ZERO(&fds); | ||
11939 | FD_SET(fd, &fds); | ||
11940 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
11941 | setrlimit(RLIMIT_FSIZE, &rl_zero); | ||
11942 | setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
11943 | r = select(fd+1, &fds, NULL, NULL, NULL); | ||
11944 | exit (r == -1 ? 1 : 0); | ||
11945 | |||
11946 | ; | ||
11947 | return 0; | ||
11948 | } | ||
11949 | _ACEOF | ||
11950 | if ac_fn_c_try_run "$LINENO"; then : | ||
11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11952 | $as_echo "yes" >&6; } | ||
11953 | select_works_with_rlimit=yes | ||
11954 | else | ||
11955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11956 | $as_echo "no" >&6; } | ||
11957 | select_works_with_rlimit=no | ||
11958 | fi | ||
11959 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11960 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11961 | fi | ||
11962 | |||
11963 | |||
11964 | { $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; } | ||
11966 | if test "$cross_compiling" = yes; then : | ||
11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
11968 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
11969 | |||
11970 | else | ||
11971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11972 | /* end confdefs.h. */ | ||
11973 | |||
11974 | #include <sys/types.h> | ||
11975 | #include <sys/resource.h> | ||
11976 | #include <stdlib.h> | ||
11977 | |||
11978 | int | ||
11979 | main () | ||
11980 | { | ||
11981 | |||
11982 | struct rlimit rl_zero; | ||
11983 | |||
11984 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
11985 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); | ||
11986 | |||
11987 | ; | ||
11988 | return 0; | ||
11989 | } | ||
11990 | _ACEOF | ||
11991 | if ac_fn_c_try_run "$LINENO"; then : | ||
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11993 | $as_echo "yes" >&6; } | ||
11994 | else | ||
11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11996 | $as_echo "no" >&6; } | ||
11997 | |||
11998 | $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h | ||
11999 | |||
12000 | fi | ||
12001 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12002 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12003 | fi | ||
12004 | |||
12005 | |||
11844 | if test "x$sandbox_arg" = "xsystrace" || \ | 12006 | if test "x$sandbox_arg" = "xsystrace" || \ |
11845 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | 12007 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then |
11846 | test "x$have_systr_policy_kill" != "x1" && \ | 12008 | test "x$have_systr_policy_kill" != "x1" && \ |
@@ -11861,7 +12023,7 @@ $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h | |||
11861 | 12023 | ||
11862 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | 12024 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ |
11863 | ( test -z "$sandbox_arg" && \ | 12025 | ( test -z "$sandbox_arg" && \ |
11864 | test "x$have_seccomp_filter" == "x1" && \ | 12026 | test "x$have_seccomp_filter" = "x1" && \ |
11865 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | 12027 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ |
11866 | test "x$have_seccomp_audit_arch" = "x1" && \ | 12028 | test "x$have_seccomp_audit_arch" = "x1" && \ |
11867 | test "x$have_linux_no_new_privs" = "x1" && \ | 12029 | test "x$have_linux_no_new_privs" = "x1" && \ |
@@ -11879,9 +12041,12 @@ elif test "x$sandbox_arg" = "xseccomp_filter" || \ | |||
11879 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h | 12041 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h |
11880 | 12042 | ||
11881 | elif test "x$sandbox_arg" = "xrlimit" || \ | 12043 | elif test "x$sandbox_arg" = "xrlimit" || \ |
11882 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" ) ; then | 12044 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ |
12045 | test "x$select_works_with_rlimit" == "xyes" ) ; then | ||
11883 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | 12046 | test "x$ac_cv_func_setrlimit" != "xyes" && \ |
11884 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 | 12047 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 |
12048 | test "x$select_works_with_rlimit" != "xyes" && \ | ||
12049 | as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 | ||
11885 | SANDBOX_STYLE="rlimit" | 12050 | SANDBOX_STYLE="rlimit" |
11886 | 12051 | ||
11887 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h | 12052 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h |
@@ -14175,7 +14340,7 @@ $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } | |||
14175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 14340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14176 | /* end confdefs.h. */ | 14341 | /* end confdefs.h. */ |
14177 | 14342 | ||
14178 | #include <sys/types.h> | 14343 | #include <sys/param.h> |
14179 | #include <sys/stat.h> | 14344 | #include <sys/stat.h> |
14180 | #ifdef HAVE_SYS_TIME_H | 14345 | #ifdef HAVE_SYS_TIME_H |
14181 | # include <sys/time.h> | 14346 | # include <sys/time.h> |
@@ -16134,13 +16299,16 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |||
16134 | fi | 16299 | fi |
16135 | 16300 | ||
16136 | # make sure $bindir is in USER_PATH so scp will work | 16301 | # make sure $bindir is in USER_PATH so scp will work |
16137 | t_bindir=`eval echo ${bindir}` | 16302 | t_bindir="${bindir}" |
16138 | case $t_bindir in | 16303 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do |
16139 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | 16304 | t_bindir=`eval echo ${t_bindir}` |
16140 | esac | 16305 | case $t_bindir in |
16141 | case $t_bindir in | 16306 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; |
16142 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | 16307 | esac |
16143 | esac | 16308 | case $t_bindir in |
16309 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16310 | esac | ||
16311 | done | ||
16144 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | 16312 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 |
16145 | if test $? -ne 0 ; then | 16313 | if test $? -ne 0 ; then |
16146 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | 16314 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 |