summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2019-10-09 22:59:48 +0100
committerColin Watson <cjwatson@debian.org>2019-10-09 22:59:48 +0100
commit4213eec74e74de6310c27a40c3e9759a08a73996 (patch)
treee97a6dcafc6763aea7c804e4e113c2750cb1400d /configure
parent102062f825fb26a74295a1c089c00c4c4c76b68a (diff)
parentcdf1d0a9f5d18535e0a18ff34860e81a6d83aa5c (diff)
Import openssh_8.1p1.orig.tar.gz
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure268
1 files changed, 134 insertions, 134 deletions
diff --git a/configure b/configure
index d276473ca..1e67db268 100755
--- a/configure
+++ b/configure
@@ -4874,8 +4874,8 @@ $as_echo "no" >&6; }
4874fi 4874fi
4875 4875
4876 4876
4877# Extract the first word of "nroff", so it can be a program name with args. 4877# Extract the first word of "nroff awf", so it can be a program name with args.
4878set dummy nroff; ac_word=$2 4878set dummy nroff awf; ac_word=$2
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880$as_echo_n "checking for $ac_word... " >&6; } 4880$as_echo_n "checking for $ac_word... " >&6; }
4881if ${ac_cv_path_NROFF+:} false; then : 4881if ${ac_cv_path_NROFF+:} false; then :
@@ -4964,8 +4964,8 @@ elif test "x$NROFF" != "x" ; then
4964elif test "x$GROFF" != "x" ; then 4964elif test "x$GROFF" != "x" ; then
4965 MANFMT="$GROFF -mandoc -Tascii" 4965 MANFMT="$GROFF -mandoc -Tascii"
4966else 4966else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatter found" >&5
4968$as_echo "$as_me: WARNING: no manpage formatted found" >&2;} 4968$as_echo "$as_me: WARNING: no manpage formatter found" >&2;}
4969 MANFMT="false" 4969 MANFMT="false"
4970fi 4970fi
4971 4971
@@ -5550,12 +5550,12 @@ fi
5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551} 5551}
5552 { 5552 {
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5554$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } 5554$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; }
5555 saved_CFLAGS="$CFLAGS" 5555 saved_CFLAGS="$CFLAGS"
5556 CFLAGS="$CFLAGS $WERROR -Qunused-arguments" 5556 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5557 _define_flag="" 5557 _define_flag=""
5558 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" 5558 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h. */ 5560/* end confdefs.h. */
5561 5561
@@ -5593,12 +5593,55 @@ fi
5593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594} 5594}
5595 { 5595 {
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-error=format-truncation" >&5
5597$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; } 5597$as_echo_n "checking if $CC supports compile flag -Wno-error=format-truncation... " >&6; }
5598 saved_CFLAGS="$CFLAGS" 5598 saved_CFLAGS="$CFLAGS"
5599 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" 5599 CFLAGS="$CFLAGS $WERROR -Wno-error=format-truncation"
5600 _define_flag="" 5600 _define_flag=""
5601 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" 5601 test "x$_define_flag" = "x" && _define_flag="-Wno-error=format-truncation"
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603/* end confdefs.h. */
5604
5605#include <stdlib.h>
5606#include <stdio.h>
5607int main(int argc, char **argv) {
5608 /* Some math to catch -ftrapv problems in the toolchain */
5609 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5610 float l = i * 2.1;
5611 double m = l / 0.5;
5612 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5613 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5614 exit(0);
5615}
5616
5617_ACEOF
5618if ac_fn_c_try_compile "$LINENO"; then :
5619
5620if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5621then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623$as_echo "no" >&6; }
5624 CFLAGS="$saved_CFLAGS"
5625else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5627$as_echo "yes" >&6; }
5628 CFLAGS="$saved_CFLAGS $_define_flag"
5629fi
5630else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632$as_echo "no" >&6; }
5633 CFLAGS="$saved_CFLAGS"
5634
5635fi
5636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637}
5638 {
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5
5640$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
5641 saved_CFLAGS="$CFLAGS"
5642 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5643 _define_flag=""
5644 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603/* end confdefs.h. */ 5646/* end confdefs.h. */
5604 5647
@@ -5679,6 +5722,49 @@ fi
5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680} 5723}
5681 { 5724 {
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wextra" >&5
5726$as_echo_n "checking if $CC supports compile flag -Wextra... " >&6; }
5727 saved_CFLAGS="$CFLAGS"
5728 CFLAGS="$CFLAGS $WERROR -Wextra"
5729 _define_flag=""
5730 test "x$_define_flag" = "x" && _define_flag="-Wextra"
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732/* end confdefs.h. */
5733
5734#include <stdlib.h>
5735#include <stdio.h>
5736int main(int argc, char **argv) {
5737 /* Some math to catch -ftrapv problems in the toolchain */
5738 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5739 float l = i * 2.1;
5740 double m = l / 0.5;
5741 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5742 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5743 exit(0);
5744}
5745
5746_ACEOF
5747if ac_fn_c_try_compile "$LINENO"; then :
5748
5749if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5750then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752$as_echo "no" >&6; }
5753 CFLAGS="$saved_CFLAGS"
5754else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756$as_echo "yes" >&6; }
5757 CFLAGS="$saved_CFLAGS $_define_flag"
5758fi
5759else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761$as_echo "no" >&6; }
5762 CFLAGS="$saved_CFLAGS"
5763
5764fi
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766}
5767 {
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5
5683$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } 5769$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
5684 saved_CFLAGS="$CFLAGS" 5770 saved_CFLAGS="$CFLAGS"
@@ -7150,9 +7236,6 @@ fi
7150 7236
7151 check_for_aix_broken_getaddrinfo=1 7237 check_for_aix_broken_getaddrinfo=1
7152 7238
7153$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7154
7155
7156$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7239$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7157 7240
7158 7241
@@ -7417,6 +7500,30 @@ if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then :
7417 7500
7418fi 7501fi
7419 7502
7503 # proc_pidinfo()-based closefrom() replacement.
7504 for ac_header in libproc.h
7505do :
7506 ac_fn_c_check_header_mongrel "$LINENO" "libproc.h" "ac_cv_header_libproc_h" "$ac_includes_default"
7507if test "x$ac_cv_header_libproc_h" = xyes; then :
7508 cat >>confdefs.h <<_ACEOF
7509#define HAVE_LIBPROC_H 1
7510_ACEOF
7511
7512fi
7513
7514done
7515
7516 for ac_func in proc_pidinfo
7517do :
7518 ac_fn_c_check_func "$LINENO" "proc_pidinfo" "ac_cv_func_proc_pidinfo"
7519if test "x$ac_cv_func_proc_pidinfo" = xyes; then :
7520 cat >>confdefs.h <<_ACEOF
7521#define HAVE_PROC_PIDINFO 1
7522_ACEOF
7523
7524fi
7525done
7526
7420 ;; 7527 ;;
7421*-*-dragonfly*) 7528*-*-dragonfly*)
7422 SSHDLIBS="$SSHDLIBS -lcrypt" 7529 SSHDLIBS="$SSHDLIBS -lcrypt"
@@ -7697,7 +7804,7 @@ $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7697 fi 7804 fi
7698 ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" " 7805 ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" "
7699#ifdef HAVE_SYS_TYPES_H 7806#ifdef HAVE_SYS_TYPES_H
7700# include <sys/types.H> 7807# include <sys/types.h>
7701#endif 7808#endif
7702 7809
7703" 7810"
@@ -7936,8 +8043,6 @@ $as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h
7936 8043
7937$as_echo "#define HAVE_NEXT 1" >>confdefs.h 8044$as_echo "#define HAVE_NEXT 1" >>confdefs.h
7938 8045
7939 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7940
7941 $as_echo "#define USE_PIPES 1" >>confdefs.h 8046 $as_echo "#define USE_PIPES 1" >>confdefs.h
7942 8047
7943 8048
@@ -10820,6 +10925,9 @@ for ac_func in \
10820 Blowfish_expandstate \ 10925 Blowfish_expandstate \
10821 Blowfish_expand0state \ 10926 Blowfish_expand0state \
10822 Blowfish_stream2word \ 10927 Blowfish_stream2word \
10928 SHA256Update \
10929 SHA384Update \
10930 SHA512Update \
10823 asprintf \ 10931 asprintf \
10824 b64_ntop \ 10932 b64_ntop \
10825 __b64_ntop \ 10933 __b64_ntop \
@@ -10872,6 +10980,7 @@ for ac_func in \
10872 llabs \ 10980 llabs \
10873 login_getcapbool \ 10981 login_getcapbool \
10874 md5_crypt \ 10982 md5_crypt \
10983 memmem \
10875 memmove \ 10984 memmove \
10876 memset_s \ 10985 memset_s \
10877 mkdtemp \ 10986 mkdtemp \
@@ -11623,61 +11732,6 @@ fi
11623done 11732done
11624 11733
11625 11734
11626for ac_func in realpath
11627do :
11628 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
11629if test "x$ac_cv_func_realpath" = xyes; then :
11630 cat >>confdefs.h <<_ACEOF
11631#define HAVE_REALPATH 1
11632_ACEOF
11633
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realpath works with non-existent files" >&5
11635$as_echo_n "checking if realpath works with non-existent files... " >&6; }
11636 if test "$cross_compiling" = yes; then :
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5
11638$as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
11639
11640else
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642/* end confdefs.h. */
11643
11644#include <limits.h>
11645#include <stdlib.h>
11646#include <errno.h>
11647
11648int
11649main ()
11650{
11651
11652 char buf[PATH_MAX];
11653 if (realpath("/opensshnonexistentfilename1234", buf) == NULL)
11654 if (errno == ENOENT)
11655 exit(1);
11656 exit(0);
11657
11658 ;
11659 return 0;
11660}
11661_ACEOF
11662if ac_fn_c_try_run "$LINENO"; then :
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11664$as_echo "yes" >&6; }
11665else
11666
11667$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
11668
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670$as_echo "no" >&6; }
11671fi
11672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11673 conftest.$ac_objext conftest.beam conftest.$ac_ext
11674fi
11675
11676
11677fi
11678done
11679
11680
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fflush(NULL)" >&5 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fflush(NULL)" >&5
11682$as_echo_n "checking for working fflush(NULL)... " >&6; } 11736$as_echo_n "checking for working fflush(NULL)... " >&6; }
11683if test "$cross_compiling" = yes; then : 11737if test "$cross_compiling" = yes; then :
@@ -13316,8 +13370,8 @@ fi
13316done 13370done
13317 13371
13318 13372
13319 # Search for SHA256 support in libc and/or OpenSSL 13373 # Check for SHA256, SHA384 and SHA512 support in OpenSSL
13320 for ac_func in SHA256_Update EVP_sha256 13374 for ac_func in EVP_sha256 EVP_sha384 EVP_sha512
13321do : 13375do :
13322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13323ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13377ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -13326,18 +13380,10 @@ if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13326#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13380#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13327_ACEOF 13381_ACEOF
13328 13382
13329else
13330 unsupported_algorithms="$unsupported_algorithms \
13331 hmac-sha2-256 \
13332 hmac-sha2-512 \
13333 diffie-hellman-group-exchange-sha256 \
13334 hmac-sha2-256-etm@openssh.com \
13335 hmac-sha2-512-etm@openssh.com"
13336
13337
13338fi 13383fi
13339done 13384done
13340 13385
13386
13341 # Search for RIPE-MD support in OpenSSL 13387 # Search for RIPE-MD support in OpenSSL
13342 for ac_func in EVP_ripemd160 13388 for ac_func in EVP_ripemd160
13343do : 13389do :
@@ -14257,8 +14303,7 @@ main ()
14257{ 14303{
14258 14304
14259 struct rlimit rl_zero; 14305 struct rlimit rl_zero;
14260 int fd, r; 14306 int r;
14261 fd_set fds;
14262 14307
14263 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 14308 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14264 r = setrlimit(RLIMIT_NOFILE, &rl_zero); 14309 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
@@ -18555,54 +18600,9 @@ if test "${with_mantype+set}" = set; then :
18555fi 18600fi
18556 18601
18557if test -z "$MANTYPE"; then 18602if test -z "$MANTYPE"; then
18558 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" 18603 if ${MANDOC} ${srcdir}/ssh.1 >/dev/null 2>&1; then
18559 for ac_prog in nroff awf 18604 MANTYPE=doc
18560do 18605 elif ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
18561 # Extract the first word of "$ac_prog", so it can be a program name with args.
18562set dummy $ac_prog; ac_word=$2
18563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18564$as_echo_n "checking for $ac_word... " >&6; }
18565if ${ac_cv_path_NROFF+:} false; then :
18566 $as_echo_n "(cached) " >&6
18567else
18568 case $NROFF in
18569 [\\/]* | ?:[\\/]*)
18570 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
18571 ;;
18572 *)
18573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18574for as_dir in $TestPath
18575do
18576 IFS=$as_save_IFS
18577 test -z "$as_dir" && as_dir=.
18578 for ac_exec_ext in '' $ac_executable_extensions; do
18579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18580 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
18581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18582 break 2
18583 fi
18584done
18585 done
18586IFS=$as_save_IFS
18587
18588 ;;
18589esac
18590fi
18591NROFF=$ac_cv_path_NROFF
18592if test -n "$NROFF"; then
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
18594$as_echo "$NROFF" >&6; }
18595else
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18597$as_echo "no" >&6; }
18598fi
18599
18600
18601 test -n "$NROFF" && break
18602done
18603test -n "$NROFF" || NROFF="/bin/false"
18604
18605 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
18606 MANTYPE=doc 18606 MANTYPE=doc
18607 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then 18607 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
18608 MANTYPE=man 18608 MANTYPE=man