diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 525 |
1 files changed, 486 insertions, 39 deletions
@@ -1,5 +1,5 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # From configure.ac Revision: 1.480 . | 2 | # From configure.ac Revision: 1.489 . |
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 | # |
@@ -722,6 +722,7 @@ with_zlib | |||
722 | with_zlib_version_check | 722 | with_zlib_version_check |
723 | with_skey | 723 | with_skey |
724 | with_tcp_wrappers | 724 | with_tcp_wrappers |
725 | with_ldns | ||
725 | with_libedit | 726 | with_libedit |
726 | with_audit | 727 | with_audit |
727 | with_ssl_dir | 728 | with_ssl_dir |
@@ -1411,6 +1412,7 @@ Optional Packages: | |||
1411 | --without-zlib-version-check Disable zlib version check | 1412 | --without-zlib-version-check Disable zlib version check |
1412 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | 1413 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) |
1413 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | 1414 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) |
1415 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) | ||
1414 | --with-libedit[=PATH] Enable libedit support for sftp | 1416 | --with-libedit[=PATH] Enable libedit support for sftp |
1415 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | 1417 | --with-audit=module Enable audit support (modules=debug,bsm,linux) |
1416 | --with-ssl-dir=PATH Specify path to OpenSSL installation | 1418 | --with-ssl-dir=PATH Specify path to OpenSSL installation |
@@ -1420,7 +1422,7 @@ Optional Packages: | |||
1420 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | 1422 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) |
1421 | --with-pam Enable PAM support | 1423 | --with-pam Enable PAM support |
1422 | --with-privsep-user=user Specify non-privileged user for privilege separation | 1424 | --with-privsep-user=user Specify non-privileged user for privilege separation |
1423 | --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace) | 1425 | --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter) |
1424 | --with-selinux Enable SELinux support | 1426 | --with-selinux Enable SELinux support |
1425 | --with-kerberos5=PATH Enable Kerberos 5 support | 1427 | --with-kerberos5=PATH Enable Kerberos 5 support |
1426 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | 1428 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) |
@@ -5576,6 +5578,68 @@ $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h | |||
5576 | 5578 | ||
5577 | fi | 5579 | fi |
5578 | 5580 | ||
5581 | ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " | ||
5582 | #include <sys/types.h> | ||
5583 | #include <linux/prctl.h> | ||
5584 | |||
5585 | " | ||
5586 | if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : | ||
5587 | have_linux_no_new_privs=1 | ||
5588 | fi | ||
5589 | |||
5590 | if test "x$have_linux_no_new_privs" = "x1" ; then | ||
5591 | ac_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 | " | ||
5596 | if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : | ||
5597 | have_seccomp_filter=1 | ||
5598 | fi | ||
5599 | |||
5600 | fi | ||
5601 | if 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; } | ||
5604 | if 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 | |||
5608 | else | ||
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 | |||
5617 | int | ||
5618 | main () | ||
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 | ||
5627 | if ac_fn_c_try_run "$LINENO"; then : | ||
5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5629 | $as_echo "yes" >&6; } | ||
5630 | else | ||
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 | |||
5637 | fi | ||
5638 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
5639 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
5640 | fi | ||
5641 | |||
5642 | fi | ||
5579 | 5643 | ||
5580 | use_stack_protector=1 | 5644 | use_stack_protector=1 |
5581 | 5645 | ||
@@ -5774,6 +5838,29 @@ $as_echo "no" >&6; } | |||
5774 | fi | 5838 | fi |
5775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5776 | } | 5840 | } |
5841 | { | ||
5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -D_FORTIFY_SOURCE=2" >&5 | ||
5843 | $as_echo_n "checking if $CC supports -D_FORTIFY_SOURCE=2... " >&6; } | ||
5844 | saved_CFLAGS="$CFLAGS" | ||
5845 | CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" | ||
5846 | _define_flag="" | ||
5847 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" | ||
5848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5849 | /* end confdefs.h. */ | ||
5850 | int main(void) { return 0; } | ||
5851 | _ACEOF | ||
5852 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5854 | $as_echo "yes" >&6; } | ||
5855 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5856 | else | ||
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5858 | $as_echo "no" >&6; } | ||
5859 | CFLAGS="$saved_CFLAGS" | ||
5860 | |||
5861 | fi | ||
5862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5863 | } | ||
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 | 5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 |
5778 | $as_echo_n "checking gcc version... " >&6; } | 5865 | $as_echo_n "checking gcc version... " >&6; } |
5779 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | 5866 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` |
@@ -6894,6 +6981,46 @@ $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | |||
6894 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | 6981 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h |
6895 | 6982 | ||
6896 | fi | 6983 | fi |
6984 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | ||
6985 | do : | ||
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" | ||
6988 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
6989 | cat >>confdefs.h <<_ACEOF | ||
6990 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6991 | _ACEOF | ||
6992 | |||
6993 | fi | ||
6994 | |||
6995 | done | ||
6996 | |||
6997 | for ac_func in prctl | ||
6998 | do : | ||
6999 | ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" | ||
7000 | if test "x$ac_cv_func_prctl" = xyes; then : | ||
7001 | cat >>confdefs.h <<_ACEOF | ||
7002 | #define HAVE_PRCTL 1 | ||
7003 | _ACEOF | ||
7004 | |||
7005 | fi | ||
7006 | done | ||
7007 | |||
7008 | have_seccomp_audit_arch=1 | ||
7009 | case "$host" in | ||
7010 | x86_64-*) | ||
7011 | |||
7012 | $as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64" >>confdefs.h | ||
7013 | |||
7014 | ;; | ||
7015 | i*86-*) | ||
7016 | |||
7017 | $as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386" >>confdefs.h | ||
7018 | |||
7019 | ;; | ||
7020 | *) | ||
7021 | have_seccomp_audit_arch=0 | ||
7022 | ;; | ||
7023 | esac | ||
6897 | ;; | 7024 | ;; |
6898 | mips-sony-bsd|mips-sony-newsos4) | 7025 | mips-sony-bsd|mips-sony-newsos4) |
6899 | 7026 | ||
@@ -8271,6 +8398,62 @@ fi | |||
8271 | 8398 | ||
8272 | done | 8399 | done |
8273 | 8400 | ||
8401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 | ||
8402 | $as_echo_n "checking for library containing fmt_scaled... " >&6; } | ||
8403 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8404 | $as_echo_n "(cached) " >&6 | ||
8405 | else | ||
8406 | ac_func_search_save_LIBS=$LIBS | ||
8407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8408 | /* end confdefs.h. */ | ||
8409 | |||
8410 | /* Override any GCC internal prototype to avoid an error. | ||
8411 | Use char because int might match the return type of a GCC | ||
8412 | builtin and then its argument prototype would still apply. */ | ||
8413 | #ifdef __cplusplus | ||
8414 | extern "C" | ||
8415 | #endif | ||
8416 | char fmt_scaled (); | ||
8417 | int | ||
8418 | main () | ||
8419 | { | ||
8420 | return fmt_scaled (); | ||
8421 | ; | ||
8422 | return 0; | ||
8423 | } | ||
8424 | _ACEOF | ||
8425 | for ac_lib in '' util bsd; do | ||
8426 | if test -z "$ac_lib"; then | ||
8427 | ac_res="none required" | ||
8428 | else | ||
8429 | ac_res=-l$ac_lib | ||
8430 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8431 | fi | ||
8432 | if ac_fn_c_try_link "$LINENO"; then : | ||
8433 | ac_cv_search_fmt_scaled=$ac_res | ||
8434 | fi | ||
8435 | rm -f core conftest.err conftest.$ac_objext \ | ||
8436 | conftest$ac_exeext | ||
8437 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8438 | break | ||
8439 | fi | ||
8440 | done | ||
8441 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8442 | |||
8443 | else | ||
8444 | ac_cv_search_fmt_scaled=no | ||
8445 | fi | ||
8446 | rm conftest.$ac_ext | ||
8447 | LIBS=$ac_func_search_save_LIBS | ||
8448 | fi | ||
8449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 | ||
8450 | $as_echo "$ac_cv_search_fmt_scaled" >&6; } | ||
8451 | ac_res=$ac_cv_search_fmt_scaled | ||
8452 | if test "$ac_res" != no; then : | ||
8453 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8454 | |||
8455 | fi | ||
8456 | |||
8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 | 8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 |
8275 | $as_echo_n "checking for library containing login... " >&6; } | 8458 | $as_echo_n "checking for library containing login... " >&6; } |
8276 | if ${ac_cv_search_login+:} false; then : | 8459 | if ${ac_cv_search_login+:} false; then : |
@@ -8325,11 +8508,233 @@ ac_res=$ac_cv_search_login | |||
8325 | if test "$ac_res" != no; then : | 8508 | if test "$ac_res" != no; then : |
8326 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 8509 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
8327 | 8510 | ||
8328 | $as_echo "#define HAVE_LOGIN 1" >>confdefs.h | 8511 | fi |
8512 | |||
8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 | ||
8514 | $as_echo_n "checking for library containing logout... " >&6; } | ||
8515 | if ${ac_cv_search_logout+:} false; then : | ||
8516 | $as_echo_n "(cached) " >&6 | ||
8517 | else | ||
8518 | ac_func_search_save_LIBS=$LIBS | ||
8519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8520 | /* end confdefs.h. */ | ||
8521 | |||
8522 | /* Override any GCC internal prototype to avoid an error. | ||
8523 | Use char because int might match the return type of a GCC | ||
8524 | builtin and then its argument prototype would still apply. */ | ||
8525 | #ifdef __cplusplus | ||
8526 | extern "C" | ||
8527 | #endif | ||
8528 | char logout (); | ||
8529 | int | ||
8530 | main () | ||
8531 | { | ||
8532 | return logout (); | ||
8533 | ; | ||
8534 | return 0; | ||
8535 | } | ||
8536 | _ACEOF | ||
8537 | for ac_lib in '' util bsd; do | ||
8538 | if test -z "$ac_lib"; then | ||
8539 | ac_res="none required" | ||
8540 | else | ||
8541 | ac_res=-l$ac_lib | ||
8542 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8543 | fi | ||
8544 | if ac_fn_c_try_link "$LINENO"; then : | ||
8545 | ac_cv_search_logout=$ac_res | ||
8546 | fi | ||
8547 | rm -f core conftest.err conftest.$ac_objext \ | ||
8548 | conftest$ac_exeext | ||
8549 | if ${ac_cv_search_logout+:} false; then : | ||
8550 | break | ||
8551 | fi | ||
8552 | done | ||
8553 | if ${ac_cv_search_logout+:} false; then : | ||
8554 | |||
8555 | else | ||
8556 | ac_cv_search_logout=no | ||
8557 | fi | ||
8558 | rm conftest.$ac_ext | ||
8559 | LIBS=$ac_func_search_save_LIBS | ||
8560 | fi | ||
8561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 | ||
8562 | $as_echo "$ac_cv_search_logout" >&6; } | ||
8563 | ac_res=$ac_cv_search_logout | ||
8564 | if test "$ac_res" != no; then : | ||
8565 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8566 | |||
8567 | fi | ||
8568 | |||
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 | ||
8570 | $as_echo_n "checking for library containing logwtmp... " >&6; } | ||
8571 | if ${ac_cv_search_logwtmp+:} false; then : | ||
8572 | $as_echo_n "(cached) " >&6 | ||
8573 | else | ||
8574 | ac_func_search_save_LIBS=$LIBS | ||
8575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8576 | /* end confdefs.h. */ | ||
8577 | |||
8578 | /* Override any GCC internal prototype to avoid an error. | ||
8579 | Use char because int might match the return type of a GCC | ||
8580 | builtin and then its argument prototype would still apply. */ | ||
8581 | #ifdef __cplusplus | ||
8582 | extern "C" | ||
8583 | #endif | ||
8584 | char logwtmp (); | ||
8585 | int | ||
8586 | main () | ||
8587 | { | ||
8588 | return logwtmp (); | ||
8589 | ; | ||
8590 | return 0; | ||
8591 | } | ||
8592 | _ACEOF | ||
8593 | for ac_lib in '' util bsd; do | ||
8594 | if test -z "$ac_lib"; then | ||
8595 | ac_res="none required" | ||
8596 | else | ||
8597 | ac_res=-l$ac_lib | ||
8598 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8599 | fi | ||
8600 | if ac_fn_c_try_link "$LINENO"; then : | ||
8601 | ac_cv_search_logwtmp=$ac_res | ||
8602 | fi | ||
8603 | rm -f core conftest.err conftest.$ac_objext \ | ||
8604 | conftest$ac_exeext | ||
8605 | if ${ac_cv_search_logwtmp+:} false; then : | ||
8606 | break | ||
8607 | fi | ||
8608 | done | ||
8609 | if ${ac_cv_search_logwtmp+:} false; then : | ||
8610 | |||
8611 | else | ||
8612 | ac_cv_search_logwtmp=no | ||
8613 | fi | ||
8614 | rm conftest.$ac_ext | ||
8615 | LIBS=$ac_func_search_save_LIBS | ||
8616 | fi | ||
8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 | ||
8618 | $as_echo "$ac_cv_search_logwtmp" >&6; } | ||
8619 | ac_res=$ac_cv_search_logwtmp | ||
8620 | if test "$ac_res" != no; then : | ||
8621 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8622 | |||
8623 | fi | ||
8624 | |||
8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 | ||
8626 | $as_echo_n "checking for library containing openpty... " >&6; } | ||
8627 | if ${ac_cv_search_openpty+:} false; then : | ||
8628 | $as_echo_n "(cached) " >&6 | ||
8629 | else | ||
8630 | ac_func_search_save_LIBS=$LIBS | ||
8631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8632 | /* end confdefs.h. */ | ||
8633 | |||
8634 | /* Override any GCC internal prototype to avoid an error. | ||
8635 | Use char because int might match the return type of a GCC | ||
8636 | builtin and then its argument prototype would still apply. */ | ||
8637 | #ifdef __cplusplus | ||
8638 | extern "C" | ||
8639 | #endif | ||
8640 | char openpty (); | ||
8641 | int | ||
8642 | main () | ||
8643 | { | ||
8644 | return openpty (); | ||
8645 | ; | ||
8646 | return 0; | ||
8647 | } | ||
8648 | _ACEOF | ||
8649 | for ac_lib in '' util bsd; do | ||
8650 | if test -z "$ac_lib"; then | ||
8651 | ac_res="none required" | ||
8652 | else | ||
8653 | ac_res=-l$ac_lib | ||
8654 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8655 | fi | ||
8656 | if ac_fn_c_try_link "$LINENO"; then : | ||
8657 | ac_cv_search_openpty=$ac_res | ||
8658 | fi | ||
8659 | rm -f core conftest.err conftest.$ac_objext \ | ||
8660 | conftest$ac_exeext | ||
8661 | if ${ac_cv_search_openpty+:} false; then : | ||
8662 | break | ||
8663 | fi | ||
8664 | done | ||
8665 | if ${ac_cv_search_openpty+:} false; then : | ||
8666 | |||
8667 | else | ||
8668 | ac_cv_search_openpty=no | ||
8669 | fi | ||
8670 | rm conftest.$ac_ext | ||
8671 | LIBS=$ac_func_search_save_LIBS | ||
8672 | fi | ||
8673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 | ||
8674 | $as_echo "$ac_cv_search_openpty" >&6; } | ||
8675 | ac_res=$ac_cv_search_openpty | ||
8676 | if test "$ac_res" != no; then : | ||
8677 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8329 | 8678 | ||
8330 | fi | 8679 | fi |
8331 | 8680 | ||
8332 | for ac_func in fmt_scaled logout updwtmp logwtmp | 8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 |
8682 | $as_echo_n "checking for library containing updwtmp... " >&6; } | ||
8683 | if ${ac_cv_search_updwtmp+:} false; then : | ||
8684 | $as_echo_n "(cached) " >&6 | ||
8685 | else | ||
8686 | ac_func_search_save_LIBS=$LIBS | ||
8687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8688 | /* end confdefs.h. */ | ||
8689 | |||
8690 | /* Override any GCC internal prototype to avoid an error. | ||
8691 | Use char because int might match the return type of a GCC | ||
8692 | builtin and then its argument prototype would still apply. */ | ||
8693 | #ifdef __cplusplus | ||
8694 | extern "C" | ||
8695 | #endif | ||
8696 | char updwtmp (); | ||
8697 | int | ||
8698 | main () | ||
8699 | { | ||
8700 | return updwtmp (); | ||
8701 | ; | ||
8702 | return 0; | ||
8703 | } | ||
8704 | _ACEOF | ||
8705 | for ac_lib in '' util bsd; do | ||
8706 | if test -z "$ac_lib"; then | ||
8707 | ac_res="none required" | ||
8708 | else | ||
8709 | ac_res=-l$ac_lib | ||
8710 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8711 | fi | ||
8712 | if ac_fn_c_try_link "$LINENO"; then : | ||
8713 | ac_cv_search_updwtmp=$ac_res | ||
8714 | fi | ||
8715 | rm -f core conftest.err conftest.$ac_objext \ | ||
8716 | conftest$ac_exeext | ||
8717 | if ${ac_cv_search_updwtmp+:} false; then : | ||
8718 | break | ||
8719 | fi | ||
8720 | done | ||
8721 | if ${ac_cv_search_updwtmp+:} false; then : | ||
8722 | |||
8723 | else | ||
8724 | ac_cv_search_updwtmp=no | ||
8725 | fi | ||
8726 | rm conftest.$ac_ext | ||
8727 | LIBS=$ac_func_search_save_LIBS | ||
8728 | fi | ||
8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 | ||
8730 | $as_echo "$ac_cv_search_updwtmp" >&6; } | ||
8731 | ac_res=$ac_cv_search_updwtmp | ||
8732 | if test "$ac_res" != no; then : | ||
8733 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8734 | |||
8735 | fi | ||
8736 | |||
8737 | for ac_func in fmt_scaled login logout openpty updwtmp logwtmp | ||
8333 | do : | 8738 | do : |
8334 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8739 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8335 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 8740 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
@@ -8732,6 +9137,56 @@ rm -f core conftest.err conftest.$ac_objext \ | |||
8732 | fi | 9137 | fi |
8733 | 9138 | ||
8734 | 9139 | ||
9140 | # Check whether user wants to use ldns | ||
9141 | LDNS_MSG="no" | ||
9142 | |||
9143 | # Check whether --with-ldns was given. | ||
9144 | if test "${with_ldns+set}" = set; then : | ||
9145 | withval=$with_ldns; | ||
9146 | if test "x$withval" != "xno" ; then | ||
9147 | |||
9148 | if test "x$withval" != "xyes" ; then | ||
9149 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9150 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
9151 | fi | ||
9152 | |||
9153 | |||
9154 | $as_echo "#define HAVE_LDNS 1" >>confdefs.h | ||
9155 | |||
9156 | LIBS="-lldns $LIBS" | ||
9157 | LDNS_MSG="yes" | ||
9158 | |||
9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 | ||
9160 | $as_echo_n "checking for ldns support... " >&6; } | ||
9161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9162 | /* end confdefs.h. */ | ||
9163 | |||
9164 | #include <stdio.h> | ||
9165 | #include <stdlib.h> | ||
9166 | #include <stdint.h> | ||
9167 | #include <ldns/ldns.h> | ||
9168 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } | ||
9169 | |||
9170 | |||
9171 | _ACEOF | ||
9172 | if ac_fn_c_try_link "$LINENO"; then : | ||
9173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9174 | $as_echo "yes" >&6; } | ||
9175 | else | ||
9176 | |||
9177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9178 | $as_echo "no" >&6; } | ||
9179 | as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 | ||
9180 | |||
9181 | fi | ||
9182 | rm -f core conftest.err conftest.$ac_objext \ | ||
9183 | conftest$ac_exeext conftest.$ac_ext | ||
9184 | fi | ||
9185 | |||
9186 | |||
9187 | fi | ||
9188 | |||
9189 | |||
8735 | # Check whether user wants libedit support | 9190 | # Check whether user wants libedit support |
8736 | LIBEDIT_MSG="no" | 9191 | LIBEDIT_MSG="no" |
8737 | 9192 | ||
@@ -8995,6 +9450,12 @@ done | |||
8995 | 9450 | ||
8996 | $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h | 9451 | $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h |
8997 | 9452 | ||
9453 | if test "$sol2ver" -eq 11; then | ||
9454 | SSHDLIBS="$SSHDLIBS -lscf" | ||
9455 | |||
9456 | $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h | ||
9457 | |||
9458 | fi | ||
8998 | ;; | 9459 | ;; |
8999 | linux) | 9460 | linux) |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 | 9461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 |
@@ -9081,7 +9542,6 @@ for ac_func in \ | |||
9081 | nsleep \ | 9542 | nsleep \ |
9082 | ogetaddrinfo \ | 9543 | ogetaddrinfo \ |
9083 | openlog_r \ | 9544 | openlog_r \ |
9084 | openpty \ | ||
9085 | poll \ | 9545 | poll \ |
9086 | prctl \ | 9546 | prctl \ |
9087 | pstat \ | 9547 | pstat \ |
@@ -9116,6 +9576,7 @@ for ac_func in \ | |||
9116 | strlcat \ | 9576 | strlcat \ |
9117 | strlcpy \ | 9577 | strlcpy \ |
9118 | strmode \ | 9578 | strmode \ |
9579 | strnlen \ | ||
9119 | strnvis \ | 9580 | strnvis \ |
9120 | strptime \ | 9581 | strptime \ |
9121 | strtonum \ | 9582 | strtonum \ |
@@ -10647,7 +11108,7 @@ fi | |||
10647 | rm -f core conftest.err conftest.$ac_objext \ | 11108 | rm -f core conftest.err conftest.$ac_objext \ |
10648 | conftest$ac_exeext conftest.$ac_ext | 11109 | conftest$ac_exeext conftest.$ac_ext |
10649 | 11110 | ||
10650 | for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method | 11111 | for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method HMAC_CTX_init |
10651 | do : | 11112 | do : |
10652 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11113 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10653 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 11114 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
@@ -11398,6 +11859,25 @@ elif test "x$sandbox_arg" = "xdarwin" || \ | |||
11398 | 11859 | ||
11399 | $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h | 11860 | $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h |
11400 | 11861 | ||
11862 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | ||
11863 | ( test -z "$sandbox_arg" && \ | ||
11864 | test "x$have_seccomp_filter" == "x1" && \ | ||
11865 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | ||
11866 | test "x$have_seccomp_audit_arch" = "x1" && \ | ||
11867 | test "x$have_linux_no_new_privs" = "x1" && \ | ||
11868 | test "x$ac_cv_func_prctl" = "xyes" ) ; then | ||
11869 | test "x$have_seccomp_audit_arch" != "x1" && \ | ||
11870 | as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 | ||
11871 | test "x$have_linux_no_new_privs" != "x1" && \ | ||
11872 | as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 | ||
11873 | test "x$have_seccomp_filter" != "x1" && \ | ||
11874 | as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 | ||
11875 | test "x$ac_cv_func_prctl" != "xyes" && \ | ||
11876 | as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 | ||
11877 | SANDBOX_STYLE="seccomp_filter" | ||
11878 | |||
11879 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h | ||
11880 | |||
11401 | elif test "x$sandbox_arg" = "xrlimit" || \ | 11881 | elif test "x$sandbox_arg" = "xrlimit" || \ |
11402 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" ) ; then | 11882 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" ) ; then |
11403 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | 11883 | test "x$ac_cv_func_setrlimit" != "xyes" && \ |
@@ -11456,39 +11936,6 @@ fi | |||
11456 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 11936 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
11457 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 11937 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
11458 | # This bug is HP SR number 8606223364. | 11938 | # This bug is HP SR number 8606223364. |
11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | ||
11460 | $as_echo_n "checking size of char... " >&6; } | ||
11461 | if ${ac_cv_sizeof_char+:} false; then : | ||
11462 | $as_echo_n "(cached) " >&6 | ||
11463 | else | ||
11464 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | ||
11465 | |||
11466 | else | ||
11467 | if test "$ac_cv_type_char" = yes; then | ||
11468 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
11469 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11470 | as_fn_error 77 "cannot compute sizeof (char) | ||
11471 | See \`config.log' for more details" "$LINENO" 5; } | ||
11472 | else | ||
11473 | ac_cv_sizeof_char=0 | ||
11474 | fi | ||
11475 | fi | ||
11476 | |||
11477 | fi | ||
11478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | ||
11479 | $as_echo "$ac_cv_sizeof_char" >&6; } | ||
11480 | |||
11481 | |||
11482 | |||
11483 | cat >>confdefs.h <<_ACEOF | ||
11484 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
11485 | _ACEOF | ||
11486 | |||
11487 | |||
11488 | # The cast to long int works around a bug in the HP C Compiler | ||
11489 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
11490 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
11491 | # This bug is HP SR number 8606223364. | ||
11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 | 11939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 |
11493 | $as_echo_n "checking size of short int... " >&6; } | 11940 | $as_echo_n "checking size of short int... " >&6; } |
11494 | if ${ac_cv_sizeof_short_int+:} false; then : | 11941 | if ${ac_cv_sizeof_short_int+:} false; then : |