diff options
author | Colin Watson <cjwatson@debian.org> | 2020-06-07 10:19:23 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-06-07 10:19:23 +0100 |
commit | 202f5a676221c244cd450086c334c2b59f339e86 (patch) | |
tree | d2f90a3a9ce2b33485c271eab01a48f02ef6fb5a /configure | |
parent | f0de78bd4f29fa688c5df116f3f9cd43543a76d0 (diff) | |
parent | 9ca7e9c861775dd6c6312bc8aaab687403d24676 (diff) |
Import openssh_8.3p1.orig.tar.gz
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 137 |
1 files changed, 136 insertions, 1 deletions
@@ -646,6 +646,7 @@ SSHDLIBS | |||
646 | SSHLIBS | 646 | SSHLIBS |
647 | SSH_PRIVSEP_USER | 647 | SSH_PRIVSEP_USER |
648 | LIBFIDO2 | 648 | LIBFIDO2 |
649 | SK_DUMMY_LIBRARY | ||
649 | COMMENT_OUT_ECC | 650 | COMMENT_OUT_ECC |
650 | TEST_SSH_ECC | 651 | TEST_SSH_ECC |
651 | PICFLAG | 652 | PICFLAG |
@@ -5412,6 +5413,12 @@ if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | |||
5412 | have_llong_max=1 | 5413 | have_llong_max=1 |
5413 | fi | 5414 | fi |
5414 | 5415 | ||
5416 | ac_fn_c_check_decl "$LINENO" "LONG_LONG_MAX" "ac_cv_have_decl_LONG_LONG_MAX" "#include <limits.h> | ||
5417 | " | ||
5418 | if test "x$ac_cv_have_decl_LONG_LONG_MAX" = xyes; then : | ||
5419 | have_long_long_max=1 | ||
5420 | fi | ||
5421 | |||
5415 | ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " | 5422 | ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " |
5416 | #include <sys/types.h> | 5423 | #include <sys/types.h> |
5417 | #include <sys/param.h> | 5424 | #include <sys/param.h> |
@@ -6828,6 +6835,7 @@ for ac_header in \ | |||
6828 | string.h \ | 6835 | string.h \ |
6829 | strings.h \ | 6836 | strings.h \ |
6830 | sys/bitypes.h \ | 6837 | sys/bitypes.h \ |
6838 | sys/byteorder.h \ | ||
6831 | sys/bsdtty.h \ | 6839 | sys/bsdtty.h \ |
6832 | sys/cdefs.h \ | 6840 | sys/cdefs.h \ |
6833 | sys/dir.h \ | 6841 | sys/dir.h \ |
@@ -11558,6 +11566,28 @@ $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | |||
11558 | fi | 11566 | fi |
11559 | 11567 | ||
11560 | 11568 | ||
11569 | ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" " #include <time.h> | ||
11570 | |||
11571 | " | ||
11572 | if test "x$ac_cv_have_decl_localtime_r" = xyes; then : | ||
11573 | |||
11574 | else | ||
11575 | saved_CPPFLAGS="$CFLAGS" | ||
11576 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" | ||
11577 | unset ac_cv_have_decl_localtime_r | ||
11578 | ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" " #include <time.h> | ||
11579 | |||
11580 | " | ||
11581 | if test "x$ac_cv_have_decl_localtime_r" = xyes; then : | ||
11582 | |||
11583 | else | ||
11584 | CPPFLAGS="$saved_CPPFLAGS" | ||
11585 | fi | ||
11586 | |||
11587 | |||
11588 | fi | ||
11589 | |||
11590 | |||
11561 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " | 11591 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " |
11562 | #ifdef HAVE_STRING_H | 11592 | #ifdef HAVE_STRING_H |
11563 | # include <string.h> | 11593 | # include <string.h> |
@@ -11616,6 +11646,7 @@ _ACEOF | |||
11616 | ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " | 11646 | ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " |
11617 | #include <sys/types.h> | 11647 | #include <sys/types.h> |
11618 | #include <sys/socket.h> | 11648 | #include <sys/socket.h> |
11649 | #include <unistd.h> | ||
11619 | 11650 | ||
11620 | " | 11651 | " |
11621 | if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : | 11652 | if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : |
@@ -11627,6 +11658,21 @@ fi | |||
11627 | cat >>confdefs.h <<_ACEOF | 11658 | cat >>confdefs.h <<_ACEOF |
11628 | #define HAVE_DECL_SHUT_RD $ac_have_decl | 11659 | #define HAVE_DECL_SHUT_RD $ac_have_decl |
11629 | _ACEOF | 11660 | _ACEOF |
11661 | ac_fn_c_check_decl "$LINENO" "getpeereid" "ac_cv_have_decl_getpeereid" " | ||
11662 | #include <sys/types.h> | ||
11663 | #include <sys/socket.h> | ||
11664 | #include <unistd.h> | ||
11665 | |||
11666 | " | ||
11667 | if test "x$ac_cv_have_decl_getpeereid" = xyes; then : | ||
11668 | ac_have_decl=1 | ||
11669 | else | ||
11670 | ac_have_decl=0 | ||
11671 | fi | ||
11672 | |||
11673 | cat >>confdefs.h <<_ACEOF | ||
11674 | #define HAVE_DECL_GETPEEREID $ac_have_decl | ||
11675 | _ACEOF | ||
11630 | 11676 | ||
11631 | 11677 | ||
11632 | ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " | 11678 | ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " |
@@ -12719,6 +12765,68 @@ fi | |||
12719 | 12765 | ||
12720 | fi | 12766 | fi |
12721 | 12767 | ||
12768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SA_RESTARTed signals interrupt select()" >&5 | ||
12769 | $as_echo_n "checking if SA_RESTARTed signals interrupt select()... " >&6; } | ||
12770 | if test "$cross_compiling" = yes; then : | ||
12771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
12772 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
12773 | |||
12774 | else | ||
12775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12776 | /* end confdefs.h. */ | ||
12777 | |||
12778 | #ifdef HAVE_SYS_SELECT | ||
12779 | # include <sys/select.h> | ||
12780 | #endif | ||
12781 | #include <sys/types.h> | ||
12782 | #include <sys/time.h> | ||
12783 | #include <stdlib.h> | ||
12784 | #include <signal.h> | ||
12785 | static void sighandler(int sig) { } | ||
12786 | |||
12787 | int | ||
12788 | main () | ||
12789 | { | ||
12790 | |||
12791 | int r; | ||
12792 | pid_t pid; | ||
12793 | struct sigaction sa; | ||
12794 | |||
12795 | sa.sa_handler = sighandler; | ||
12796 | sa.sa_flags = SA_RESTART; | ||
12797 | (void)sigaction(SIGTERM, &sa, NULL); | ||
12798 | if ((pid = fork()) == 0) { /* child */ | ||
12799 | pid = getppid(); | ||
12800 | sleep(1); | ||
12801 | kill(pid, SIGTERM); | ||
12802 | sleep(1); | ||
12803 | if (getppid() == pid) /* if parent did not exit, shoot it */ | ||
12804 | kill(pid, SIGKILL); | ||
12805 | exit(0); | ||
12806 | } else { /* parent */ | ||
12807 | r = select(0, NULL, NULL, NULL, NULL); | ||
12808 | } | ||
12809 | exit(r == -1 ? 0 : 1); | ||
12810 | |||
12811 | ; | ||
12812 | return 0; | ||
12813 | } | ||
12814 | _ACEOF | ||
12815 | if ac_fn_c_try_run "$LINENO"; then : | ||
12816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12817 | $as_echo "yes" >&6; } | ||
12818 | else | ||
12819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12820 | $as_echo "no" >&6; } | ||
12821 | |||
12822 | $as_echo "#define NO_SA_RESTART 1" >>confdefs.h | ||
12823 | |||
12824 | fi | ||
12825 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12826 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12827 | fi | ||
12828 | |||
12829 | |||
12722 | for ac_func in getpgrp | 12830 | for ac_func in getpgrp |
12723 | do : | 12831 | do : |
12724 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 12832 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
@@ -13226,6 +13334,7 @@ fi | |||
13226 | EVP_PKEY_get0_RSA \ | 13334 | EVP_PKEY_get0_RSA \ |
13227 | EVP_MD_CTX_new \ | 13335 | EVP_MD_CTX_new \ |
13228 | EVP_MD_CTX_free \ | 13336 | EVP_MD_CTX_free \ |
13337 | EVP_chacha20 \ | ||
13229 | 13338 | ||
13230 | do : | 13339 | do : |
13231 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 13340 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
@@ -13856,6 +13965,12 @@ if test "x$enable_sk" = "xyes" ; then | |||
13856 | 13965 | ||
13857 | $as_echo "#define ENABLE_SK /**/" >>confdefs.h | 13966 | $as_echo "#define ENABLE_SK /**/" >>confdefs.h |
13858 | 13967 | ||
13968 | SK_DUMMY_LIBRARY=regress/misc/sk-dummy/sk-dummy.so | ||
13969 | |||
13970 | else | ||
13971 | # Do not try to build sk-dummy library. | ||
13972 | SK_DUMMY_LIBRARY="" | ||
13973 | |||
13859 | fi | 13974 | fi |
13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sk" >&5 | 13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sk" >&5 |
13861 | $as_echo "$enable_sk" >&6; } | 13976 | $as_echo "$enable_sk" >&6; } |
@@ -14025,8 +14140,28 @@ $as_echo "#define ENABLE_SK_INTERNAL /**/" >>confdefs.h | |||
14025 | 14140 | ||
14026 | enable_sk="built-in" | 14141 | enable_sk="built-in" |
14027 | 14142 | ||
14143 | else | ||
14144 | as_fn_error $? "no usable libfido2 found" "$LINENO" 5 | ||
14145 | fi | ||
14146 | |||
14147 | ac_fn_c_check_header_mongrel "$LINENO" "fido.h" "ac_cv_header_fido_h" "$ac_includes_default" | ||
14148 | if test "x$ac_cv_header_fido_h" = xyes; then : | ||
14149 | |||
14150 | else | ||
14151 | as_fn_error $? "missing fido.h from libfido2" "$LINENO" 5 | ||
14028 | fi | 14152 | fi |
14029 | 14153 | ||
14154 | |||
14155 | ac_fn_c_check_header_compile "$LINENO" "fido/credman.h" "ac_cv_header_fido_credman_h" "#include <fido.h> | ||
14156 | |||
14157 | " | ||
14158 | if test "x$ac_cv_header_fido_credman_h" = xyes; then : | ||
14159 | |||
14160 | else | ||
14161 | as_fn_error $? "missing fido/credman.h from libfido2" "$LINENO" 5 | ||
14162 | fi | ||
14163 | |||
14164 | |||
14030 | fi | 14165 | fi |
14031 | 14166 | ||
14032 | for ac_func in \ | 14167 | for ac_func in \ |
@@ -14996,7 +15131,7 @@ if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | |||
14996 | fi | 15131 | fi |
14997 | 15132 | ||
14998 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | 15133 | # compute LLONG_MIN and LLONG_MAX if we don't know them. |
14999 | if test -z "$have_llong_max"; then | 15134 | if test -z "$have_llong_max" && test -z "$have_long_long_max"; then |
15000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 | 15135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 |
15001 | $as_echo_n "checking for max value of long long... " >&6; } | 15136 | $as_echo_n "checking for max value of long long... " >&6; } |
15002 | if test "$cross_compiling" = yes; then : | 15137 | if test "$cross_compiling" = yes; then : |