diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3204 |
1 files changed, 2113 insertions, 1091 deletions
@@ -1,5 +1,5 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # From configure.ac Revision: 1.322.2.6 . | 2 | # From configure.ac Revision: 1.372 . |
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.61 for OpenSSH Portable. | 4 | # Generated by GNU Autoconf 2.61 for OpenSSH Portable. |
5 | # | 5 | # |
@@ -692,6 +692,7 @@ STARTUP_SCRIPT_SHELL | |||
692 | LOGIN_PROGRAM_FALLBACK | 692 | LOGIN_PROGRAM_FALLBACK |
693 | PATH_PASSWD_PROG | 693 | PATH_PASSWD_PROG |
694 | LD | 694 | LD |
695 | SSHDLIBS | ||
695 | LIBWRAP | 696 | LIBWRAP |
696 | LIBEDIT | 697 | LIBEDIT |
697 | LIBPAM | 698 | LIBPAM |
@@ -1327,20 +1328,23 @@ Optional Packages: | |||
1327 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | 1328 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1328 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | 1329 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1329 | --without-rpath Disable auto-added -R linker paths | 1330 | --without-rpath Disable auto-added -R linker paths |
1330 | --with-osfsia Enable Digital Unix SIA | ||
1331 | --with-cflags Specify additional flags to pass to compiler | 1331 | --with-cflags Specify additional flags to pass to compiler |
1332 | --with-cppflags Specify additional flags to pass to preprocessor | 1332 | --with-cppflags Specify additional flags to pass to preprocessor |
1333 | --with-ldflags Specify additional flags to pass to linker | 1333 | --with-ldflags Specify additional flags to pass to linker |
1334 | --with-libs Specify additional libraries to link with | 1334 | --with-libs Specify additional libraries to link with |
1335 | --with-Werror Build main code with -Werror | 1335 | --with-Werror Build main code with -Werror |
1336 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1337 | --with-osfsia Enable Digital Unix SIA | ||
1336 | --with-zlib=PATH Use zlib in PATH | 1338 | --with-zlib=PATH Use zlib in PATH |
1337 | --without-zlib-version-check Disable zlib version check | 1339 | --without-zlib-version-check Disable zlib version check |
1338 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | 1340 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) |
1339 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | 1341 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) |
1340 | --with-libedit[=PATH] Enable libedit support for sftp | 1342 | --with-libedit[=PATH] Enable libedit support for sftp |
1341 | --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) | 1343 | --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) |
1342 | --with-pam Enable PAM support | ||
1343 | --with-ssl-dir=PATH Specify path to OpenSSL installation | 1344 | --with-ssl-dir=PATH Specify path to OpenSSL installation |
1345 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1346 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1347 | --with-pam Enable PAM support | ||
1344 | --with-rand-helper Use subprocess to gather strong randomness | 1348 | --with-rand-helper Use subprocess to gather strong randomness |
1345 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | 1349 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT |
1346 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | 1350 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) |
@@ -1348,7 +1352,7 @@ Optional Packages: | |||
1348 | --with-privsep-user=user Specify non-privileged user for privilege separation | 1352 | --with-privsep-user=user Specify non-privileged user for privilege separation |
1349 | --with-sectok Enable smartcard support using libsectok | 1353 | --with-sectok Enable smartcard support using libsectok |
1350 | --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) | 1354 | --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) |
1351 | --with-selinux[=LIBSELINUX-PATH] Enable SELinux support | 1355 | --with-selinux Enable SELinux support |
1352 | --with-kerberos5=PATH Enable Kerberos 5 support | 1356 | --with-kerberos5=PATH Enable Kerberos 5 support |
1353 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | 1357 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) |
1354 | --with-xauth=PATH Specify path to xauth program | 1358 | --with-xauth=PATH Specify path to xauth program |
@@ -5477,16 +5481,597 @@ if test "${with_rpath+set}" = set; then | |||
5477 | fi | 5481 | fi |
5478 | 5482 | ||
5479 | 5483 | ||
5484 | # Allow user to specify flags | ||
5485 | |||
5486 | # Check whether --with-cflags was given. | ||
5487 | if test "${with_cflags+set}" = set; then | ||
5488 | withval=$with_cflags; | ||
5489 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5490 | test "x${withval}" != "xyes"; then | ||
5491 | CFLAGS="$CFLAGS $withval" | ||
5492 | fi | ||
5493 | |||
5494 | |||
5495 | fi | ||
5496 | |||
5497 | |||
5498 | # Check whether --with-cppflags was given. | ||
5499 | if test "${with_cppflags+set}" = set; then | ||
5500 | withval=$with_cppflags; | ||
5501 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5502 | test "x${withval}" != "xyes"; then | ||
5503 | CPPFLAGS="$CPPFLAGS $withval" | ||
5504 | fi | ||
5505 | |||
5506 | |||
5507 | fi | ||
5508 | |||
5509 | |||
5510 | # Check whether --with-ldflags was given. | ||
5511 | if test "${with_ldflags+set}" = set; then | ||
5512 | withval=$with_ldflags; | ||
5513 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5514 | test "x${withval}" != "xyes"; then | ||
5515 | LDFLAGS="$LDFLAGS $withval" | ||
5516 | fi | ||
5517 | |||
5518 | |||
5519 | fi | ||
5520 | |||
5521 | |||
5522 | # Check whether --with-libs was given. | ||
5523 | if test "${with_libs+set}" = set; then | ||
5524 | withval=$with_libs; | ||
5525 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5526 | test "x${withval}" != "xyes"; then | ||
5527 | LIBS="$LIBS $withval" | ||
5528 | fi | ||
5529 | |||
5530 | |||
5531 | fi | ||
5532 | |||
5533 | |||
5534 | # Check whether --with-Werror was given. | ||
5535 | if test "${with_Werror+set}" = set; then | ||
5536 | withval=$with_Werror; | ||
5537 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
5538 | werror_flags="-Werror" | ||
5539 | if test "x${withval}" != "xyes"; then | ||
5540 | werror_flags="$withval" | ||
5541 | fi | ||
5542 | fi | ||
5543 | |||
5544 | |||
5545 | fi | ||
5546 | |||
5547 | |||
5548 | |||
5549 | |||
5550 | |||
5551 | |||
5552 | |||
5553 | |||
5554 | |||
5555 | |||
5556 | |||
5557 | |||
5558 | |||
5559 | |||
5560 | |||
5561 | |||
5562 | |||
5563 | |||
5564 | |||
5565 | |||
5566 | |||
5567 | |||
5568 | |||
5569 | |||
5570 | |||
5571 | |||
5572 | |||
5573 | |||
5574 | |||
5575 | |||
5576 | |||
5577 | |||
5578 | |||
5579 | |||
5580 | |||
5581 | |||
5582 | |||
5583 | |||
5584 | |||
5585 | |||
5586 | |||
5587 | |||
5588 | |||
5589 | |||
5590 | |||
5591 | |||
5592 | |||
5593 | |||
5594 | |||
5595 | |||
5596 | |||
5597 | |||
5598 | |||
5599 | |||
5600 | |||
5601 | |||
5602 | |||
5603 | |||
5604 | |||
5605 | |||
5606 | |||
5607 | for ac_header in \ | ||
5608 | bstring.h \ | ||
5609 | crypt.h \ | ||
5610 | crypto/sha2.h \ | ||
5611 | dirent.h \ | ||
5612 | endian.h \ | ||
5613 | features.h \ | ||
5614 | fcntl.h \ | ||
5615 | floatingpoint.h \ | ||
5616 | getopt.h \ | ||
5617 | glob.h \ | ||
5618 | ia.h \ | ||
5619 | iaf.h \ | ||
5620 | limits.h \ | ||
5621 | login.h \ | ||
5622 | maillock.h \ | ||
5623 | ndir.h \ | ||
5624 | net/if_tun.h \ | ||
5625 | netdb.h \ | ||
5626 | netgroup.h \ | ||
5627 | pam/pam_appl.h \ | ||
5628 | paths.h \ | ||
5629 | pty.h \ | ||
5630 | readpassphrase.h \ | ||
5631 | rpc/types.h \ | ||
5632 | security/pam_appl.h \ | ||
5633 | sha2.h \ | ||
5634 | shadow.h \ | ||
5635 | stddef.h \ | ||
5636 | stdint.h \ | ||
5637 | string.h \ | ||
5638 | strings.h \ | ||
5639 | sys/audit.h \ | ||
5640 | sys/bitypes.h \ | ||
5641 | sys/bsdtty.h \ | ||
5642 | sys/cdefs.h \ | ||
5643 | sys/dir.h \ | ||
5644 | sys/mman.h \ | ||
5645 | sys/ndir.h \ | ||
5646 | sys/prctl.h \ | ||
5647 | sys/pstat.h \ | ||
5648 | sys/select.h \ | ||
5649 | sys/stat.h \ | ||
5650 | sys/stream.h \ | ||
5651 | sys/stropts.h \ | ||
5652 | sys/strtio.h \ | ||
5653 | sys/sysmacros.h \ | ||
5654 | sys/time.h \ | ||
5655 | sys/timers.h \ | ||
5656 | sys/un.h \ | ||
5657 | time.h \ | ||
5658 | tmpdir.h \ | ||
5659 | ttyent.h \ | ||
5660 | unistd.h \ | ||
5661 | usersec.h \ | ||
5662 | util.h \ | ||
5663 | utime.h \ | ||
5664 | utmp.h \ | ||
5665 | utmpx.h \ | ||
5666 | vis.h \ | ||
5667 | |||
5668 | do | ||
5669 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5671 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5672 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5673 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5675 | fi | ||
5676 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5677 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5678 | echo "${ECHO_T}$ac_res" >&6; } | ||
5679 | else | ||
5680 | # Is the header compilable? | ||
5681 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5682 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
5683 | cat >conftest.$ac_ext <<_ACEOF | ||
5684 | /* confdefs.h. */ | ||
5685 | _ACEOF | ||
5686 | cat confdefs.h >>conftest.$ac_ext | ||
5687 | cat >>conftest.$ac_ext <<_ACEOF | ||
5688 | /* end confdefs.h. */ | ||
5689 | $ac_includes_default | ||
5690 | #include <$ac_header> | ||
5691 | _ACEOF | ||
5692 | rm -f conftest.$ac_objext | ||
5693 | if { (ac_try="$ac_compile" | ||
5694 | case "(($ac_try" in | ||
5695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5696 | *) ac_try_echo=$ac_try;; | ||
5697 | esac | ||
5698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5699 | (eval "$ac_compile") 2>conftest.er1 | ||
5700 | ac_status=$? | ||
5701 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5702 | rm -f conftest.er1 | ||
5703 | cat conftest.err >&5 | ||
5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5705 | (exit $ac_status); } && { | ||
5706 | test -z "$ac_c_werror_flag" || | ||
5707 | test ! -s conftest.err | ||
5708 | } && test -s conftest.$ac_objext; then | ||
5709 | ac_header_compiler=yes | ||
5710 | else | ||
5711 | echo "$as_me: failed program was:" >&5 | ||
5712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5713 | |||
5714 | ac_header_compiler=no | ||
5715 | fi | ||
5716 | |||
5717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5718 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5719 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
5720 | |||
5721 | # Is the header present? | ||
5722 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5723 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
5724 | cat >conftest.$ac_ext <<_ACEOF | ||
5725 | /* confdefs.h. */ | ||
5726 | _ACEOF | ||
5727 | cat confdefs.h >>conftest.$ac_ext | ||
5728 | cat >>conftest.$ac_ext <<_ACEOF | ||
5729 | /* end confdefs.h. */ | ||
5730 | #include <$ac_header> | ||
5731 | _ACEOF | ||
5732 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5733 | case "(($ac_try" in | ||
5734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5735 | *) ac_try_echo=$ac_try;; | ||
5736 | esac | ||
5737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5738 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5739 | ac_status=$? | ||
5740 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5741 | rm -f conftest.er1 | ||
5742 | cat conftest.err >&5 | ||
5743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5744 | (exit $ac_status); } >/dev/null && { | ||
5745 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
5746 | test ! -s conftest.err | ||
5747 | }; then | ||
5748 | ac_header_preproc=yes | ||
5749 | else | ||
5750 | echo "$as_me: failed program was:" >&5 | ||
5751 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5752 | |||
5753 | ac_header_preproc=no | ||
5754 | fi | ||
5755 | |||
5756 | rm -f conftest.err conftest.$ac_ext | ||
5757 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5758 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
5759 | |||
5760 | # So? What about this header? | ||
5761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
5762 | yes:no: ) | ||
5763 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5764 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5765 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
5766 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
5767 | ac_header_preproc=yes | ||
5768 | ;; | ||
5769 | no:yes:* ) | ||
5770 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5771 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5772 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5773 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5774 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
5775 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
5776 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
5777 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
5778 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5779 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
5780 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
5781 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
5782 | ( cat <<\_ASBOX | ||
5783 | ## ------------------------------------------- ## | ||
5784 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
5785 | ## ------------------------------------------- ## | ||
5786 | _ASBOX | ||
5787 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
5788 | ;; | ||
5789 | esac | ||
5790 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5791 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5792 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5794 | else | ||
5795 | eval "$as_ac_Header=\$ac_header_preproc" | ||
5796 | fi | ||
5797 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5798 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5799 | echo "${ECHO_T}$ac_res" >&6; } | ||
5800 | |||
5801 | fi | ||
5802 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5803 | cat >>confdefs.h <<_ACEOF | ||
5804 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5805 | _ACEOF | ||
5806 | |||
5807 | fi | ||
5808 | |||
5809 | done | ||
5810 | |||
5811 | |||
5812 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
5813 | |||
5814 | for ac_header in lastlog.h | ||
5815 | do | ||
5816 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5817 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5818 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5819 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5821 | else | ||
5822 | cat >conftest.$ac_ext <<_ACEOF | ||
5823 | /* confdefs.h. */ | ||
5824 | _ACEOF | ||
5825 | cat confdefs.h >>conftest.$ac_ext | ||
5826 | cat >>conftest.$ac_ext <<_ACEOF | ||
5827 | /* end confdefs.h. */ | ||
5828 | |||
5829 | #ifdef HAVE_SYS_TIME_H | ||
5830 | # include <sys/time.h> | ||
5831 | #endif | ||
5832 | |||
5833 | |||
5834 | #include <$ac_header> | ||
5835 | _ACEOF | ||
5836 | rm -f conftest.$ac_objext | ||
5837 | if { (ac_try="$ac_compile" | ||
5838 | case "(($ac_try" in | ||
5839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5840 | *) ac_try_echo=$ac_try;; | ||
5841 | esac | ||
5842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5843 | (eval "$ac_compile") 2>conftest.er1 | ||
5844 | ac_status=$? | ||
5845 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5846 | rm -f conftest.er1 | ||
5847 | cat conftest.err >&5 | ||
5848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5849 | (exit $ac_status); } && { | ||
5850 | test -z "$ac_c_werror_flag" || | ||
5851 | test ! -s conftest.err | ||
5852 | } && test -s conftest.$ac_objext; then | ||
5853 | eval "$as_ac_Header=yes" | ||
5854 | else | ||
5855 | echo "$as_me: failed program was:" >&5 | ||
5856 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5857 | |||
5858 | eval "$as_ac_Header=no" | ||
5859 | fi | ||
5860 | |||
5861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5862 | fi | ||
5863 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5864 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5865 | echo "${ECHO_T}$ac_res" >&6; } | ||
5866 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5867 | cat >>confdefs.h <<_ACEOF | ||
5868 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5869 | _ACEOF | ||
5870 | |||
5871 | fi | ||
5872 | |||
5873 | done | ||
5874 | |||
5875 | |||
5876 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
5877 | |||
5878 | for ac_header in sys/ptms.h | ||
5879 | do | ||
5880 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5881 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5882 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5883 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5885 | else | ||
5886 | cat >conftest.$ac_ext <<_ACEOF | ||
5887 | /* confdefs.h. */ | ||
5888 | _ACEOF | ||
5889 | cat confdefs.h >>conftest.$ac_ext | ||
5890 | cat >>conftest.$ac_ext <<_ACEOF | ||
5891 | /* end confdefs.h. */ | ||
5892 | |||
5893 | #ifdef HAVE_SYS_STREAM_H | ||
5894 | # include <sys/stream.h> | ||
5895 | #endif | ||
5896 | |||
5897 | |||
5898 | #include <$ac_header> | ||
5899 | _ACEOF | ||
5900 | rm -f conftest.$ac_objext | ||
5901 | if { (ac_try="$ac_compile" | ||
5902 | case "(($ac_try" in | ||
5903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5904 | *) ac_try_echo=$ac_try;; | ||
5905 | esac | ||
5906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5907 | (eval "$ac_compile") 2>conftest.er1 | ||
5908 | ac_status=$? | ||
5909 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5910 | rm -f conftest.er1 | ||
5911 | cat conftest.err >&5 | ||
5912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5913 | (exit $ac_status); } && { | ||
5914 | test -z "$ac_c_werror_flag" || | ||
5915 | test ! -s conftest.err | ||
5916 | } && test -s conftest.$ac_objext; then | ||
5917 | eval "$as_ac_Header=yes" | ||
5918 | else | ||
5919 | echo "$as_me: failed program was:" >&5 | ||
5920 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5921 | |||
5922 | eval "$as_ac_Header=no" | ||
5923 | fi | ||
5924 | |||
5925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5926 | fi | ||
5927 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5928 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5929 | echo "${ECHO_T}$ac_res" >&6; } | ||
5930 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5931 | cat >>confdefs.h <<_ACEOF | ||
5932 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5933 | _ACEOF | ||
5934 | |||
5935 | fi | ||
5936 | |||
5937 | done | ||
5938 | |||
5939 | |||
5940 | # login_cap.h requires sys/types.h on NetBSD | ||
5941 | |||
5942 | for ac_header in login_cap.h | ||
5943 | do | ||
5944 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5945 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5947 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5949 | else | ||
5950 | cat >conftest.$ac_ext <<_ACEOF | ||
5951 | /* confdefs.h. */ | ||
5952 | _ACEOF | ||
5953 | cat confdefs.h >>conftest.$ac_ext | ||
5954 | cat >>conftest.$ac_ext <<_ACEOF | ||
5955 | /* end confdefs.h. */ | ||
5956 | |||
5957 | #include <sys/types.h> | ||
5958 | |||
5959 | |||
5960 | #include <$ac_header> | ||
5961 | _ACEOF | ||
5962 | rm -f conftest.$ac_objext | ||
5963 | if { (ac_try="$ac_compile" | ||
5964 | case "(($ac_try" in | ||
5965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5966 | *) ac_try_echo=$ac_try;; | ||
5967 | esac | ||
5968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5969 | (eval "$ac_compile") 2>conftest.er1 | ||
5970 | ac_status=$? | ||
5971 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5972 | rm -f conftest.er1 | ||
5973 | cat conftest.err >&5 | ||
5974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5975 | (exit $ac_status); } && { | ||
5976 | test -z "$ac_c_werror_flag" || | ||
5977 | test ! -s conftest.err | ||
5978 | } && test -s conftest.$ac_objext; then | ||
5979 | eval "$as_ac_Header=yes" | ||
5980 | else | ||
5981 | echo "$as_me: failed program was:" >&5 | ||
5982 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5983 | |||
5984 | eval "$as_ac_Header=no" | ||
5985 | fi | ||
5986 | |||
5987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5988 | fi | ||
5989 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5990 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5991 | echo "${ECHO_T}$ac_res" >&6; } | ||
5992 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5993 | cat >>confdefs.h <<_ACEOF | ||
5994 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5995 | _ACEOF | ||
5996 | |||
5997 | fi | ||
5998 | |||
5999 | done | ||
6000 | |||
6001 | |||
6002 | # Messages for features tested for in target-specific section | ||
6003 | SIA_MSG="no" | ||
6004 | SPC_MSG="no" | ||
6005 | |||
5480 | # Check for some target-specific stuff | 6006 | # Check for some target-specific stuff |
5481 | case "$host" in | 6007 | case "$host" in |
5482 | *-*-aix*) | 6008 | *-*-aix*) |
6009 | # Some versions of VAC won't allow macro redefinitions at | ||
6010 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6011 | # particularly with older versions of vac or xlc. | ||
6012 | # It also throws errors about null macro argments, but these are | ||
6013 | # not fatal. | ||
6014 | { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 | ||
6015 | echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; } | ||
6016 | cat >conftest.$ac_ext <<_ACEOF | ||
6017 | /* confdefs.h. */ | ||
6018 | _ACEOF | ||
6019 | cat confdefs.h >>conftest.$ac_ext | ||
6020 | cat >>conftest.$ac_ext <<_ACEOF | ||
6021 | /* end confdefs.h. */ | ||
6022 | |||
6023 | #define testmacro foo | ||
6024 | #define testmacro bar | ||
6025 | int main(void) { exit(0); } | ||
6026 | |||
6027 | _ACEOF | ||
6028 | rm -f conftest.$ac_objext | ||
6029 | if { (ac_try="$ac_compile" | ||
6030 | case "(($ac_try" in | ||
6031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6032 | *) ac_try_echo=$ac_try;; | ||
6033 | esac | ||
6034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6035 | (eval "$ac_compile") 2>conftest.er1 | ||
6036 | ac_status=$? | ||
6037 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6038 | rm -f conftest.er1 | ||
6039 | cat conftest.err >&5 | ||
6040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6041 | (exit $ac_status); } && { | ||
6042 | test -z "$ac_c_werror_flag" || | ||
6043 | test ! -s conftest.err | ||
6044 | } && test -s conftest.$ac_objext; then | ||
6045 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6046 | echo "${ECHO_T}yes" >&6; } | ||
6047 | else | ||
6048 | echo "$as_me: failed program was:" >&5 | ||
6049 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6050 | |||
6051 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6052 | echo "${ECHO_T}no" >&6; } | ||
6053 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6054 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6055 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6056 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6057 | |||
6058 | |||
6059 | fi | ||
6060 | |||
6061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6062 | |||
5483 | { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | 6063 | { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 |
5484 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } | 6064 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } |
5485 | if (test -z "$blibpath"); then | 6065 | if (test -z "$blibpath"); then |
5486 | blibpath="/usr/lib:/lib" | 6066 | blibpath="/usr/lib:/lib" |
5487 | fi | 6067 | fi |
5488 | saved_LDFLAGS="$LDFLAGS" | 6068 | saved_LDFLAGS="$LDFLAGS" |
5489 | for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do | 6069 | if test "$GCC" = "yes"; then |
6070 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6071 | else | ||
6072 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6073 | fi | ||
6074 | for tryflags in $flags ;do | ||
5490 | if (test -z "$blibflags"); then | 6075 | if (test -z "$blibflags"); then |
5491 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | 6076 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" |
5492 | cat >conftest.$ac_ext <<_ACEOF | 6077 | cat >conftest.$ac_ext <<_ACEOF |
@@ -6257,6 +6842,69 @@ _ACEOF | |||
6257 | fi | 6842 | fi |
6258 | done | 6843 | done |
6259 | 6844 | ||
6845 | { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 | ||
6846 | echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; } | ||
6847 | if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then | ||
6848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6849 | else | ||
6850 | cat >conftest.$ac_ext <<_ACEOF | ||
6851 | /* confdefs.h. */ | ||
6852 | _ACEOF | ||
6853 | cat confdefs.h >>conftest.$ac_ext | ||
6854 | cat >>conftest.$ac_ext <<_ACEOF | ||
6855 | /* end confdefs.h. */ | ||
6856 | #include <limits.h> | ||
6857 | #include <fcntl.h> | ||
6858 | |||
6859 | |||
6860 | int | ||
6861 | main () | ||
6862 | { | ||
6863 | #ifndef F_CLOSEM | ||
6864 | (void) F_CLOSEM; | ||
6865 | #endif | ||
6866 | |||
6867 | ; | ||
6868 | return 0; | ||
6869 | } | ||
6870 | _ACEOF | ||
6871 | rm -f conftest.$ac_objext | ||
6872 | if { (ac_try="$ac_compile" | ||
6873 | case "(($ac_try" in | ||
6874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6875 | *) ac_try_echo=$ac_try;; | ||
6876 | esac | ||
6877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6878 | (eval "$ac_compile") 2>conftest.er1 | ||
6879 | ac_status=$? | ||
6880 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6881 | rm -f conftest.er1 | ||
6882 | cat conftest.err >&5 | ||
6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6884 | (exit $ac_status); } && { | ||
6885 | test -z "$ac_c_werror_flag" || | ||
6886 | test ! -s conftest.err | ||
6887 | } && test -s conftest.$ac_objext; then | ||
6888 | ac_cv_have_decl_F_CLOSEM=yes | ||
6889 | else | ||
6890 | echo "$as_me: failed program was:" >&5 | ||
6891 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6892 | |||
6893 | ac_cv_have_decl_F_CLOSEM=no | ||
6894 | fi | ||
6895 | |||
6896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6897 | fi | ||
6898 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 | ||
6899 | echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; } | ||
6900 | if test $ac_cv_have_decl_F_CLOSEM = yes; then | ||
6901 | |||
6902 | cat >>confdefs.h <<\_ACEOF | ||
6903 | #define HAVE_FCNTL_CLOSEM 1 | ||
6904 | _ACEOF | ||
6905 | |||
6906 | fi | ||
6907 | |||
6260 | check_for_aix_broken_getaddrinfo=1 | 6908 | check_for_aix_broken_getaddrinfo=1 |
6261 | 6909 | ||
6262 | cat >>confdefs.h <<\_ACEOF | 6910 | cat >>confdefs.h <<\_ACEOF |
@@ -6298,10 +6946,15 @@ cat >>confdefs.h <<\_ACEOF | |||
6298 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | 6946 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 |
6299 | _ACEOF | 6947 | _ACEOF |
6300 | 6948 | ||
6949 | |||
6950 | cat >>confdefs.h <<\_ACEOF | ||
6951 | #define PTY_ZEROREAD 1 | ||
6952 | _ACEOF | ||
6953 | |||
6301 | ;; | 6954 | ;; |
6302 | *-*-cygwin*) | 6955 | *-*-cygwin*) |
6303 | check_for_libcrypt_later=1 | 6956 | check_for_libcrypt_later=1 |
6304 | LIBS="$LIBS /usr/lib/textmode.o" | 6957 | LIBS="$LIBS /usr/lib/textreadmode.o" |
6305 | 6958 | ||
6306 | cat >>confdefs.h <<\_ACEOF | 6959 | cat >>confdefs.h <<\_ACEOF |
6307 | #define HAVE_CYGWIN 1 | 6960 | #define HAVE_CYGWIN 1 |
@@ -6433,9 +7086,24 @@ cat >>confdefs.h <<_ACEOF | |||
6433 | #define BIND_8_COMPAT 1 | 7086 | #define BIND_8_COMPAT 1 |
6434 | _ACEOF | 7087 | _ACEOF |
6435 | 7088 | ||
6436 | { echo "$as_me:$LINENO: checking if we have the Security Authorization Session API" >&5 | 7089 | |
7090 | cat >>confdefs.h <<\_ACEOF | ||
7091 | #define SSH_TUN_FREEBSD 1 | ||
7092 | _ACEOF | ||
7093 | |||
7094 | |||
7095 | cat >>confdefs.h <<\_ACEOF | ||
7096 | #define SSH_TUN_COMPAT_AF 1 | ||
7097 | _ACEOF | ||
7098 | |||
7099 | |||
7100 | cat >>confdefs.h <<\_ACEOF | ||
7101 | #define SSH_TUN_PREPEND_AF 1 | ||
7102 | _ACEOF | ||
7103 | |||
7104 | { echo "$as_me:$LINENO: checking if we have the Security Authorization Session API" >&5 | ||
6437 | echo $ECHO_N "checking if we have the Security Authorization Session API... $ECHO_C" >&6; } | 7105 | echo $ECHO_N "checking if we have the Security Authorization Session API... $ECHO_C" >&6; } |
6438 | cat >conftest.$ac_ext <<_ACEOF | 7106 | cat >conftest.$ac_ext <<_ACEOF |
6439 | /* confdefs.h. */ | 7107 | /* confdefs.h. */ |
6440 | _ACEOF | 7108 | _ACEOF |
6441 | cat confdefs.h >>conftest.$ac_ext | 7109 | cat confdefs.h >>conftest.$ac_ext |
@@ -6473,22 +7141,22 @@ cat >>confdefs.h <<\_ACEOF | |||
6473 | #define USE_SECURITY_SESSION_API 1 | 7141 | #define USE_SECURITY_SESSION_API 1 |
6474 | _ACEOF | 7142 | _ACEOF |
6475 | 7143 | ||
6476 | LIBS="$LIBS -framework Security" | 7144 | LIBS="$LIBS -framework Security" |
6477 | { echo "$as_me:$LINENO: result: yes" >&5 | 7145 | { echo "$as_me:$LINENO: result: yes" >&5 |
6478 | echo "${ECHO_T}yes" >&6; } | 7146 | echo "${ECHO_T}yes" >&6; } |
6479 | else | 7147 | else |
6480 | echo "$as_me: failed program was:" >&5 | 7148 | echo "$as_me: failed program was:" >&5 |
6481 | sed 's/^/| /' conftest.$ac_ext >&5 | 7149 | sed 's/^/| /' conftest.$ac_ext >&5 |
6482 | 7150 | ||
6483 | ac_cv_use_security_session_api="no" | 7151 | ac_cv_use_security_session_api="no" |
6484 | { echo "$as_me:$LINENO: result: no" >&5 | 7152 | { echo "$as_me:$LINENO: result: no" >&5 |
6485 | echo "${ECHO_T}no" >&6; } | 7153 | echo "${ECHO_T}no" >&6; } |
6486 | fi | 7154 | fi |
6487 | 7155 | ||
6488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 7156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6489 | { echo "$as_me:$LINENO: checking if we have an in-memory credentials cache" >&5 | 7157 | { echo "$as_me:$LINENO: checking if we have an in-memory credentials cache" >&5 |
6490 | echo $ECHO_N "checking if we have an in-memory credentials cache... $ECHO_C" >&6; } | 7158 | echo $ECHO_N "checking if we have an in-memory credentials cache... $ECHO_C" >&6; } |
6491 | cat >conftest.$ac_ext <<_ACEOF | 7159 | cat >conftest.$ac_ext <<_ACEOF |
6492 | /* confdefs.h. */ | 7160 | /* confdefs.h. */ |
6493 | _ACEOF | 7161 | _ACEOF |
6494 | cat confdefs.h >>conftest.$ac_ext | 7162 | cat confdefs.h >>conftest.$ac_ext |
@@ -6499,7 +7167,7 @@ int | |||
6499 | main () | 7167 | main () |
6500 | { | 7168 | { |
6501 | cc_context_t c; | 7169 | cc_context_t c; |
6502 | (void) cc_initialize (&c, 0, NULL, NULL); | 7170 | (void) cc_initialize (&c, 0, NULL, NULL); |
6503 | ; | 7171 | ; |
6504 | return 0; | 7172 | return 0; |
6505 | } | 7173 | } |
@@ -6526,14 +7194,14 @@ cat >>confdefs.h <<\_ACEOF | |||
6526 | #define USE_CCAPI 1 | 7194 | #define USE_CCAPI 1 |
6527 | _ACEOF | 7195 | _ACEOF |
6528 | 7196 | ||
6529 | LIBS="$LIBS -framework Security" | 7197 | LIBS="$LIBS -framework Security" |
6530 | { echo "$as_me:$LINENO: result: yes" >&5 | 7198 | { echo "$as_me:$LINENO: result: yes" >&5 |
6531 | echo "${ECHO_T}yes" >&6; } | 7199 | echo "${ECHO_T}yes" >&6; } |
6532 | if test "x$ac_cv_use_security_session_api" = "xno"; then | 7200 | if test "x$ac_cv_use_security_session_api" = "xno"; then |
6533 | { { echo "$as_me:$LINENO: error: *** Need a security framework to use the credentials cache API ***" >&5 | 7201 | { { echo "$as_me:$LINENO: error: *** Need a security framework to use the credentials cache API ***" >&5 |
6534 | echo "$as_me: error: *** Need a security framework to use the credentials cache API ***" >&2;} | 7202 | echo "$as_me: error: *** Need a security framework to use the credentials cache API ***" >&2;} |
6535 | { (exit 1); exit 1; }; } | 7203 | { (exit 1); exit 1; }; } |
6536 | fi | 7204 | fi |
6537 | else | 7205 | else |
6538 | echo "$as_me: failed program was:" >&5 | 7206 | echo "$as_me: failed program was:" >&5 |
6539 | sed 's/^/| /' conftest.$ac_ext >&5 | 7207 | sed 's/^/| /' conftest.$ac_ext >&5 |
@@ -6544,6 +7212,9 @@ echo "${ECHO_T}no" >&6; } | |||
6544 | fi | 7212 | fi |
6545 | 7213 | ||
6546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 7214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7215 | ;; | ||
7216 | *-*-dragonfly*) | ||
7217 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
6547 | ;; | 7218 | ;; |
6548 | *-*-hpux*) | 7219 | *-*-hpux*) |
6549 | # first we define all of the options common to all HP-UX releases | 7220 | # first we define all of the options common to all HP-UX releases |
@@ -7464,6 +8135,11 @@ cat >>confdefs.h <<\_ACEOF | |||
7464 | #define SSH_TUN_OPENBSD 1 | 8135 | #define SSH_TUN_OPENBSD 1 |
7465 | _ACEOF | 8136 | _ACEOF |
7466 | 8137 | ||
8138 | |||
8139 | cat >>confdefs.h <<\_ACEOF | ||
8140 | #define SYSLOG_R_SAFE_IN_SIGHAND 1 | ||
8141 | _ACEOF | ||
8142 | |||
7467 | ;; | 8143 | ;; |
7468 | *-*-solaris*) | 8144 | *-*-solaris*) |
7469 | if test "x$withval" != "xno" ; then | 8145 | if test "x$withval" != "xno" ; then |
@@ -7501,6 +8177,11 @@ cat >>confdefs.h <<\_ACEOF | |||
7501 | #define SSHD_ACQUIRES_CTTY 1 | 8177 | #define SSHD_ACQUIRES_CTTY 1 |
7502 | _ACEOF | 8178 | _ACEOF |
7503 | 8179 | ||
8180 | |||
8181 | cat >>confdefs.h <<\_ACEOF | ||
8182 | #define PASSWD_NEEDS_USERNAME 1 | ||
8183 | _ACEOF | ||
8184 | |||
7504 | external_path_file=/etc/default/login | 8185 | external_path_file=/etc/default/login |
7505 | # hardwire lastlog location (can't detect it on some versions) | 8186 | # hardwire lastlog location (can't detect it on some versions) |
7506 | conf_lastlog_location="/var/adm/lastlog" | 8187 | conf_lastlog_location="/var/adm/lastlog" |
@@ -7523,6 +8204,85 @@ _ACEOF | |||
7523 | { echo "$as_me:$LINENO: result: no" >&5 | 8204 | { echo "$as_me:$LINENO: result: no" >&5 |
7524 | echo "${ECHO_T}no" >&6; } | 8205 | echo "${ECHO_T}no" >&6; } |
7525 | fi | 8206 | fi |
8207 | |||
8208 | # Check whether --with-solaris-contracts was given. | ||
8209 | if test "${with_solaris_contracts+set}" = set; then | ||
8210 | withval=$with_solaris_contracts; | ||
8211 | { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 | ||
8212 | echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; } | ||
8213 | if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then | ||
8214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8215 | else | ||
8216 | ac_check_lib_save_LIBS=$LIBS | ||
8217 | LIBS="-lcontract $LIBS" | ||
8218 | cat >conftest.$ac_ext <<_ACEOF | ||
8219 | /* confdefs.h. */ | ||
8220 | _ACEOF | ||
8221 | cat confdefs.h >>conftest.$ac_ext | ||
8222 | cat >>conftest.$ac_ext <<_ACEOF | ||
8223 | /* end confdefs.h. */ | ||
8224 | |||
8225 | /* Override any GCC internal prototype to avoid an error. | ||
8226 | Use char because int might match the return type of a GCC | ||
8227 | builtin and then its argument prototype would still apply. */ | ||
8228 | #ifdef __cplusplus | ||
8229 | extern "C" | ||
8230 | #endif | ||
8231 | char ct_tmpl_activate (); | ||
8232 | int | ||
8233 | main () | ||
8234 | { | ||
8235 | return ct_tmpl_activate (); | ||
8236 | ; | ||
8237 | return 0; | ||
8238 | } | ||
8239 | _ACEOF | ||
8240 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8241 | if { (ac_try="$ac_link" | ||
8242 | case "(($ac_try" in | ||
8243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8244 | *) ac_try_echo=$ac_try;; | ||
8245 | esac | ||
8246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8247 | (eval "$ac_link") 2>conftest.er1 | ||
8248 | ac_status=$? | ||
8249 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8250 | rm -f conftest.er1 | ||
8251 | cat conftest.err >&5 | ||
8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8253 | (exit $ac_status); } && { | ||
8254 | test -z "$ac_c_werror_flag" || | ||
8255 | test ! -s conftest.err | ||
8256 | } && test -s conftest$ac_exeext && | ||
8257 | $as_test_x conftest$ac_exeext; then | ||
8258 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
8259 | else | ||
8260 | echo "$as_me: failed program was:" >&5 | ||
8261 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8262 | |||
8263 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
8264 | fi | ||
8265 | |||
8266 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8267 | conftest$ac_exeext conftest.$ac_ext | ||
8268 | LIBS=$ac_check_lib_save_LIBS | ||
8269 | fi | ||
8270 | { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
8271 | echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
8272 | if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then | ||
8273 | |||
8274 | cat >>confdefs.h <<\_ACEOF | ||
8275 | #define USE_SOLARIS_PROCESS_CONTRACTS 1 | ||
8276 | _ACEOF | ||
8277 | |||
8278 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
8279 | |||
8280 | SPC_MSG="yes" | ||
8281 | fi | ||
8282 | |||
8283 | |||
8284 | fi | ||
8285 | |||
7526 | ;; | 8286 | ;; |
7527 | *-*-sunos4*) | 8287 | *-*-sunos4*) |
7528 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | 8288 | CPPFLAGS="$CPPFLAGS -DSUNOS4" |
@@ -7826,7 +8586,6 @@ _ACEOF | |||
7826 | ;; | 8586 | ;; |
7827 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | 8587 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. |
7828 | *-*-sysv4.2*) | 8588 | *-*-sysv4.2*) |
7829 | CFLAGS="$CFLAGS -Dva_list=_VA_LIST" | ||
7830 | cat >>confdefs.h <<\_ACEOF | 8589 | cat >>confdefs.h <<\_ACEOF |
7831 | #define USE_PIPES 1 | 8590 | #define USE_PIPES 1 |
7832 | _ACEOF | 8591 | _ACEOF |
@@ -7889,6 +8648,10 @@ cat >>confdefs.h <<\_ACEOF | |||
7889 | #define BROKEN_LIBIAF 1 | 8648 | #define BROKEN_LIBIAF 1 |
7890 | _ACEOF | 8649 | _ACEOF |
7891 | 8650 | ||
8651 | cat >>confdefs.h <<\_ACEOF | ||
8652 | #define BROKEN_UPDWTMPX 1 | ||
8653 | _ACEOF | ||
8654 | |||
7892 | ;; | 8655 | ;; |
7893 | *) cat >>confdefs.h <<\_ACEOF | 8656 | *) cat >>confdefs.h <<\_ACEOF |
7894 | #define LOCKED_PASSWD_STRING "*LK*" | 8657 | #define LOCKED_PASSWD_STRING "*LK*" |
@@ -8173,6 +8936,7 @@ _ACEOF | |||
8173 | _ACEOF | 8936 | _ACEOF |
8174 | 8937 | ||
8175 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | 8938 | LIBS="$LIBS -lsecurity -ldb -lm -laud" |
8939 | SIA_MSG="yes" | ||
8176 | else | 8940 | else |
8177 | { echo "$as_me:$LINENO: result: no" >&5 | 8941 | { echo "$as_me:$LINENO: result: no" >&5 |
8178 | echo "${ECHO_T}no" >&6; } | 8942 | echo "${ECHO_T}no" >&6; } |
@@ -8229,6 +8993,11 @@ _ACEOF | |||
8229 | #define DISABLE_LASTLOG 1 | 8993 | #define DISABLE_LASTLOG 1 |
8230 | _ACEOF | 8994 | _ACEOF |
8231 | 8995 | ||
8996 | cat >>confdefs.h <<\_ACEOF | ||
8997 | #define SSHD_ACQUIRES_CTTY 1 | ||
8998 | _ACEOF | ||
8999 | |||
9000 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
8232 | ;; | 9001 | ;; |
8233 | 9002 | ||
8234 | *-*-ultrix*) | 9003 | *-*-ultrix*) |
@@ -8267,70 +9036,6 @@ _ACEOF | |||
8267 | ;; | 9036 | ;; |
8268 | esac | 9037 | esac |
8269 | 9038 | ||
8270 | # Allow user to specify flags | ||
8271 | |||
8272 | # Check whether --with-cflags was given. | ||
8273 | if test "${with_cflags+set}" = set; then | ||
8274 | withval=$with_cflags; | ||
8275 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
8276 | test "x${withval}" != "xyes"; then | ||
8277 | CFLAGS="$CFLAGS $withval" | ||
8278 | fi | ||
8279 | |||
8280 | |||
8281 | fi | ||
8282 | |||
8283 | |||
8284 | # Check whether --with-cppflags was given. | ||
8285 | if test "${with_cppflags+set}" = set; then | ||
8286 | withval=$with_cppflags; | ||
8287 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
8288 | test "x${withval}" != "xyes"; then | ||
8289 | CPPFLAGS="$CPPFLAGS $withval" | ||
8290 | fi | ||
8291 | |||
8292 | |||
8293 | fi | ||
8294 | |||
8295 | |||
8296 | # Check whether --with-ldflags was given. | ||
8297 | if test "${with_ldflags+set}" = set; then | ||
8298 | withval=$with_ldflags; | ||
8299 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
8300 | test "x${withval}" != "xyes"; then | ||
8301 | LDFLAGS="$LDFLAGS $withval" | ||
8302 | fi | ||
8303 | |||
8304 | |||
8305 | fi | ||
8306 | |||
8307 | |||
8308 | # Check whether --with-libs was given. | ||
8309 | if test "${with_libs+set}" = set; then | ||
8310 | withval=$with_libs; | ||
8311 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
8312 | test "x${withval}" != "xyes"; then | ||
8313 | LIBS="$LIBS $withval" | ||
8314 | fi | ||
8315 | |||
8316 | |||
8317 | fi | ||
8318 | |||
8319 | |||
8320 | # Check whether --with-Werror was given. | ||
8321 | if test "${with_Werror+set}" = set; then | ||
8322 | withval=$with_Werror; | ||
8323 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
8324 | werror_flags="-Werror" | ||
8325 | if test "x${withval}" != "xyes"; then | ||
8326 | werror_flags="$withval" | ||
8327 | fi | ||
8328 | fi | ||
8329 | |||
8330 | |||
8331 | fi | ||
8332 | |||
8333 | |||
8334 | { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | 9039 | { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 |
8335 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } | 9040 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } |
8336 | if test "$cross_compiling" = yes; then | 9041 | if test "$cross_compiling" = yes; then |
@@ -8390,392 +9095,6 @@ fi | |||
8390 | 9095 | ||
8391 | 9096 | ||
8392 | 9097 | ||
8393 | |||
8394 | |||
8395 | |||
8396 | |||
8397 | |||
8398 | |||
8399 | |||
8400 | |||
8401 | |||
8402 | |||
8403 | |||
8404 | |||
8405 | |||
8406 | |||
8407 | |||
8408 | |||
8409 | |||
8410 | |||
8411 | |||
8412 | |||
8413 | |||
8414 | |||
8415 | |||
8416 | |||
8417 | |||
8418 | |||
8419 | |||
8420 | |||
8421 | |||
8422 | |||
8423 | |||
8424 | |||
8425 | |||
8426 | |||
8427 | |||
8428 | |||
8429 | |||
8430 | |||
8431 | |||
8432 | |||
8433 | |||
8434 | |||
8435 | |||
8436 | |||
8437 | |||
8438 | |||
8439 | |||
8440 | |||
8441 | |||
8442 | |||
8443 | |||
8444 | |||
8445 | |||
8446 | |||
8447 | |||
8448 | |||
8449 | for ac_header in \ | ||
8450 | bstring.h \ | ||
8451 | crypt.h \ | ||
8452 | dirent.h \ | ||
8453 | endian.h \ | ||
8454 | features.h \ | ||
8455 | floatingpoint.h \ | ||
8456 | getopt.h \ | ||
8457 | glob.h \ | ||
8458 | ia.h \ | ||
8459 | iaf.h \ | ||
8460 | limits.h \ | ||
8461 | login.h \ | ||
8462 | login_cap.h \ | ||
8463 | maillock.h \ | ||
8464 | ndir.h \ | ||
8465 | netdb.h \ | ||
8466 | netgroup.h \ | ||
8467 | pam/pam_appl.h \ | ||
8468 | paths.h \ | ||
8469 | pty.h \ | ||
8470 | readpassphrase.h \ | ||
8471 | rpc/types.h \ | ||
8472 | security/pam_appl.h \ | ||
8473 | shadow.h \ | ||
8474 | stddef.h \ | ||
8475 | stdint.h \ | ||
8476 | string.h \ | ||
8477 | strings.h \ | ||
8478 | sys/audit.h \ | ||
8479 | sys/bitypes.h \ | ||
8480 | sys/bsdtty.h \ | ||
8481 | sys/cdefs.h \ | ||
8482 | sys/dir.h \ | ||
8483 | sys/mman.h \ | ||
8484 | sys/ndir.h \ | ||
8485 | sys/prctl.h \ | ||
8486 | sys/pstat.h \ | ||
8487 | sys/select.h \ | ||
8488 | sys/stat.h \ | ||
8489 | sys/stream.h \ | ||
8490 | sys/stropts.h \ | ||
8491 | sys/strtio.h \ | ||
8492 | sys/sysmacros.h \ | ||
8493 | sys/time.h \ | ||
8494 | sys/timers.h \ | ||
8495 | sys/un.h \ | ||
8496 | time.h \ | ||
8497 | tmpdir.h \ | ||
8498 | ttyent.h \ | ||
8499 | unistd.h \ | ||
8500 | usersec.h \ | ||
8501 | util.h \ | ||
8502 | utime.h \ | ||
8503 | utmp.h \ | ||
8504 | utmpx.h \ | ||
8505 | vis.h \ | ||
8506 | |||
8507 | do | ||
8508 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8509 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8510 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8511 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
8512 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8514 | fi | ||
8515 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
8516 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8517 | echo "${ECHO_T}$ac_res" >&6; } | ||
8518 | else | ||
8519 | # Is the header compilable? | ||
8520 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
8521 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
8522 | cat >conftest.$ac_ext <<_ACEOF | ||
8523 | /* confdefs.h. */ | ||
8524 | _ACEOF | ||
8525 | cat confdefs.h >>conftest.$ac_ext | ||
8526 | cat >>conftest.$ac_ext <<_ACEOF | ||
8527 | /* end confdefs.h. */ | ||
8528 | $ac_includes_default | ||
8529 | #include <$ac_header> | ||
8530 | _ACEOF | ||
8531 | rm -f conftest.$ac_objext | ||
8532 | if { (ac_try="$ac_compile" | ||
8533 | case "(($ac_try" in | ||
8534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8535 | *) ac_try_echo=$ac_try;; | ||
8536 | esac | ||
8537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8538 | (eval "$ac_compile") 2>conftest.er1 | ||
8539 | ac_status=$? | ||
8540 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8541 | rm -f conftest.er1 | ||
8542 | cat conftest.err >&5 | ||
8543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8544 | (exit $ac_status); } && { | ||
8545 | test -z "$ac_c_werror_flag" || | ||
8546 | test ! -s conftest.err | ||
8547 | } && test -s conftest.$ac_objext; then | ||
8548 | ac_header_compiler=yes | ||
8549 | else | ||
8550 | echo "$as_me: failed program was:" >&5 | ||
8551 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8552 | |||
8553 | ac_header_compiler=no | ||
8554 | fi | ||
8555 | |||
8556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8557 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8558 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
8559 | |||
8560 | # Is the header present? | ||
8561 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
8562 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
8563 | cat >conftest.$ac_ext <<_ACEOF | ||
8564 | /* confdefs.h. */ | ||
8565 | _ACEOF | ||
8566 | cat confdefs.h >>conftest.$ac_ext | ||
8567 | cat >>conftest.$ac_ext <<_ACEOF | ||
8568 | /* end confdefs.h. */ | ||
8569 | #include <$ac_header> | ||
8570 | _ACEOF | ||
8571 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8572 | case "(($ac_try" in | ||
8573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8574 | *) ac_try_echo=$ac_try;; | ||
8575 | esac | ||
8576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8577 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8578 | ac_status=$? | ||
8579 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8580 | rm -f conftest.er1 | ||
8581 | cat conftest.err >&5 | ||
8582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8583 | (exit $ac_status); } >/dev/null && { | ||
8584 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8585 | test ! -s conftest.err | ||
8586 | }; then | ||
8587 | ac_header_preproc=yes | ||
8588 | else | ||
8589 | echo "$as_me: failed program was:" >&5 | ||
8590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8591 | |||
8592 | ac_header_preproc=no | ||
8593 | fi | ||
8594 | |||
8595 | rm -f conftest.err conftest.$ac_ext | ||
8596 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8597 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
8598 | |||
8599 | # So? What about this header? | ||
8600 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8601 | yes:no: ) | ||
8602 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8603 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
8605 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
8606 | ac_header_preproc=yes | ||
8607 | ;; | ||
8608 | no:yes:* ) | ||
8609 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
8610 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
8611 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
8612 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
8613 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
8614 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
8615 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
8616 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8617 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
8618 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
8619 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
8620 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
8621 | ( cat <<\_ASBOX | ||
8622 | ## ------------------------------------------- ## | ||
8623 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8624 | ## ------------------------------------------- ## | ||
8625 | _ASBOX | ||
8626 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8627 | ;; | ||
8628 | esac | ||
8629 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
8631 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8633 | else | ||
8634 | eval "$as_ac_Header=\$ac_header_preproc" | ||
8635 | fi | ||
8636 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
8637 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8638 | echo "${ECHO_T}$ac_res" >&6; } | ||
8639 | |||
8640 | fi | ||
8641 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8642 | cat >>confdefs.h <<_ACEOF | ||
8643 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8644 | _ACEOF | ||
8645 | |||
8646 | fi | ||
8647 | |||
8648 | done | ||
8649 | |||
8650 | |||
8651 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
8652 | |||
8653 | for ac_header in lastlog.h | ||
8654 | do | ||
8655 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8656 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8657 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
8658 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8660 | else | ||
8661 | cat >conftest.$ac_ext <<_ACEOF | ||
8662 | /* confdefs.h. */ | ||
8663 | _ACEOF | ||
8664 | cat confdefs.h >>conftest.$ac_ext | ||
8665 | cat >>conftest.$ac_ext <<_ACEOF | ||
8666 | /* end confdefs.h. */ | ||
8667 | |||
8668 | #ifdef HAVE_SYS_TIME_H | ||
8669 | # include <sys/time.h> | ||
8670 | #endif | ||
8671 | |||
8672 | |||
8673 | #include <$ac_header> | ||
8674 | _ACEOF | ||
8675 | rm -f conftest.$ac_objext | ||
8676 | if { (ac_try="$ac_compile" | ||
8677 | case "(($ac_try" in | ||
8678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8679 | *) ac_try_echo=$ac_try;; | ||
8680 | esac | ||
8681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8682 | (eval "$ac_compile") 2>conftest.er1 | ||
8683 | ac_status=$? | ||
8684 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8685 | rm -f conftest.er1 | ||
8686 | cat conftest.err >&5 | ||
8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8688 | (exit $ac_status); } && { | ||
8689 | test -z "$ac_c_werror_flag" || | ||
8690 | test ! -s conftest.err | ||
8691 | } && test -s conftest.$ac_objext; then | ||
8692 | eval "$as_ac_Header=yes" | ||
8693 | else | ||
8694 | echo "$as_me: failed program was:" >&5 | ||
8695 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8696 | |||
8697 | eval "$as_ac_Header=no" | ||
8698 | fi | ||
8699 | |||
8700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8701 | fi | ||
8702 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
8703 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8704 | echo "${ECHO_T}$ac_res" >&6; } | ||
8705 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8706 | cat >>confdefs.h <<_ACEOF | ||
8707 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8708 | _ACEOF | ||
8709 | |||
8710 | fi | ||
8711 | |||
8712 | done | ||
8713 | |||
8714 | |||
8715 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
8716 | |||
8717 | for ac_header in sys/ptms.h | ||
8718 | do | ||
8719 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8720 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
8722 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8724 | else | ||
8725 | cat >conftest.$ac_ext <<_ACEOF | ||
8726 | /* confdefs.h. */ | ||
8727 | _ACEOF | ||
8728 | cat confdefs.h >>conftest.$ac_ext | ||
8729 | cat >>conftest.$ac_ext <<_ACEOF | ||
8730 | /* end confdefs.h. */ | ||
8731 | |||
8732 | #ifdef HAVE_SYS_STREAM_H | ||
8733 | # include <sys/stream.h> | ||
8734 | #endif | ||
8735 | |||
8736 | |||
8737 | #include <$ac_header> | ||
8738 | _ACEOF | ||
8739 | rm -f conftest.$ac_objext | ||
8740 | if { (ac_try="$ac_compile" | ||
8741 | case "(($ac_try" in | ||
8742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8743 | *) ac_try_echo=$ac_try;; | ||
8744 | esac | ||
8745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8746 | (eval "$ac_compile") 2>conftest.er1 | ||
8747 | ac_status=$? | ||
8748 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8749 | rm -f conftest.er1 | ||
8750 | cat conftest.err >&5 | ||
8751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8752 | (exit $ac_status); } && { | ||
8753 | test -z "$ac_c_werror_flag" || | ||
8754 | test ! -s conftest.err | ||
8755 | } && test -s conftest.$ac_objext; then | ||
8756 | eval "$as_ac_Header=yes" | ||
8757 | else | ||
8758 | echo "$as_me: failed program was:" >&5 | ||
8759 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8760 | |||
8761 | eval "$as_ac_Header=no" | ||
8762 | fi | ||
8763 | |||
8764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8765 | fi | ||
8766 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
8767 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8768 | echo "${ECHO_T}$ac_res" >&6; } | ||
8769 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8770 | cat >>confdefs.h <<_ACEOF | ||
8771 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8772 | _ACEOF | ||
8773 | |||
8774 | fi | ||
8775 | |||
8776 | done | ||
8777 | |||
8778 | |||
8779 | # Checks for libraries. | 9098 | # Checks for libraries. |
8780 | { echo "$as_me:$LINENO: checking for yp_match" >&5 | 9099 | { echo "$as_me:$LINENO: checking for yp_match" >&5 |
8781 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } | 9100 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } |
@@ -11141,13 +11460,32 @@ _ACEOF | |||
11141 | cat confdefs.h >>conftest.$ac_ext | 11460 | cat confdefs.h >>conftest.$ac_ext |
11142 | cat >>conftest.$ac_ext <<_ACEOF | 11461 | cat >>conftest.$ac_ext <<_ACEOF |
11143 | /* end confdefs.h. */ | 11462 | /* end confdefs.h. */ |
11144 | 11463 | #include <glob.h> | |
11145 | #include <glob.h> | 11464 | int |
11146 | int main(void){glob_t g; g.gl_matchc = 1;} | 11465 | main () |
11147 | 11466 | { | |
11467 | glob_t g; g.gl_matchc = 1; | ||
11468 | ; | ||
11469 | return 0; | ||
11470 | } | ||
11148 | _ACEOF | 11471 | _ACEOF |
11149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 11472 | rm -f conftest.$ac_objext |
11150 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | 11473 | if { (ac_try="$ac_compile" |
11474 | case "(($ac_try" in | ||
11475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11476 | *) ac_try_echo=$ac_try;; | ||
11477 | esac | ||
11478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11479 | (eval "$ac_compile") 2>conftest.er1 | ||
11480 | ac_status=$? | ||
11481 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11482 | rm -f conftest.er1 | ||
11483 | cat conftest.err >&5 | ||
11484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11485 | (exit $ac_status); } && { | ||
11486 | test -z "$ac_c_werror_flag" || | ||
11487 | test ! -s conftest.err | ||
11488 | } && test -s conftest.$ac_objext; then | ||
11151 | 11489 | ||
11152 | 11490 | ||
11153 | cat >>confdefs.h <<\_ACEOF | 11491 | cat >>confdefs.h <<\_ACEOF |
@@ -11158,13 +11496,86 @@ _ACEOF | |||
11158 | echo "${ECHO_T}yes" >&6; } | 11496 | echo "${ECHO_T}yes" >&6; } |
11159 | 11497 | ||
11160 | else | 11498 | else |
11499 | echo "$as_me: failed program was:" >&5 | ||
11500 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11501 | |||
11161 | 11502 | ||
11162 | { echo "$as_me:$LINENO: result: no" >&5 | 11503 | { echo "$as_me:$LINENO: result: no" >&5 |
11163 | echo "${ECHO_T}no" >&6; } | 11504 | echo "${ECHO_T}no" >&6; } |
11164 | 11505 | ||
11165 | 11506 | ||
11166 | fi | 11507 | fi |
11167 | rm -f conftest* | 11508 | |
11509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11510 | |||
11511 | { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 | ||
11512 | echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; } | ||
11513 | if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then | ||
11514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11515 | else | ||
11516 | cat >conftest.$ac_ext <<_ACEOF | ||
11517 | /* confdefs.h. */ | ||
11518 | _ACEOF | ||
11519 | cat confdefs.h >>conftest.$ac_ext | ||
11520 | cat >>conftest.$ac_ext <<_ACEOF | ||
11521 | /* end confdefs.h. */ | ||
11522 | #include <glob.h> | ||
11523 | |||
11524 | int | ||
11525 | main () | ||
11526 | { | ||
11527 | #ifndef GLOB_NOMATCH | ||
11528 | (void) GLOB_NOMATCH; | ||
11529 | #endif | ||
11530 | |||
11531 | ; | ||
11532 | return 0; | ||
11533 | } | ||
11534 | _ACEOF | ||
11535 | rm -f conftest.$ac_objext | ||
11536 | if { (ac_try="$ac_compile" | ||
11537 | case "(($ac_try" in | ||
11538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11539 | *) ac_try_echo=$ac_try;; | ||
11540 | esac | ||
11541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11542 | (eval "$ac_compile") 2>conftest.er1 | ||
11543 | ac_status=$? | ||
11544 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11545 | rm -f conftest.er1 | ||
11546 | cat conftest.err >&5 | ||
11547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11548 | (exit $ac_status); } && { | ||
11549 | test -z "$ac_c_werror_flag" || | ||
11550 | test ! -s conftest.err | ||
11551 | } && test -s conftest.$ac_objext; then | ||
11552 | ac_cv_have_decl_GLOB_NOMATCH=yes | ||
11553 | else | ||
11554 | echo "$as_me: failed program was:" >&5 | ||
11555 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11556 | |||
11557 | ac_cv_have_decl_GLOB_NOMATCH=no | ||
11558 | fi | ||
11559 | |||
11560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11561 | fi | ||
11562 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 | ||
11563 | echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; } | ||
11564 | if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then | ||
11565 | |||
11566 | cat >>confdefs.h <<_ACEOF | ||
11567 | #define HAVE_DECL_GLOB_NOMATCH 1 | ||
11568 | _ACEOF | ||
11569 | |||
11570 | |||
11571 | else | ||
11572 | cat >>confdefs.h <<_ACEOF | ||
11573 | #define HAVE_DECL_GLOB_NOMATCH 0 | ||
11574 | _ACEOF | ||
11575 | |||
11576 | |||
11577 | fi | ||
11578 | |||
11168 | 11579 | ||
11169 | 11580 | ||
11170 | { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | 11581 | { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 |
@@ -11647,26 +12058,24 @@ echo "${ECHO_T}bsm" >&6; } | |||
11647 | for ac_header in bsm/audit.h | 12058 | for ac_header in bsm/audit.h |
11648 | do | 12059 | do |
11649 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 12060 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11650 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 12061 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11651 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11652 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 12062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11653 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 12063 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 12064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11655 | fi | ||
11656 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11657 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11658 | echo "${ECHO_T}$ac_res" >&6; } | ||
11659 | else | 12065 | else |
11660 | # Is the header compilable? | 12066 | cat >conftest.$ac_ext <<_ACEOF |
11661 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
11662 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
11663 | cat >conftest.$ac_ext <<_ACEOF | ||
11664 | /* confdefs.h. */ | 12067 | /* confdefs.h. */ |
11665 | _ACEOF | 12068 | _ACEOF |
11666 | cat confdefs.h >>conftest.$ac_ext | 12069 | cat confdefs.h >>conftest.$ac_ext |
11667 | cat >>conftest.$ac_ext <<_ACEOF | 12070 | cat >>conftest.$ac_ext <<_ACEOF |
11668 | /* end confdefs.h. */ | 12071 | /* end confdefs.h. */ |
11669 | $ac_includes_default | 12072 | |
12073 | #ifdef HAVE_TIME_H | ||
12074 | # include <time.h> | ||
12075 | #endif | ||
12076 | |||
12077 | |||
12078 | |||
11670 | #include <$ac_header> | 12079 | #include <$ac_header> |
11671 | _ACEOF | 12080 | _ACEOF |
11672 | rm -f conftest.$ac_objext | 12081 | rm -f conftest.$ac_objext |
@@ -11686,99 +12095,19 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |||
11686 | test -z "$ac_c_werror_flag" || | 12095 | test -z "$ac_c_werror_flag" || |
11687 | test ! -s conftest.err | 12096 | test ! -s conftest.err |
11688 | } && test -s conftest.$ac_objext; then | 12097 | } && test -s conftest.$ac_objext; then |
11689 | ac_header_compiler=yes | 12098 | eval "$as_ac_Header=yes" |
11690 | else | 12099 | else |
11691 | echo "$as_me: failed program was:" >&5 | 12100 | echo "$as_me: failed program was:" >&5 |
11692 | sed 's/^/| /' conftest.$ac_ext >&5 | 12101 | sed 's/^/| /' conftest.$ac_ext >&5 |
11693 | 12102 | ||
11694 | ac_header_compiler=no | 12103 | eval "$as_ac_Header=no" |
11695 | fi | 12104 | fi |
11696 | 12105 | ||
11697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 12106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11698 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
11699 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
11700 | |||
11701 | # Is the header present? | ||
11702 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
11703 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
11704 | cat >conftest.$ac_ext <<_ACEOF | ||
11705 | /* confdefs.h. */ | ||
11706 | _ACEOF | ||
11707 | cat confdefs.h >>conftest.$ac_ext | ||
11708 | cat >>conftest.$ac_ext <<_ACEOF | ||
11709 | /* end confdefs.h. */ | ||
11710 | #include <$ac_header> | ||
11711 | _ACEOF | ||
11712 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
11713 | case "(($ac_try" in | ||
11714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11715 | *) ac_try_echo=$ac_try;; | ||
11716 | esac | ||
11717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11718 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
11719 | ac_status=$? | ||
11720 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11721 | rm -f conftest.er1 | ||
11722 | cat conftest.err >&5 | ||
11723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11724 | (exit $ac_status); } >/dev/null && { | ||
11725 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
11726 | test ! -s conftest.err | ||
11727 | }; then | ||
11728 | ac_header_preproc=yes | ||
11729 | else | ||
11730 | echo "$as_me: failed program was:" >&5 | ||
11731 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11732 | |||
11733 | ac_header_preproc=no | ||
11734 | fi | ||
11735 | |||
11736 | rm -f conftest.err conftest.$ac_ext | ||
11737 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
11738 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
11739 | |||
11740 | # So? What about this header? | ||
11741 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
11742 | yes:no: ) | ||
11743 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
11744 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
11745 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
11746 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
11747 | ac_header_preproc=yes | ||
11748 | ;; | ||
11749 | no:yes:* ) | ||
11750 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
11751 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
11752 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
11753 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
11754 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
11755 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
11756 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
11757 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
11758 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
11759 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
11760 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
11761 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
11762 | ( cat <<\_ASBOX | ||
11763 | ## ------------------------------------------- ## | ||
11764 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
11765 | ## ------------------------------------------- ## | ||
11766 | _ASBOX | ||
11767 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
11768 | ;; | ||
11769 | esac | ||
11770 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11772 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11774 | else | ||
11775 | eval "$as_ac_Header=\$ac_header_preproc" | ||
11776 | fi | 12107 | fi |
11777 | ac_res=`eval echo '${'$as_ac_Header'}'` | 12108 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11778 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 12109 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
11779 | echo "${ECHO_T}$ac_res" >&6; } | 12110 | echo "${ECHO_T}$ac_res" >&6; } |
11780 | |||
11781 | fi | ||
11782 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 12111 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11783 | cat >>confdefs.h <<_ACEOF | 12112 | cat >>confdefs.h <<_ACEOF |
11784 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 12113 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
@@ -13120,6 +13449,231 @@ fi | |||
13120 | 13449 | ||
13121 | 13450 | ||
13122 | 13451 | ||
13452 | { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 | ||
13453 | echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; } | ||
13454 | if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then | ||
13455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13456 | else | ||
13457 | cat >conftest.$ac_ext <<_ACEOF | ||
13458 | /* confdefs.h. */ | ||
13459 | _ACEOF | ||
13460 | cat confdefs.h >>conftest.$ac_ext | ||
13461 | cat >>conftest.$ac_ext <<_ACEOF | ||
13462 | /* end confdefs.h. */ | ||
13463 | |||
13464 | #include <sys/types.h> | ||
13465 | #include <sys/socket.h> | ||
13466 | |||
13467 | |||
13468 | int | ||
13469 | main () | ||
13470 | { | ||
13471 | #ifndef SHUT_RD | ||
13472 | (void) SHUT_RD; | ||
13473 | #endif | ||
13474 | |||
13475 | ; | ||
13476 | return 0; | ||
13477 | } | ||
13478 | _ACEOF | ||
13479 | rm -f conftest.$ac_objext | ||
13480 | if { (ac_try="$ac_compile" | ||
13481 | case "(($ac_try" in | ||
13482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13483 | *) ac_try_echo=$ac_try;; | ||
13484 | esac | ||
13485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13486 | (eval "$ac_compile") 2>conftest.er1 | ||
13487 | ac_status=$? | ||
13488 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13489 | rm -f conftest.er1 | ||
13490 | cat conftest.err >&5 | ||
13491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13492 | (exit $ac_status); } && { | ||
13493 | test -z "$ac_c_werror_flag" || | ||
13494 | test ! -s conftest.err | ||
13495 | } && test -s conftest.$ac_objext; then | ||
13496 | ac_cv_have_decl_SHUT_RD=yes | ||
13497 | else | ||
13498 | echo "$as_me: failed program was:" >&5 | ||
13499 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13500 | |||
13501 | ac_cv_have_decl_SHUT_RD=no | ||
13502 | fi | ||
13503 | |||
13504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13505 | fi | ||
13506 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 | ||
13507 | echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; } | ||
13508 | if test $ac_cv_have_decl_SHUT_RD = yes; then | ||
13509 | |||
13510 | cat >>confdefs.h <<_ACEOF | ||
13511 | #define HAVE_DECL_SHUT_RD 1 | ||
13512 | _ACEOF | ||
13513 | |||
13514 | |||
13515 | else | ||
13516 | cat >>confdefs.h <<_ACEOF | ||
13517 | #define HAVE_DECL_SHUT_RD 0 | ||
13518 | _ACEOF | ||
13519 | |||
13520 | |||
13521 | fi | ||
13522 | |||
13523 | |||
13524 | |||
13525 | { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 | ||
13526 | echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; } | ||
13527 | if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then | ||
13528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13529 | else | ||
13530 | cat >conftest.$ac_ext <<_ACEOF | ||
13531 | /* confdefs.h. */ | ||
13532 | _ACEOF | ||
13533 | cat confdefs.h >>conftest.$ac_ext | ||
13534 | cat >>conftest.$ac_ext <<_ACEOF | ||
13535 | /* end confdefs.h. */ | ||
13536 | |||
13537 | #include <sys/types.h> | ||
13538 | #ifdef HAVE_SYS_STAT_H | ||
13539 | # include <sys/stat.h> | ||
13540 | #endif | ||
13541 | #ifdef HAVE_FCNTL_H | ||
13542 | # include <fcntl.h> | ||
13543 | #endif | ||
13544 | |||
13545 | |||
13546 | int | ||
13547 | main () | ||
13548 | { | ||
13549 | #ifndef O_NONBLOCK | ||
13550 | (void) O_NONBLOCK; | ||
13551 | #endif | ||
13552 | |||
13553 | ; | ||
13554 | return 0; | ||
13555 | } | ||
13556 | _ACEOF | ||
13557 | rm -f conftest.$ac_objext | ||
13558 | if { (ac_try="$ac_compile" | ||
13559 | case "(($ac_try" in | ||
13560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13561 | *) ac_try_echo=$ac_try;; | ||
13562 | esac | ||
13563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13564 | (eval "$ac_compile") 2>conftest.er1 | ||
13565 | ac_status=$? | ||
13566 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13567 | rm -f conftest.er1 | ||
13568 | cat conftest.err >&5 | ||
13569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13570 | (exit $ac_status); } && { | ||
13571 | test -z "$ac_c_werror_flag" || | ||
13572 | test ! -s conftest.err | ||
13573 | } && test -s conftest.$ac_objext; then | ||
13574 | ac_cv_have_decl_O_NONBLOCK=yes | ||
13575 | else | ||
13576 | echo "$as_me: failed program was:" >&5 | ||
13577 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13578 | |||
13579 | ac_cv_have_decl_O_NONBLOCK=no | ||
13580 | fi | ||
13581 | |||
13582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13583 | fi | ||
13584 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 | ||
13585 | echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; } | ||
13586 | if test $ac_cv_have_decl_O_NONBLOCK = yes; then | ||
13587 | |||
13588 | cat >>confdefs.h <<_ACEOF | ||
13589 | #define HAVE_DECL_O_NONBLOCK 1 | ||
13590 | _ACEOF | ||
13591 | |||
13592 | |||
13593 | else | ||
13594 | cat >>confdefs.h <<_ACEOF | ||
13595 | #define HAVE_DECL_O_NONBLOCK 0 | ||
13596 | _ACEOF | ||
13597 | |||
13598 | |||
13599 | fi | ||
13600 | |||
13601 | |||
13602 | |||
13603 | { echo "$as_me:$LINENO: checking whether writev is declared" >&5 | ||
13604 | echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; } | ||
13605 | if test "${ac_cv_have_decl_writev+set}" = set; then | ||
13606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13607 | else | ||
13608 | cat >conftest.$ac_ext <<_ACEOF | ||
13609 | /* confdefs.h. */ | ||
13610 | _ACEOF | ||
13611 | cat confdefs.h >>conftest.$ac_ext | ||
13612 | cat >>conftest.$ac_ext <<_ACEOF | ||
13613 | /* end confdefs.h. */ | ||
13614 | |||
13615 | #include <sys/types.h> | ||
13616 | #include <sys/uio.h> | ||
13617 | #include <unistd.h> | ||
13618 | |||
13619 | |||
13620 | int | ||
13621 | main () | ||
13622 | { | ||
13623 | #ifndef writev | ||
13624 | (void) writev; | ||
13625 | #endif | ||
13626 | |||
13627 | ; | ||
13628 | return 0; | ||
13629 | } | ||
13630 | _ACEOF | ||
13631 | rm -f conftest.$ac_objext | ||
13632 | if { (ac_try="$ac_compile" | ||
13633 | case "(($ac_try" in | ||
13634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13635 | *) ac_try_echo=$ac_try;; | ||
13636 | esac | ||
13637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13638 | (eval "$ac_compile") 2>conftest.er1 | ||
13639 | ac_status=$? | ||
13640 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13641 | rm -f conftest.er1 | ||
13642 | cat conftest.err >&5 | ||
13643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13644 | (exit $ac_status); } && { | ||
13645 | test -z "$ac_c_werror_flag" || | ||
13646 | test ! -s conftest.err | ||
13647 | } && test -s conftest.$ac_objext; then | ||
13648 | ac_cv_have_decl_writev=yes | ||
13649 | else | ||
13650 | echo "$as_me: failed program was:" >&5 | ||
13651 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13652 | |||
13653 | ac_cv_have_decl_writev=no | ||
13654 | fi | ||
13655 | |||
13656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13657 | fi | ||
13658 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 | ||
13659 | echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; } | ||
13660 | if test $ac_cv_have_decl_writev = yes; then | ||
13661 | |||
13662 | cat >>confdefs.h <<_ACEOF | ||
13663 | #define HAVE_DECL_WRITEV 1 | ||
13664 | _ACEOF | ||
13665 | |||
13666 | |||
13667 | else | ||
13668 | cat >>confdefs.h <<_ACEOF | ||
13669 | #define HAVE_DECL_WRITEV 0 | ||
13670 | _ACEOF | ||
13671 | |||
13672 | |||
13673 | fi | ||
13674 | |||
13675 | |||
13676 | |||
13123 | 13677 | ||
13124 | for ac_func in setresuid | 13678 | for ac_func in setresuid |
13125 | do | 13679 | do |
@@ -15000,440 +15554,6 @@ _ACEOF | |||
15000 | fi | 15554 | fi |
15001 | 15555 | ||
15002 | 15556 | ||
15003 | # Check for PAM libs | ||
15004 | PAM_MSG="no" | ||
15005 | |||
15006 | # Check whether --with-pam was given. | ||
15007 | if test "${with_pam+set}" = set; then | ||
15008 | withval=$with_pam; | ||
15009 | if test "x$withval" != "xno" ; then | ||
15010 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
15011 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
15012 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
15013 | echo "$as_me: error: PAM headers not found" >&2;} | ||
15014 | { (exit 1); exit 1; }; } | ||
15015 | fi | ||
15016 | |||
15017 | |||
15018 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
15019 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
15020 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
15021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15022 | else | ||
15023 | ac_check_lib_save_LIBS=$LIBS | ||
15024 | LIBS="-ldl $LIBS" | ||
15025 | cat >conftest.$ac_ext <<_ACEOF | ||
15026 | /* confdefs.h. */ | ||
15027 | _ACEOF | ||
15028 | cat confdefs.h >>conftest.$ac_ext | ||
15029 | cat >>conftest.$ac_ext <<_ACEOF | ||
15030 | /* end confdefs.h. */ | ||
15031 | |||
15032 | /* Override any GCC internal prototype to avoid an error. | ||
15033 | Use char because int might match the return type of a GCC | ||
15034 | builtin and then its argument prototype would still apply. */ | ||
15035 | #ifdef __cplusplus | ||
15036 | extern "C" | ||
15037 | #endif | ||
15038 | char dlopen (); | ||
15039 | int | ||
15040 | main () | ||
15041 | { | ||
15042 | return dlopen (); | ||
15043 | ; | ||
15044 | return 0; | ||
15045 | } | ||
15046 | _ACEOF | ||
15047 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15048 | if { (ac_try="$ac_link" | ||
15049 | case "(($ac_try" in | ||
15050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15051 | *) ac_try_echo=$ac_try;; | ||
15052 | esac | ||
15053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15054 | (eval "$ac_link") 2>conftest.er1 | ||
15055 | ac_status=$? | ||
15056 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15057 | rm -f conftest.er1 | ||
15058 | cat conftest.err >&5 | ||
15059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15060 | (exit $ac_status); } && { | ||
15061 | test -z "$ac_c_werror_flag" || | ||
15062 | test ! -s conftest.err | ||
15063 | } && test -s conftest$ac_exeext && | ||
15064 | $as_test_x conftest$ac_exeext; then | ||
15065 | ac_cv_lib_dl_dlopen=yes | ||
15066 | else | ||
15067 | echo "$as_me: failed program was:" >&5 | ||
15068 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15069 | |||
15070 | ac_cv_lib_dl_dlopen=no | ||
15071 | fi | ||
15072 | |||
15073 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15074 | conftest$ac_exeext conftest.$ac_ext | ||
15075 | LIBS=$ac_check_lib_save_LIBS | ||
15076 | fi | ||
15077 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
15078 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
15079 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
15080 | cat >>confdefs.h <<_ACEOF | ||
15081 | #define HAVE_LIBDL 1 | ||
15082 | _ACEOF | ||
15083 | |||
15084 | LIBS="-ldl $LIBS" | ||
15085 | |||
15086 | fi | ||
15087 | |||
15088 | |||
15089 | { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
15090 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } | ||
15091 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
15092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15093 | else | ||
15094 | ac_check_lib_save_LIBS=$LIBS | ||
15095 | LIBS="-lpam $LIBS" | ||
15096 | cat >conftest.$ac_ext <<_ACEOF | ||
15097 | /* confdefs.h. */ | ||
15098 | _ACEOF | ||
15099 | cat confdefs.h >>conftest.$ac_ext | ||
15100 | cat >>conftest.$ac_ext <<_ACEOF | ||
15101 | /* end confdefs.h. */ | ||
15102 | |||
15103 | /* Override any GCC internal prototype to avoid an error. | ||
15104 | Use char because int might match the return type of a GCC | ||
15105 | builtin and then its argument prototype would still apply. */ | ||
15106 | #ifdef __cplusplus | ||
15107 | extern "C" | ||
15108 | #endif | ||
15109 | char pam_set_item (); | ||
15110 | int | ||
15111 | main () | ||
15112 | { | ||
15113 | return pam_set_item (); | ||
15114 | ; | ||
15115 | return 0; | ||
15116 | } | ||
15117 | _ACEOF | ||
15118 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15119 | if { (ac_try="$ac_link" | ||
15120 | case "(($ac_try" in | ||
15121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15122 | *) ac_try_echo=$ac_try;; | ||
15123 | esac | ||
15124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15125 | (eval "$ac_link") 2>conftest.er1 | ||
15126 | ac_status=$? | ||
15127 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15128 | rm -f conftest.er1 | ||
15129 | cat conftest.err >&5 | ||
15130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15131 | (exit $ac_status); } && { | ||
15132 | test -z "$ac_c_werror_flag" || | ||
15133 | test ! -s conftest.err | ||
15134 | } && test -s conftest$ac_exeext && | ||
15135 | $as_test_x conftest$ac_exeext; then | ||
15136 | ac_cv_lib_pam_pam_set_item=yes | ||
15137 | else | ||
15138 | echo "$as_me: failed program was:" >&5 | ||
15139 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15140 | |||
15141 | ac_cv_lib_pam_pam_set_item=no | ||
15142 | fi | ||
15143 | |||
15144 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15145 | conftest$ac_exeext conftest.$ac_ext | ||
15146 | LIBS=$ac_check_lib_save_LIBS | ||
15147 | fi | ||
15148 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
15149 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } | ||
15150 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
15151 | cat >>confdefs.h <<_ACEOF | ||
15152 | #define HAVE_LIBPAM 1 | ||
15153 | _ACEOF | ||
15154 | |||
15155 | LIBS="-lpam $LIBS" | ||
15156 | |||
15157 | else | ||
15158 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
15159 | echo "$as_me: error: *** libpam missing" >&2;} | ||
15160 | { (exit 1); exit 1; }; } | ||
15161 | fi | ||
15162 | |||
15163 | |||
15164 | for ac_func in pam_getenvlist | ||
15165 | do | ||
15166 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15167 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15168 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15169 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15171 | else | ||
15172 | cat >conftest.$ac_ext <<_ACEOF | ||
15173 | /* confdefs.h. */ | ||
15174 | _ACEOF | ||
15175 | cat confdefs.h >>conftest.$ac_ext | ||
15176 | cat >>conftest.$ac_ext <<_ACEOF | ||
15177 | /* end confdefs.h. */ | ||
15178 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15179 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15180 | #define $ac_func innocuous_$ac_func | ||
15181 | |||
15182 | /* System header to define __stub macros and hopefully few prototypes, | ||
15183 | which can conflict with char $ac_func (); below. | ||
15184 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15185 | <limits.h> exists even on freestanding compilers. */ | ||
15186 | |||
15187 | #ifdef __STDC__ | ||
15188 | # include <limits.h> | ||
15189 | #else | ||
15190 | # include <assert.h> | ||
15191 | #endif | ||
15192 | |||
15193 | #undef $ac_func | ||
15194 | |||
15195 | /* Override any GCC internal prototype to avoid an error. | ||
15196 | Use char because int might match the return type of a GCC | ||
15197 | builtin and then its argument prototype would still apply. */ | ||
15198 | #ifdef __cplusplus | ||
15199 | extern "C" | ||
15200 | #endif | ||
15201 | char $ac_func (); | ||
15202 | /* The GNU C library defines this for functions which it implements | ||
15203 | to always fail with ENOSYS. Some functions are actually named | ||
15204 | something starting with __ and the normal name is an alias. */ | ||
15205 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15206 | choke me | ||
15207 | #endif | ||
15208 | |||
15209 | int | ||
15210 | main () | ||
15211 | { | ||
15212 | return $ac_func (); | ||
15213 | ; | ||
15214 | return 0; | ||
15215 | } | ||
15216 | _ACEOF | ||
15217 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15218 | if { (ac_try="$ac_link" | ||
15219 | case "(($ac_try" in | ||
15220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15221 | *) ac_try_echo=$ac_try;; | ||
15222 | esac | ||
15223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15224 | (eval "$ac_link") 2>conftest.er1 | ||
15225 | ac_status=$? | ||
15226 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15227 | rm -f conftest.er1 | ||
15228 | cat conftest.err >&5 | ||
15229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15230 | (exit $ac_status); } && { | ||
15231 | test -z "$ac_c_werror_flag" || | ||
15232 | test ! -s conftest.err | ||
15233 | } && test -s conftest$ac_exeext && | ||
15234 | $as_test_x conftest$ac_exeext; then | ||
15235 | eval "$as_ac_var=yes" | ||
15236 | else | ||
15237 | echo "$as_me: failed program was:" >&5 | ||
15238 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15239 | |||
15240 | eval "$as_ac_var=no" | ||
15241 | fi | ||
15242 | |||
15243 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15244 | conftest$ac_exeext conftest.$ac_ext | ||
15245 | fi | ||
15246 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15247 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15248 | echo "${ECHO_T}$ac_res" >&6; } | ||
15249 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15250 | cat >>confdefs.h <<_ACEOF | ||
15251 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15252 | _ACEOF | ||
15253 | |||
15254 | fi | ||
15255 | done | ||
15256 | |||
15257 | |||
15258 | for ac_func in pam_putenv | ||
15259 | do | ||
15260 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15261 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15262 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15263 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15265 | else | ||
15266 | cat >conftest.$ac_ext <<_ACEOF | ||
15267 | /* confdefs.h. */ | ||
15268 | _ACEOF | ||
15269 | cat confdefs.h >>conftest.$ac_ext | ||
15270 | cat >>conftest.$ac_ext <<_ACEOF | ||
15271 | /* end confdefs.h. */ | ||
15272 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15273 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15274 | #define $ac_func innocuous_$ac_func | ||
15275 | |||
15276 | /* System header to define __stub macros and hopefully few prototypes, | ||
15277 | which can conflict with char $ac_func (); below. | ||
15278 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15279 | <limits.h> exists even on freestanding compilers. */ | ||
15280 | |||
15281 | #ifdef __STDC__ | ||
15282 | # include <limits.h> | ||
15283 | #else | ||
15284 | # include <assert.h> | ||
15285 | #endif | ||
15286 | |||
15287 | #undef $ac_func | ||
15288 | |||
15289 | /* Override any GCC internal prototype to avoid an error. | ||
15290 | Use char because int might match the return type of a GCC | ||
15291 | builtin and then its argument prototype would still apply. */ | ||
15292 | #ifdef __cplusplus | ||
15293 | extern "C" | ||
15294 | #endif | ||
15295 | char $ac_func (); | ||
15296 | /* The GNU C library defines this for functions which it implements | ||
15297 | to always fail with ENOSYS. Some functions are actually named | ||
15298 | something starting with __ and the normal name is an alias. */ | ||
15299 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15300 | choke me | ||
15301 | #endif | ||
15302 | |||
15303 | int | ||
15304 | main () | ||
15305 | { | ||
15306 | return $ac_func (); | ||
15307 | ; | ||
15308 | return 0; | ||
15309 | } | ||
15310 | _ACEOF | ||
15311 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15312 | if { (ac_try="$ac_link" | ||
15313 | case "(($ac_try" in | ||
15314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15315 | *) ac_try_echo=$ac_try;; | ||
15316 | esac | ||
15317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15318 | (eval "$ac_link") 2>conftest.er1 | ||
15319 | ac_status=$? | ||
15320 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15321 | rm -f conftest.er1 | ||
15322 | cat conftest.err >&5 | ||
15323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15324 | (exit $ac_status); } && { | ||
15325 | test -z "$ac_c_werror_flag" || | ||
15326 | test ! -s conftest.err | ||
15327 | } && test -s conftest$ac_exeext && | ||
15328 | $as_test_x conftest$ac_exeext; then | ||
15329 | eval "$as_ac_var=yes" | ||
15330 | else | ||
15331 | echo "$as_me: failed program was:" >&5 | ||
15332 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15333 | |||
15334 | eval "$as_ac_var=no" | ||
15335 | fi | ||
15336 | |||
15337 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15338 | conftest$ac_exeext conftest.$ac_ext | ||
15339 | fi | ||
15340 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15341 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15342 | echo "${ECHO_T}$ac_res" >&6; } | ||
15343 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15344 | cat >>confdefs.h <<_ACEOF | ||
15345 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15346 | _ACEOF | ||
15347 | |||
15348 | fi | ||
15349 | done | ||
15350 | |||
15351 | |||
15352 | PAM_MSG="yes" | ||
15353 | |||
15354 | |||
15355 | cat >>confdefs.h <<\_ACEOF | ||
15356 | #define USE_PAM 1 | ||
15357 | _ACEOF | ||
15358 | |||
15359 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
15360 | LIBPAM="-lpam -ldl" | ||
15361 | else | ||
15362 | LIBPAM="-lpam" | ||
15363 | fi | ||
15364 | |||
15365 | fi | ||
15366 | |||
15367 | |||
15368 | fi | ||
15369 | |||
15370 | |||
15371 | # Check for older PAM | ||
15372 | if test "x$PAM_MSG" = "xyes" ; then | ||
15373 | # Check PAM strerror arguments (old PAM) | ||
15374 | { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
15375 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } | ||
15376 | cat >conftest.$ac_ext <<_ACEOF | ||
15377 | /* confdefs.h. */ | ||
15378 | _ACEOF | ||
15379 | cat confdefs.h >>conftest.$ac_ext | ||
15380 | cat >>conftest.$ac_ext <<_ACEOF | ||
15381 | /* end confdefs.h. */ | ||
15382 | |||
15383 | #include <stdlib.h> | ||
15384 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
15385 | #include <security/pam_appl.h> | ||
15386 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
15387 | #include <pam/pam_appl.h> | ||
15388 | #endif | ||
15389 | |||
15390 | int | ||
15391 | main () | ||
15392 | { | ||
15393 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
15394 | ; | ||
15395 | return 0; | ||
15396 | } | ||
15397 | _ACEOF | ||
15398 | rm -f conftest.$ac_objext | ||
15399 | if { (ac_try="$ac_compile" | ||
15400 | case "(($ac_try" in | ||
15401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15402 | *) ac_try_echo=$ac_try;; | ||
15403 | esac | ||
15404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15405 | (eval "$ac_compile") 2>conftest.er1 | ||
15406 | ac_status=$? | ||
15407 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15408 | rm -f conftest.er1 | ||
15409 | cat conftest.err >&5 | ||
15410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15411 | (exit $ac_status); } && { | ||
15412 | test -z "$ac_c_werror_flag" || | ||
15413 | test ! -s conftest.err | ||
15414 | } && test -s conftest.$ac_objext; then | ||
15415 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15416 | echo "${ECHO_T}no" >&6; } | ||
15417 | else | ||
15418 | echo "$as_me: failed program was:" >&5 | ||
15419 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15420 | |||
15421 | |||
15422 | |||
15423 | cat >>confdefs.h <<\_ACEOF | ||
15424 | #define HAVE_OLD_PAM 1 | ||
15425 | _ACEOF | ||
15426 | |||
15427 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15428 | echo "${ECHO_T}yes" >&6; } | ||
15429 | PAM_MSG="yes (old library)" | ||
15430 | |||
15431 | |||
15432 | fi | ||
15433 | |||
15434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15435 | fi | ||
15436 | |||
15437 | # Search for OpenSSL | 15557 | # Search for OpenSSL |
15438 | saved_CPPFLAGS="$CPPFLAGS" | 15558 | saved_CPPFLAGS="$CPPFLAGS" |
15439 | saved_LDFLAGS="$LDFLAGS" | 15559 | saved_LDFLAGS="$LDFLAGS" |
@@ -15752,6 +15872,17 @@ fi | |||
15752 | 15872 | ||
15753 | 15873 | ||
15754 | 15874 | ||
15875 | |||
15876 | # Check whether --with-openssl-header-check was given. | ||
15877 | if test "${with_openssl_header_check+set}" = set; then | ||
15878 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then | ||
15879 | openssl_check_nonfatal=1 | ||
15880 | fi | ||
15881 | |||
15882 | |||
15883 | fi | ||
15884 | |||
15885 | |||
15755 | # Sanity check OpenSSL headers | 15886 | # Sanity check OpenSSL headers |
15756 | { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | 15887 | { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 |
15757 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } | 15888 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } |
@@ -15807,13 +15938,28 @@ sed 's/^/| /' conftest.$ac_ext >&5 | |||
15807 | 15938 | ||
15808 | { echo "$as_me:$LINENO: result: no" >&5 | 15939 | { echo "$as_me:$LINENO: result: no" >&5 |
15809 | echo "${ECHO_T}no" >&6; } | 15940 | echo "${ECHO_T}no" >&6; } |
15810 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library. | 15941 | if test "x$openssl_check_nonfatal" = "x"; then |
15811 | Check config.log for details. | 15942 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your |
15943 | library. Check config.log for details. | ||
15944 | If you are sure your installation is consistent, you can disable the check | ||
15945 | by running \"./configure --without-openssl-header-check\". | ||
15946 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
15947 | " >&5 | ||
15948 | echo "$as_me: error: Your OpenSSL headers do not match your | ||
15949 | library. Check config.log for details. | ||
15950 | If you are sure your installation is consistent, you can disable the check | ||
15951 | by running \"./configure --without-openssl-header-check\". | ||
15952 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
15953 | " >&2;} | ||
15954 | { (exit 1); exit 1; }; } | ||
15955 | else | ||
15956 | { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your | ||
15957 | library. Check config.log for details. | ||
15812 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | 15958 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 |
15813 | echo "$as_me: error: Your OpenSSL headers do not match your library. | 15959 | echo "$as_me: WARNING: Your OpenSSL headers do not match your |
15814 | Check config.log for details. | 15960 | library. Check config.log for details. |
15815 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | 15961 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} |
15816 | { (exit 1); exit 1; }; } | 15962 | fi |
15817 | 15963 | ||
15818 | fi | 15964 | fi |
15819 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 15965 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
@@ -15821,6 +15967,170 @@ fi | |||
15821 | 15967 | ||
15822 | 15968 | ||
15823 | 15969 | ||
15970 | { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 | ||
15971 | echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; } | ||
15972 | cat >conftest.$ac_ext <<_ACEOF | ||
15973 | /* confdefs.h. */ | ||
15974 | _ACEOF | ||
15975 | cat confdefs.h >>conftest.$ac_ext | ||
15976 | cat >>conftest.$ac_ext <<_ACEOF | ||
15977 | /* end confdefs.h. */ | ||
15978 | |||
15979 | #include <openssl/evp.h> | ||
15980 | int main(void) { SSLeay_add_all_algorithms(); } | ||
15981 | |||
15982 | _ACEOF | ||
15983 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15984 | if { (ac_try="$ac_link" | ||
15985 | case "(($ac_try" in | ||
15986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15987 | *) ac_try_echo=$ac_try;; | ||
15988 | esac | ||
15989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15990 | (eval "$ac_link") 2>conftest.er1 | ||
15991 | ac_status=$? | ||
15992 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15993 | rm -f conftest.er1 | ||
15994 | cat conftest.err >&5 | ||
15995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15996 | (exit $ac_status); } && { | ||
15997 | test -z "$ac_c_werror_flag" || | ||
15998 | test ! -s conftest.err | ||
15999 | } && test -s conftest$ac_exeext && | ||
16000 | $as_test_x conftest$ac_exeext; then | ||
16001 | |||
16002 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16003 | echo "${ECHO_T}yes" >&6; } | ||
16004 | |||
16005 | else | ||
16006 | echo "$as_me: failed program was:" >&5 | ||
16007 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16008 | |||
16009 | |||
16010 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16011 | echo "${ECHO_T}no" >&6; } | ||
16012 | saved_LIBS="$LIBS" | ||
16013 | LIBS="$LIBS -ldl" | ||
16014 | { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 | ||
16015 | echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; } | ||
16016 | cat >conftest.$ac_ext <<_ACEOF | ||
16017 | /* confdefs.h. */ | ||
16018 | _ACEOF | ||
16019 | cat confdefs.h >>conftest.$ac_ext | ||
16020 | cat >>conftest.$ac_ext <<_ACEOF | ||
16021 | /* end confdefs.h. */ | ||
16022 | |||
16023 | #include <openssl/evp.h> | ||
16024 | int main(void) { SSLeay_add_all_algorithms(); } | ||
16025 | |||
16026 | _ACEOF | ||
16027 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16028 | if { (ac_try="$ac_link" | ||
16029 | case "(($ac_try" in | ||
16030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16031 | *) ac_try_echo=$ac_try;; | ||
16032 | esac | ||
16033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16034 | (eval "$ac_link") 2>conftest.er1 | ||
16035 | ac_status=$? | ||
16036 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16037 | rm -f conftest.er1 | ||
16038 | cat conftest.err >&5 | ||
16039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16040 | (exit $ac_status); } && { | ||
16041 | test -z "$ac_c_werror_flag" || | ||
16042 | test ! -s conftest.err | ||
16043 | } && test -s conftest$ac_exeext && | ||
16044 | $as_test_x conftest$ac_exeext; then | ||
16045 | |||
16046 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16047 | echo "${ECHO_T}yes" >&6; } | ||
16048 | |||
16049 | else | ||
16050 | echo "$as_me: failed program was:" >&5 | ||
16051 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16052 | |||
16053 | |||
16054 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16055 | echo "${ECHO_T}no" >&6; } | ||
16056 | LIBS="$saved_LIBS" | ||
16057 | |||
16058 | |||
16059 | fi | ||
16060 | |||
16061 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16062 | conftest$ac_exeext conftest.$ac_ext | ||
16063 | |||
16064 | |||
16065 | fi | ||
16066 | |||
16067 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16068 | conftest$ac_exeext conftest.$ac_ext | ||
16069 | |||
16070 | |||
16071 | # Check whether --with-ssl-engine was given. | ||
16072 | if test "${with_ssl_engine+set}" = set; then | ||
16073 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then | ||
16074 | { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 | ||
16075 | echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; } | ||
16076 | cat >conftest.$ac_ext <<_ACEOF | ||
16077 | /* confdefs.h. */ | ||
16078 | _ACEOF | ||
16079 | cat confdefs.h >>conftest.$ac_ext | ||
16080 | cat >>conftest.$ac_ext <<_ACEOF | ||
16081 | /* end confdefs.h. */ | ||
16082 | #include <openssl/engine.h> | ||
16083 | int | ||
16084 | main () | ||
16085 | { | ||
16086 | |||
16087 | ENGINE_load_builtin_engines();ENGINE_register_all_complete(); | ||
16088 | |||
16089 | ; | ||
16090 | return 0; | ||
16091 | } | ||
16092 | _ACEOF | ||
16093 | rm -f conftest.$ac_objext | ||
16094 | if { (ac_try="$ac_compile" | ||
16095 | case "(($ac_try" in | ||
16096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16097 | *) ac_try_echo=$ac_try;; | ||
16098 | esac | ||
16099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16100 | (eval "$ac_compile") 2>conftest.er1 | ||
16101 | ac_status=$? | ||
16102 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16103 | rm -f conftest.er1 | ||
16104 | cat conftest.err >&5 | ||
16105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16106 | (exit $ac_status); } && { | ||
16107 | test -z "$ac_c_werror_flag" || | ||
16108 | test ! -s conftest.err | ||
16109 | } && test -s conftest.$ac_objext; then | ||
16110 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16111 | echo "${ECHO_T}yes" >&6; } | ||
16112 | |||
16113 | cat >>confdefs.h <<\_ACEOF | ||
16114 | #define USE_OPENSSL_ENGINE 1 | ||
16115 | _ACEOF | ||
16116 | |||
16117 | |||
16118 | else | ||
16119 | echo "$as_me: failed program was:" >&5 | ||
16120 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16121 | |||
16122 | { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 | ||
16123 | echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} | ||
16124 | { (exit 1); exit 1; }; } | ||
16125 | |||
16126 | fi | ||
16127 | |||
16128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16129 | fi | ||
16130 | |||
16131 | fi | ||
16132 | |||
16133 | |||
15824 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | 16134 | # Check for OpenSSL without EVP_aes_{192,256}_cbc |
15825 | { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | 16135 | { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 |
15826 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } | 16136 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } |
@@ -15836,14 +16146,14 @@ cat >>conftest.$ac_ext <<_ACEOF | |||
15836 | int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} | 16146 | int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} |
15837 | 16147 | ||
15838 | _ACEOF | 16148 | _ACEOF |
15839 | rm -f conftest.$ac_objext | 16149 | rm -f conftest.$ac_objext conftest$ac_exeext |
15840 | if { (ac_try="$ac_compile" | 16150 | if { (ac_try="$ac_link" |
15841 | case "(($ac_try" in | 16151 | case "(($ac_try" in |
15842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 16152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
15843 | *) ac_try_echo=$ac_try;; | 16153 | *) ac_try_echo=$ac_try;; |
15844 | esac | 16154 | esac |
15845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 16155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
15846 | (eval "$ac_compile") 2>conftest.er1 | 16156 | (eval "$ac_link") 2>conftest.er1 |
15847 | ac_status=$? | 16157 | ac_status=$? |
15848 | grep -v '^ *+' conftest.er1 >conftest.err | 16158 | grep -v '^ *+' conftest.er1 >conftest.err |
15849 | rm -f conftest.er1 | 16159 | rm -f conftest.er1 |
@@ -15852,7 +16162,8 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |||
15852 | (exit $ac_status); } && { | 16162 | (exit $ac_status); } && { |
15853 | test -z "$ac_c_werror_flag" || | 16163 | test -z "$ac_c_werror_flag" || |
15854 | test ! -s conftest.err | 16164 | test ! -s conftest.err |
15855 | } && test -s conftest.$ac_objext; then | 16165 | } && test -s conftest$ac_exeext && |
16166 | $as_test_x conftest$ac_exeext; then | ||
15856 | 16167 | ||
15857 | { echo "$as_me:$LINENO: result: no" >&5 | 16168 | { echo "$as_me:$LINENO: result: no" >&5 |
15858 | echo "${ECHO_T}no" >&6; } | 16169 | echo "${ECHO_T}no" >&6; } |
@@ -15873,7 +16184,8 @@ _ACEOF | |||
15873 | 16184 | ||
15874 | fi | 16185 | fi |
15875 | 16186 | ||
15876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 16187 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16188 | conftest$ac_exeext conftest.$ac_ext | ||
15877 | 16189 | ||
15878 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | 16190 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, |
15879 | # because the system crypt() is more featureful. | 16191 | # because the system crypt() is more featureful. |
@@ -16021,6 +16333,103 @@ fi | |||
16021 | 16333 | ||
16022 | fi | 16334 | fi |
16023 | 16335 | ||
16336 | # Search for SHA256 support in libc and/or OpenSSL | ||
16337 | |||
16338 | |||
16339 | for ac_func in SHA256_Update EVP_sha256 | ||
16340 | do | ||
16341 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16342 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16343 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16344 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16346 | else | ||
16347 | cat >conftest.$ac_ext <<_ACEOF | ||
16348 | /* confdefs.h. */ | ||
16349 | _ACEOF | ||
16350 | cat confdefs.h >>conftest.$ac_ext | ||
16351 | cat >>conftest.$ac_ext <<_ACEOF | ||
16352 | /* end confdefs.h. */ | ||
16353 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16354 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16355 | #define $ac_func innocuous_$ac_func | ||
16356 | |||
16357 | /* System header to define __stub macros and hopefully few prototypes, | ||
16358 | which can conflict with char $ac_func (); below. | ||
16359 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16360 | <limits.h> exists even on freestanding compilers. */ | ||
16361 | |||
16362 | #ifdef __STDC__ | ||
16363 | # include <limits.h> | ||
16364 | #else | ||
16365 | # include <assert.h> | ||
16366 | #endif | ||
16367 | |||
16368 | #undef $ac_func | ||
16369 | |||
16370 | /* Override any GCC internal prototype to avoid an error. | ||
16371 | Use char because int might match the return type of a GCC | ||
16372 | builtin and then its argument prototype would still apply. */ | ||
16373 | #ifdef __cplusplus | ||
16374 | extern "C" | ||
16375 | #endif | ||
16376 | char $ac_func (); | ||
16377 | /* The GNU C library defines this for functions which it implements | ||
16378 | to always fail with ENOSYS. Some functions are actually named | ||
16379 | something starting with __ and the normal name is an alias. */ | ||
16380 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16381 | choke me | ||
16382 | #endif | ||
16383 | |||
16384 | int | ||
16385 | main () | ||
16386 | { | ||
16387 | return $ac_func (); | ||
16388 | ; | ||
16389 | return 0; | ||
16390 | } | ||
16391 | _ACEOF | ||
16392 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16393 | if { (ac_try="$ac_link" | ||
16394 | case "(($ac_try" in | ||
16395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16396 | *) ac_try_echo=$ac_try;; | ||
16397 | esac | ||
16398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16399 | (eval "$ac_link") 2>conftest.er1 | ||
16400 | ac_status=$? | ||
16401 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16402 | rm -f conftest.er1 | ||
16403 | cat conftest.err >&5 | ||
16404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16405 | (exit $ac_status); } && { | ||
16406 | test -z "$ac_c_werror_flag" || | ||
16407 | test ! -s conftest.err | ||
16408 | } && test -s conftest$ac_exeext && | ||
16409 | $as_test_x conftest$ac_exeext; then | ||
16410 | eval "$as_ac_var=yes" | ||
16411 | else | ||
16412 | echo "$as_me: failed program was:" >&5 | ||
16413 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16414 | |||
16415 | eval "$as_ac_var=no" | ||
16416 | fi | ||
16417 | |||
16418 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16419 | conftest$ac_exeext conftest.$ac_ext | ||
16420 | fi | ||
16421 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16422 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16423 | echo "${ECHO_T}$ac_res" >&6; } | ||
16424 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16425 | cat >>confdefs.h <<_ACEOF | ||
16426 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16427 | _ACEOF | ||
16428 | |||
16429 | fi | ||
16430 | done | ||
16431 | |||
16432 | |||
16024 | 16433 | ||
16025 | { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | 16434 | { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 |
16026 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } | 16435 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } |
@@ -16164,6 +16573,448 @@ fi | |||
16164 | 16573 | ||
16165 | 16574 | ||
16166 | 16575 | ||
16576 | # Check for PAM libs | ||
16577 | PAM_MSG="no" | ||
16578 | |||
16579 | # Check whether --with-pam was given. | ||
16580 | if test "${with_pam+set}" = set; then | ||
16581 | withval=$with_pam; | ||
16582 | if test "x$withval" != "xno" ; then | ||
16583 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
16584 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
16585 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
16586 | echo "$as_me: error: PAM headers not found" >&2;} | ||
16587 | { (exit 1); exit 1; }; } | ||
16588 | fi | ||
16589 | |||
16590 | saved_LIBS="$LIBS" | ||
16591 | |||
16592 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
16593 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
16594 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
16595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16596 | else | ||
16597 | ac_check_lib_save_LIBS=$LIBS | ||
16598 | LIBS="-ldl $LIBS" | ||
16599 | cat >conftest.$ac_ext <<_ACEOF | ||
16600 | /* confdefs.h. */ | ||
16601 | _ACEOF | ||
16602 | cat confdefs.h >>conftest.$ac_ext | ||
16603 | cat >>conftest.$ac_ext <<_ACEOF | ||
16604 | /* end confdefs.h. */ | ||
16605 | |||
16606 | /* Override any GCC internal prototype to avoid an error. | ||
16607 | Use char because int might match the return type of a GCC | ||
16608 | builtin and then its argument prototype would still apply. */ | ||
16609 | #ifdef __cplusplus | ||
16610 | extern "C" | ||
16611 | #endif | ||
16612 | char dlopen (); | ||
16613 | int | ||
16614 | main () | ||
16615 | { | ||
16616 | return dlopen (); | ||
16617 | ; | ||
16618 | return 0; | ||
16619 | } | ||
16620 | _ACEOF | ||
16621 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16622 | if { (ac_try="$ac_link" | ||
16623 | case "(($ac_try" in | ||
16624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16625 | *) ac_try_echo=$ac_try;; | ||
16626 | esac | ||
16627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16628 | (eval "$ac_link") 2>conftest.er1 | ||
16629 | ac_status=$? | ||
16630 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16631 | rm -f conftest.er1 | ||
16632 | cat conftest.err >&5 | ||
16633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16634 | (exit $ac_status); } && { | ||
16635 | test -z "$ac_c_werror_flag" || | ||
16636 | test ! -s conftest.err | ||
16637 | } && test -s conftest$ac_exeext && | ||
16638 | $as_test_x conftest$ac_exeext; then | ||
16639 | ac_cv_lib_dl_dlopen=yes | ||
16640 | else | ||
16641 | echo "$as_me: failed program was:" >&5 | ||
16642 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16643 | |||
16644 | ac_cv_lib_dl_dlopen=no | ||
16645 | fi | ||
16646 | |||
16647 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16648 | conftest$ac_exeext conftest.$ac_ext | ||
16649 | LIBS=$ac_check_lib_save_LIBS | ||
16650 | fi | ||
16651 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
16652 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
16653 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
16654 | cat >>confdefs.h <<_ACEOF | ||
16655 | #define HAVE_LIBDL 1 | ||
16656 | _ACEOF | ||
16657 | |||
16658 | LIBS="-ldl $LIBS" | ||
16659 | |||
16660 | fi | ||
16661 | |||
16662 | |||
16663 | { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
16664 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } | ||
16665 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
16666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16667 | else | ||
16668 | ac_check_lib_save_LIBS=$LIBS | ||
16669 | LIBS="-lpam $LIBS" | ||
16670 | cat >conftest.$ac_ext <<_ACEOF | ||
16671 | /* confdefs.h. */ | ||
16672 | _ACEOF | ||
16673 | cat confdefs.h >>conftest.$ac_ext | ||
16674 | cat >>conftest.$ac_ext <<_ACEOF | ||
16675 | /* end confdefs.h. */ | ||
16676 | |||
16677 | /* Override any GCC internal prototype to avoid an error. | ||
16678 | Use char because int might match the return type of a GCC | ||
16679 | builtin and then its argument prototype would still apply. */ | ||
16680 | #ifdef __cplusplus | ||
16681 | extern "C" | ||
16682 | #endif | ||
16683 | char pam_set_item (); | ||
16684 | int | ||
16685 | main () | ||
16686 | { | ||
16687 | return pam_set_item (); | ||
16688 | ; | ||
16689 | return 0; | ||
16690 | } | ||
16691 | _ACEOF | ||
16692 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16693 | if { (ac_try="$ac_link" | ||
16694 | case "(($ac_try" in | ||
16695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16696 | *) ac_try_echo=$ac_try;; | ||
16697 | esac | ||
16698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16699 | (eval "$ac_link") 2>conftest.er1 | ||
16700 | ac_status=$? | ||
16701 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16702 | rm -f conftest.er1 | ||
16703 | cat conftest.err >&5 | ||
16704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16705 | (exit $ac_status); } && { | ||
16706 | test -z "$ac_c_werror_flag" || | ||
16707 | test ! -s conftest.err | ||
16708 | } && test -s conftest$ac_exeext && | ||
16709 | $as_test_x conftest$ac_exeext; then | ||
16710 | ac_cv_lib_pam_pam_set_item=yes | ||
16711 | else | ||
16712 | echo "$as_me: failed program was:" >&5 | ||
16713 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16714 | |||
16715 | ac_cv_lib_pam_pam_set_item=no | ||
16716 | fi | ||
16717 | |||
16718 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16719 | conftest$ac_exeext conftest.$ac_ext | ||
16720 | LIBS=$ac_check_lib_save_LIBS | ||
16721 | fi | ||
16722 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
16723 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } | ||
16724 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
16725 | cat >>confdefs.h <<_ACEOF | ||
16726 | #define HAVE_LIBPAM 1 | ||
16727 | _ACEOF | ||
16728 | |||
16729 | LIBS="-lpam $LIBS" | ||
16730 | |||
16731 | else | ||
16732 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
16733 | echo "$as_me: error: *** libpam missing" >&2;} | ||
16734 | { (exit 1); exit 1; }; } | ||
16735 | fi | ||
16736 | |||
16737 | |||
16738 | for ac_func in pam_getenvlist | ||
16739 | do | ||
16740 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16741 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16742 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16743 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16745 | else | ||
16746 | cat >conftest.$ac_ext <<_ACEOF | ||
16747 | /* confdefs.h. */ | ||
16748 | _ACEOF | ||
16749 | cat confdefs.h >>conftest.$ac_ext | ||
16750 | cat >>conftest.$ac_ext <<_ACEOF | ||
16751 | /* end confdefs.h. */ | ||
16752 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16753 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16754 | #define $ac_func innocuous_$ac_func | ||
16755 | |||
16756 | /* System header to define __stub macros and hopefully few prototypes, | ||
16757 | which can conflict with char $ac_func (); below. | ||
16758 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16759 | <limits.h> exists even on freestanding compilers. */ | ||
16760 | |||
16761 | #ifdef __STDC__ | ||
16762 | # include <limits.h> | ||
16763 | #else | ||
16764 | # include <assert.h> | ||
16765 | #endif | ||
16766 | |||
16767 | #undef $ac_func | ||
16768 | |||
16769 | /* Override any GCC internal prototype to avoid an error. | ||
16770 | Use char because int might match the return type of a GCC | ||
16771 | builtin and then its argument prototype would still apply. */ | ||
16772 | #ifdef __cplusplus | ||
16773 | extern "C" | ||
16774 | #endif | ||
16775 | char $ac_func (); | ||
16776 | /* The GNU C library defines this for functions which it implements | ||
16777 | to always fail with ENOSYS. Some functions are actually named | ||
16778 | something starting with __ and the normal name is an alias. */ | ||
16779 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16780 | choke me | ||
16781 | #endif | ||
16782 | |||
16783 | int | ||
16784 | main () | ||
16785 | { | ||
16786 | return $ac_func (); | ||
16787 | ; | ||
16788 | return 0; | ||
16789 | } | ||
16790 | _ACEOF | ||
16791 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16792 | if { (ac_try="$ac_link" | ||
16793 | case "(($ac_try" in | ||
16794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16795 | *) ac_try_echo=$ac_try;; | ||
16796 | esac | ||
16797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16798 | (eval "$ac_link") 2>conftest.er1 | ||
16799 | ac_status=$? | ||
16800 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16801 | rm -f conftest.er1 | ||
16802 | cat conftest.err >&5 | ||
16803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16804 | (exit $ac_status); } && { | ||
16805 | test -z "$ac_c_werror_flag" || | ||
16806 | test ! -s conftest.err | ||
16807 | } && test -s conftest$ac_exeext && | ||
16808 | $as_test_x conftest$ac_exeext; then | ||
16809 | eval "$as_ac_var=yes" | ||
16810 | else | ||
16811 | echo "$as_me: failed program was:" >&5 | ||
16812 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16813 | |||
16814 | eval "$as_ac_var=no" | ||
16815 | fi | ||
16816 | |||
16817 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16818 | conftest$ac_exeext conftest.$ac_ext | ||
16819 | fi | ||
16820 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16821 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16822 | echo "${ECHO_T}$ac_res" >&6; } | ||
16823 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16824 | cat >>confdefs.h <<_ACEOF | ||
16825 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16826 | _ACEOF | ||
16827 | |||
16828 | fi | ||
16829 | done | ||
16830 | |||
16831 | |||
16832 | for ac_func in pam_putenv | ||
16833 | do | ||
16834 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16835 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16836 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16837 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16839 | else | ||
16840 | cat >conftest.$ac_ext <<_ACEOF | ||
16841 | /* confdefs.h. */ | ||
16842 | _ACEOF | ||
16843 | cat confdefs.h >>conftest.$ac_ext | ||
16844 | cat >>conftest.$ac_ext <<_ACEOF | ||
16845 | /* end confdefs.h. */ | ||
16846 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16847 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16848 | #define $ac_func innocuous_$ac_func | ||
16849 | |||
16850 | /* System header to define __stub macros and hopefully few prototypes, | ||
16851 | which can conflict with char $ac_func (); below. | ||
16852 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16853 | <limits.h> exists even on freestanding compilers. */ | ||
16854 | |||
16855 | #ifdef __STDC__ | ||
16856 | # include <limits.h> | ||
16857 | #else | ||
16858 | # include <assert.h> | ||
16859 | #endif | ||
16860 | |||
16861 | #undef $ac_func | ||
16862 | |||
16863 | /* Override any GCC internal prototype to avoid an error. | ||
16864 | Use char because int might match the return type of a GCC | ||
16865 | builtin and then its argument prototype would still apply. */ | ||
16866 | #ifdef __cplusplus | ||
16867 | extern "C" | ||
16868 | #endif | ||
16869 | char $ac_func (); | ||
16870 | /* The GNU C library defines this for functions which it implements | ||
16871 | to always fail with ENOSYS. Some functions are actually named | ||
16872 | something starting with __ and the normal name is an alias. */ | ||
16873 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16874 | choke me | ||
16875 | #endif | ||
16876 | |||
16877 | int | ||
16878 | main () | ||
16879 | { | ||
16880 | return $ac_func (); | ||
16881 | ; | ||
16882 | return 0; | ||
16883 | } | ||
16884 | _ACEOF | ||
16885 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16886 | if { (ac_try="$ac_link" | ||
16887 | case "(($ac_try" in | ||
16888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16889 | *) ac_try_echo=$ac_try;; | ||
16890 | esac | ||
16891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16892 | (eval "$ac_link") 2>conftest.er1 | ||
16893 | ac_status=$? | ||
16894 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16895 | rm -f conftest.er1 | ||
16896 | cat conftest.err >&5 | ||
16897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16898 | (exit $ac_status); } && { | ||
16899 | test -z "$ac_c_werror_flag" || | ||
16900 | test ! -s conftest.err | ||
16901 | } && test -s conftest$ac_exeext && | ||
16902 | $as_test_x conftest$ac_exeext; then | ||
16903 | eval "$as_ac_var=yes" | ||
16904 | else | ||
16905 | echo "$as_me: failed program was:" >&5 | ||
16906 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16907 | |||
16908 | eval "$as_ac_var=no" | ||
16909 | fi | ||
16910 | |||
16911 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16912 | conftest$ac_exeext conftest.$ac_ext | ||
16913 | fi | ||
16914 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16915 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16916 | echo "${ECHO_T}$ac_res" >&6; } | ||
16917 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16918 | cat >>confdefs.h <<_ACEOF | ||
16919 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16920 | _ACEOF | ||
16921 | |||
16922 | fi | ||
16923 | done | ||
16924 | |||
16925 | LIBS="$saved_LIBS" | ||
16926 | |||
16927 | PAM_MSG="yes" | ||
16928 | |||
16929 | LIBPAM="-lpam" | ||
16930 | |||
16931 | cat >>confdefs.h <<\_ACEOF | ||
16932 | #define USE_PAM 1 | ||
16933 | _ACEOF | ||
16934 | |||
16935 | |||
16936 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
16937 | case "$LIBS" in | ||
16938 | *-ldl*) | ||
16939 | # libdl already in LIBS | ||
16940 | ;; | ||
16941 | *) | ||
16942 | LIBPAM="$LIBPAM -ldl" | ||
16943 | ;; | ||
16944 | esac | ||
16945 | fi | ||
16946 | |||
16947 | fi | ||
16948 | |||
16949 | |||
16950 | fi | ||
16951 | |||
16952 | |||
16953 | # Check for older PAM | ||
16954 | if test "x$PAM_MSG" = "xyes" ; then | ||
16955 | # Check PAM strerror arguments (old PAM) | ||
16956 | { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
16957 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } | ||
16958 | cat >conftest.$ac_ext <<_ACEOF | ||
16959 | /* confdefs.h. */ | ||
16960 | _ACEOF | ||
16961 | cat confdefs.h >>conftest.$ac_ext | ||
16962 | cat >>conftest.$ac_ext <<_ACEOF | ||
16963 | /* end confdefs.h. */ | ||
16964 | |||
16965 | #include <stdlib.h> | ||
16966 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
16967 | #include <security/pam_appl.h> | ||
16968 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
16969 | #include <pam/pam_appl.h> | ||
16970 | #endif | ||
16971 | |||
16972 | int | ||
16973 | main () | ||
16974 | { | ||
16975 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
16976 | ; | ||
16977 | return 0; | ||
16978 | } | ||
16979 | _ACEOF | ||
16980 | rm -f conftest.$ac_objext | ||
16981 | if { (ac_try="$ac_compile" | ||
16982 | case "(($ac_try" in | ||
16983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16984 | *) ac_try_echo=$ac_try;; | ||
16985 | esac | ||
16986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16987 | (eval "$ac_compile") 2>conftest.er1 | ||
16988 | ac_status=$? | ||
16989 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16990 | rm -f conftest.er1 | ||
16991 | cat conftest.err >&5 | ||
16992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16993 | (exit $ac_status); } && { | ||
16994 | test -z "$ac_c_werror_flag" || | ||
16995 | test ! -s conftest.err | ||
16996 | } && test -s conftest.$ac_objext; then | ||
16997 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16998 | echo "${ECHO_T}no" >&6; } | ||
16999 | else | ||
17000 | echo "$as_me: failed program was:" >&5 | ||
17001 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17002 | |||
17003 | |||
17004 | |||
17005 | cat >>confdefs.h <<\_ACEOF | ||
17006 | #define HAVE_OLD_PAM 1 | ||
17007 | _ACEOF | ||
17008 | |||
17009 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17010 | echo "${ECHO_T}yes" >&6; } | ||
17011 | PAM_MSG="yes (old library)" | ||
17012 | |||
17013 | |||
17014 | fi | ||
17015 | |||
17016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17017 | fi | ||
16167 | 17018 | ||
16168 | # Do we want to force the use of the rand helper? | 17019 | # Do we want to force the use of the rand helper? |
16169 | 17020 | ||
@@ -19363,6 +20214,34 @@ cat >>conftest.$ac_ext <<_ACEOF | |||
19363 | #define __USE_ISOC99 | 20214 | #define __USE_ISOC99 |
19364 | #include <limits.h> | 20215 | #include <limits.h> |
19365 | #define DATA "conftest.llminmax" | 20216 | #define DATA "conftest.llminmax" |
20217 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
20218 | |||
20219 | /* | ||
20220 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
20221 | * we do this the hard way. | ||
20222 | */ | ||
20223 | static int | ||
20224 | fprint_ll(FILE *f, long long n) | ||
20225 | { | ||
20226 | unsigned int i; | ||
20227 | int l[sizeof(long long) * 8]; | ||
20228 | |||
20229 | if (n < 0) | ||
20230 | if (fprintf(f, "-") < 0) | ||
20231 | return -1; | ||
20232 | for (i = 0; n != 0; i++) { | ||
20233 | l[i] = my_abs(n % 10); | ||
20234 | n /= 10; | ||
20235 | } | ||
20236 | do { | ||
20237 | if (fprintf(f, "%d", l[--i]) < 0) | ||
20238 | return -1; | ||
20239 | } while (i != 0); | ||
20240 | if (fprintf(f, " ") < 0) | ||
20241 | return -1; | ||
20242 | return 0; | ||
20243 | } | ||
20244 | |||
19366 | int main(void) { | 20245 | int main(void) { |
19367 | FILE *f; | 20246 | FILE *f; |
19368 | long long i, llmin, llmax = 0; | 20247 | long long i, llmin, llmax = 0; |
@@ -19384,14 +20263,18 @@ int main(void) { | |||
19384 | 20263 | ||
19385 | /* Sanity check */ | 20264 | /* Sanity check */ |
19386 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | 20265 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax |
19387 | || llmax - 1 > llmax) { | 20266 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 |
20267 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
19388 | fprintf(f, "unknown unknown\n"); | 20268 | fprintf(f, "unknown unknown\n"); |
19389 | exit(2); | 20269 | exit(2); |
19390 | } | 20270 | } |
19391 | 20271 | ||
19392 | if (fprintf(f ,"%lld %lld", llmin, llmax) < 0) | 20272 | if (fprint_ll(f, llmin) < 0) |
19393 | exit(3); | 20273 | exit(3); |
19394 | 20274 | if (fprint_ll(f, llmax) < 0) | |
20275 | exit(4); | ||
20276 | if (fclose(f) < 0) | ||
20277 | exit(5); | ||
19395 | exit(0); | 20278 | exit(0); |
19396 | } | 20279 | } |
19397 | 20280 | ||
@@ -19420,17 +20303,6 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |||
19420 | llong_min=`$AWK '{print $1}' conftest.llminmax` | 20303 | llong_min=`$AWK '{print $1}' conftest.llminmax` |
19421 | llong_max=`$AWK '{print $2}' conftest.llminmax` | 20304 | llong_max=`$AWK '{print $2}' conftest.llminmax` |
19422 | 20305 | ||
19423 | # snprintf on some Tru64s doesn't understand "%lld" | ||
19424 | case "$host" in | ||
19425 | alpha-dec-osf*) | ||
19426 | if test "x$ac_cv_sizeof_long_long_int" = "x8" && | ||
19427 | test "x$llong_max" = "xld"; then | ||
19428 | llong_min="-9223372036854775808" | ||
19429 | llong_max="9223372036854775807" | ||
19430 | fi | ||
19431 | ;; | ||
19432 | esac | ||
19433 | |||
19434 | { echo "$as_me:$LINENO: result: $llong_max" >&5 | 20306 | { echo "$as_me:$LINENO: result: $llong_max" >&5 |
19435 | echo "${ECHO_T}$llong_max" >&6; } | 20307 | echo "${ECHO_T}$llong_max" >&6; } |
19436 | 20308 | ||
@@ -23593,7 +24465,7 @@ fi | |||
23593 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | 24465 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` |
23594 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | 24466 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` |
23595 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | 24467 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" |
23596 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | 24468 | LIBS="$LIBS $LIBOPENSC_LIBS" |
23597 | cat >>confdefs.h <<\_ACEOF | 24469 | cat >>confdefs.h <<\_ACEOF |
23598 | #define SMARTCARD 1 | 24470 | #define SMARTCARD 1 |
23599 | _ACEOF | 24471 | _ACEOF |
@@ -24314,37 +25186,24 @@ LIBSELINUX="" | |||
24314 | # Check whether --with-selinux was given. | 25186 | # Check whether --with-selinux was given. |
24315 | if test "${with_selinux+set}" = set; then | 25187 | if test "${with_selinux+set}" = set; then |
24316 | withval=$with_selinux; if test "x$withval" != "xno" ; then | 25188 | withval=$with_selinux; if test "x$withval" != "xno" ; then |
24317 | if test "x$withval" != "xyes"; then | ||
24318 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
24319 | if test -n "${need_dash_r}"; then | ||
24320 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
24321 | else | ||
24322 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
24323 | fi | ||
24324 | fi | ||
24325 | 25189 | ||
24326 | cat >>confdefs.h <<\_ACEOF | 25190 | cat >>confdefs.h <<\_ACEOF |
24327 | #define WITH_SELINUX 1 | 25191 | #define WITH_SELINUX 1 |
24328 | _ACEOF | 25192 | _ACEOF |
24329 | 25193 | ||
24330 | SELINUX_MSG="yes" | 25194 | SELINUX_MSG="yes" |
24331 | 25195 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | |
24332 | for ac_header in selinux/selinux.h | 25196 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 |
24333 | do | 25197 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } |
24334 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 25198 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then |
24335 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24336 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
24337 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
24338 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 25199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24340 | fi | 25200 | fi |
24341 | ac_res=`eval echo '${'$as_ac_Header'}'` | 25201 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 |
24342 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 25202 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } |
24343 | echo "${ECHO_T}$ac_res" >&6; } | ||
24344 | else | 25203 | else |
24345 | # Is the header compilable? | 25204 | # Is the header compilable? |
24346 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 25205 | { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 |
24347 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 25206 | echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; } |
24348 | cat >conftest.$ac_ext <<_ACEOF | 25207 | cat >conftest.$ac_ext <<_ACEOF |
24349 | /* confdefs.h. */ | 25208 | /* confdefs.h. */ |
24350 | _ACEOF | 25209 | _ACEOF |
@@ -24352,7 +25211,7 @@ cat confdefs.h >>conftest.$ac_ext | |||
24352 | cat >>conftest.$ac_ext <<_ACEOF | 25211 | cat >>conftest.$ac_ext <<_ACEOF |
24353 | /* end confdefs.h. */ | 25212 | /* end confdefs.h. */ |
24354 | $ac_includes_default | 25213 | $ac_includes_default |
24355 | #include <$ac_header> | 25214 | #include <selinux/selinux.h> |
24356 | _ACEOF | 25215 | _ACEOF |
24357 | rm -f conftest.$ac_objext | 25216 | rm -f conftest.$ac_objext |
24358 | if { (ac_try="$ac_compile" | 25217 | if { (ac_try="$ac_compile" |
@@ -24384,15 +25243,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
24384 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 25243 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
24385 | 25244 | ||
24386 | # Is the header present? | 25245 | # Is the header present? |
24387 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 25246 | { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 |
24388 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 25247 | echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; } |
24389 | cat >conftest.$ac_ext <<_ACEOF | 25248 | cat >conftest.$ac_ext <<_ACEOF |
24390 | /* confdefs.h. */ | 25249 | /* confdefs.h. */ |
24391 | _ACEOF | 25250 | _ACEOF |
24392 | cat confdefs.h >>conftest.$ac_ext | 25251 | cat confdefs.h >>conftest.$ac_ext |
24393 | cat >>conftest.$ac_ext <<_ACEOF | 25252 | cat >>conftest.$ac_ext <<_ACEOF |
24394 | /* end confdefs.h. */ | 25253 | /* end confdefs.h. */ |
24395 | #include <$ac_header> | 25254 | #include <selinux/selinux.h> |
24396 | _ACEOF | 25255 | _ACEOF |
24397 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 25256 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
24398 | case "(($ac_try" in | 25257 | case "(($ac_try" in |
@@ -24425,25 +25284,25 @@ echo "${ECHO_T}$ac_header_preproc" >&6; } | |||
24425 | # So? What about this header? | 25284 | # So? What about this header? |
24426 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 25285 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24427 | yes:no: ) | 25286 | yes:no: ) |
24428 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 25287 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24429 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 25288 | echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
24430 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 25289 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 |
24431 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 25290 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} |
24432 | ac_header_preproc=yes | 25291 | ac_header_preproc=yes |
24433 | ;; | 25292 | ;; |
24434 | no:yes:* ) | 25293 | no:yes:* ) |
24435 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 25294 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 |
24436 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 25295 | echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} |
24437 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | 25296 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 |
24438 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | 25297 | echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} |
24439 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 25298 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 |
24440 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 25299 | echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} |
24441 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | 25300 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 |
24442 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | 25301 | echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} |
24443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 25302 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 |
24444 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 25303 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} |
24445 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 25304 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 |
24446 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 25305 | echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} |
24447 | ( cat <<\_ASBOX | 25306 | ( cat <<\_ASBOX |
24448 | ## ------------------------------------------- ## | 25307 | ## ------------------------------------------- ## |
24449 | ## Report this to openssh-unix-dev@mindrot.org ## | 25308 | ## Report this to openssh-unix-dev@mindrot.org ## |
@@ -24452,28 +25311,193 @@ _ASBOX | |||
24452 | ) | sed "s/^/$as_me: WARNING: /" >&2 | 25311 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
24453 | ;; | 25312 | ;; |
24454 | esac | 25313 | esac |
24455 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 25314 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 |
24456 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 25315 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } |
24457 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 25316 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then |
24458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 25317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24459 | else | 25318 | else |
24460 | eval "$as_ac_Header=\$ac_header_preproc" | 25319 | ac_cv_header_selinux_selinux_h=$ac_header_preproc |
24461 | fi | 25320 | fi |
24462 | ac_res=`eval echo '${'$as_ac_Header'}'` | 25321 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 |
24463 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 25322 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } |
24464 | echo "${ECHO_T}$ac_res" >&6; } | ||
24465 | 25323 | ||
24466 | fi | 25324 | fi |
24467 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 25325 | if test $ac_cv_header_selinux_selinux_h = yes; then |
24468 | cat >>confdefs.h <<_ACEOF | 25326 | : |
24469 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 25327 | else |
25328 | { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 | ||
25329 | echo "$as_me: error: SELinux support requires selinux.h header" >&2;} | ||
25330 | { (exit 1); exit 1; }; } | ||
25331 | fi | ||
25332 | |||
25333 | |||
25334 | { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 | ||
25335 | echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; } | ||
25336 | if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then | ||
25337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25338 | else | ||
25339 | ac_check_lib_save_LIBS=$LIBS | ||
25340 | LIBS="-lselinux $LIBS" | ||
25341 | cat >conftest.$ac_ext <<_ACEOF | ||
25342 | /* confdefs.h. */ | ||
25343 | _ACEOF | ||
25344 | cat confdefs.h >>conftest.$ac_ext | ||
25345 | cat >>conftest.$ac_ext <<_ACEOF | ||
25346 | /* end confdefs.h. */ | ||
25347 | |||
25348 | /* Override any GCC internal prototype to avoid an error. | ||
25349 | Use char because int might match the return type of a GCC | ||
25350 | builtin and then its argument prototype would still apply. */ | ||
25351 | #ifdef __cplusplus | ||
25352 | extern "C" | ||
25353 | #endif | ||
25354 | char setexeccon (); | ||
25355 | int | ||
25356 | main () | ||
25357 | { | ||
25358 | return setexeccon (); | ||
25359 | ; | ||
25360 | return 0; | ||
25361 | } | ||
24470 | _ACEOF | 25362 | _ACEOF |
25363 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25364 | if { (ac_try="$ac_link" | ||
25365 | case "(($ac_try" in | ||
25366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25367 | *) ac_try_echo=$ac_try;; | ||
25368 | esac | ||
25369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25370 | (eval "$ac_link") 2>conftest.er1 | ||
25371 | ac_status=$? | ||
25372 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25373 | rm -f conftest.er1 | ||
25374 | cat conftest.err >&5 | ||
25375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25376 | (exit $ac_status); } && { | ||
25377 | test -z "$ac_c_werror_flag" || | ||
25378 | test ! -s conftest.err | ||
25379 | } && test -s conftest$ac_exeext && | ||
25380 | $as_test_x conftest$ac_exeext; then | ||
25381 | ac_cv_lib_selinux_setexeccon=yes | ||
25382 | else | ||
25383 | echo "$as_me: failed program was:" >&5 | ||
25384 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24471 | 25385 | ||
25386 | ac_cv_lib_selinux_setexeccon=no | ||
25387 | fi | ||
25388 | |||
25389 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25390 | conftest$ac_exeext conftest.$ac_ext | ||
25391 | LIBS=$ac_check_lib_save_LIBS | ||
25392 | fi | ||
25393 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
25394 | echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; } | ||
25395 | if test $ac_cv_lib_selinux_setexeccon = yes; then | ||
25396 | LIBSELINUX="-lselinux" | ||
25397 | else | ||
25398 | { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 | ||
25399 | echo "$as_me: error: SELinux support requires libselinux library" >&2;} | ||
25400 | { (exit 1); exit 1; }; } | ||
24472 | fi | 25401 | fi |
24473 | 25402 | ||
25403 | save_LIBS="$LIBS" | ||
25404 | LIBS="$LIBS $LIBSELINUX" | ||
25405 | |||
25406 | |||
25407 | for ac_func in getseuserbyname get_default_context_with_level | ||
25408 | do | ||
25409 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
25410 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
25411 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
25412 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25414 | else | ||
25415 | cat >conftest.$ac_ext <<_ACEOF | ||
25416 | /* confdefs.h. */ | ||
25417 | _ACEOF | ||
25418 | cat confdefs.h >>conftest.$ac_ext | ||
25419 | cat >>conftest.$ac_ext <<_ACEOF | ||
25420 | /* end confdefs.h. */ | ||
25421 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
25422 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
25423 | #define $ac_func innocuous_$ac_func | ||
25424 | |||
25425 | /* System header to define __stub macros and hopefully few prototypes, | ||
25426 | which can conflict with char $ac_func (); below. | ||
25427 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
25428 | <limits.h> exists even on freestanding compilers. */ | ||
25429 | |||
25430 | #ifdef __STDC__ | ||
25431 | # include <limits.h> | ||
25432 | #else | ||
25433 | # include <assert.h> | ||
25434 | #endif | ||
25435 | |||
25436 | #undef $ac_func | ||
25437 | |||
25438 | /* Override any GCC internal prototype to avoid an error. | ||
25439 | Use char because int might match the return type of a GCC | ||
25440 | builtin and then its argument prototype would still apply. */ | ||
25441 | #ifdef __cplusplus | ||
25442 | extern "C" | ||
25443 | #endif | ||
25444 | char $ac_func (); | ||
25445 | /* The GNU C library defines this for functions which it implements | ||
25446 | to always fail with ENOSYS. Some functions are actually named | ||
25447 | something starting with __ and the normal name is an alias. */ | ||
25448 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
25449 | choke me | ||
25450 | #endif | ||
25451 | |||
25452 | int | ||
25453 | main () | ||
25454 | { | ||
25455 | return $ac_func (); | ||
25456 | ; | ||
25457 | return 0; | ||
25458 | } | ||
25459 | _ACEOF | ||
25460 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25461 | if { (ac_try="$ac_link" | ||
25462 | case "(($ac_try" in | ||
25463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25464 | *) ac_try_echo=$ac_try;; | ||
25465 | esac | ||
25466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25467 | (eval "$ac_link") 2>conftest.er1 | ||
25468 | ac_status=$? | ||
25469 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25470 | rm -f conftest.er1 | ||
25471 | cat conftest.err >&5 | ||
25472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25473 | (exit $ac_status); } && { | ||
25474 | test -z "$ac_c_werror_flag" || | ||
25475 | test ! -s conftest.err | ||
25476 | } && test -s conftest$ac_exeext && | ||
25477 | $as_test_x conftest$ac_exeext; then | ||
25478 | eval "$as_ac_var=yes" | ||
25479 | else | ||
25480 | echo "$as_me: failed program was:" >&5 | ||
25481 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25482 | |||
25483 | eval "$as_ac_var=no" | ||
25484 | fi | ||
25485 | |||
25486 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25487 | conftest$ac_exeext conftest.$ac_ext | ||
25488 | fi | ||
25489 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
25490 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
25491 | echo "${ECHO_T}$ac_res" >&6; } | ||
25492 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
25493 | cat >>confdefs.h <<_ACEOF | ||
25494 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
25495 | _ACEOF | ||
25496 | |||
25497 | fi | ||
24474 | done | 25498 | done |
24475 | 25499 | ||
24476 | LIBSELINUX="-lselinux" | 25500 | LIBS="$save_LIBS" |
24477 | fi | 25501 | fi |
24478 | 25502 | ||
24479 | fi | 25503 | fi |
@@ -27187,17 +28211,10 @@ if test ! -z "$blibpath" ; then | |||
27187 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | 28211 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} |
27188 | fi | 28212 | fi |
27189 | 28213 | ||
27190 | if test "$PAM_MSG" = yes ; then | ||
27191 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
27192 | fi | ||
27193 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
27194 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
27195 | fi | ||
27196 | |||
27197 | CFLAGS="$CFLAGS $werror_flags" | 28214 | CFLAGS="$CFLAGS $werror_flags" |
27198 | 28215 | ||
27199 | 28216 | ||
27200 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh" | 28217 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh" |
27201 | 28218 | ||
27202 | cat >confcache <<\_ACEOF | 28219 | cat >confcache <<\_ACEOF |
27203 | # This file is a shell script that caches the results of configure | 28220 | # This file is a shell script that caches the results of configure |
@@ -27756,7 +28773,9 @@ do | |||
27756 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | 28773 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
27757 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | 28774 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; |
27758 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | 28775 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; |
28776 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
27759 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | 28777 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; |
28778 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
27760 | "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | 28779 | "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; |
27761 | "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | 28780 | "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; |
27762 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | 28781 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; |
@@ -27897,6 +28916,7 @@ STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim | |||
27897 | LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim | 28916 | LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim |
27898 | PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim | 28917 | PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim |
27899 | LD!$LD$ac_delim | 28918 | LD!$LD$ac_delim |
28919 | SSHDLIBS!$SSHDLIBS$ac_delim | ||
27900 | LIBWRAP!$LIBWRAP$ac_delim | 28920 | LIBWRAP!$LIBWRAP$ac_delim |
27901 | LIBEDIT!$LIBEDIT$ac_delim | 28921 | LIBEDIT!$LIBEDIT$ac_delim |
27902 | LIBPAM!$LIBPAM$ac_delim | 28922 | LIBPAM!$LIBPAM$ac_delim |
@@ -27917,7 +28937,6 @@ PROG_DF!$PROG_DF$ac_delim | |||
27917 | PROG_VMSTAT!$PROG_VMSTAT$ac_delim | 28937 | PROG_VMSTAT!$PROG_VMSTAT$ac_delim |
27918 | PROG_UPTIME!$PROG_UPTIME$ac_delim | 28938 | PROG_UPTIME!$PROG_UPTIME$ac_delim |
27919 | PROG_IPCS!$PROG_IPCS$ac_delim | 28939 | PROG_IPCS!$PROG_IPCS$ac_delim |
27920 | PROG_TAIL!$PROG_TAIL$ac_delim | ||
27921 | _ACEOF | 28940 | _ACEOF |
27922 | 28941 | ||
27923 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | 28942 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
@@ -27959,6 +28978,7 @@ _ACEOF | |||
27959 | ac_delim='%!_!# ' | 28978 | ac_delim='%!_!# ' |
27960 | for ac_last_try in false false false false false :; do | 28979 | for ac_last_try in false false false false false :; do |
27961 | cat >conf$$subs.sed <<_ACEOF | 28980 | cat >conf$$subs.sed <<_ACEOF |
28981 | PROG_TAIL!$PROG_TAIL$ac_delim | ||
27962 | INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim | 28982 | INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim |
27963 | OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim | 28983 | OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim |
27964 | LIBSELINUX!$LIBSELINUX$ac_delim | 28984 | LIBSELINUX!$LIBSELINUX$ac_delim |
@@ -27975,7 +28995,7 @@ LIBOBJS!$LIBOBJS$ac_delim | |||
27975 | LTLIBOBJS!$LTLIBOBJS$ac_delim | 28995 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
27976 | _ACEOF | 28996 | _ACEOF |
27977 | 28997 | ||
27978 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then | 28998 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then |
27979 | break | 28999 | break |
27980 | elif $ac_last_try; then | 29000 | elif $ac_last_try; then |
27981 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 29001 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
@@ -28443,6 +29463,7 @@ echo " sshd superuser user PATH: $J" | |||
28443 | fi | 29463 | fi |
28444 | echo " Manpage format: $MANTYPE" | 29464 | echo " Manpage format: $MANTYPE" |
28445 | echo " PAM support: $PAM_MSG" | 29465 | echo " PAM support: $PAM_MSG" |
29466 | echo " OSF SIA support: $SIA_MSG" | ||
28446 | echo " KerberosV support: $KRB5_MSG" | 29467 | echo " KerberosV support: $KRB5_MSG" |
28447 | echo " SELinux support: $SELINUX_MSG" | 29468 | echo " SELinux support: $SELINUX_MSG" |
28448 | echo " Smartcard support: $SCARD_MSG" | 29469 | echo " Smartcard support: $SCARD_MSG" |
@@ -28450,6 +29471,7 @@ echo " S/KEY support: $SKEY_MSG" | |||
28450 | echo " TCP Wrappers support: $TCPW_MSG" | 29471 | echo " TCP Wrappers support: $TCPW_MSG" |
28451 | echo " MD5 password support: $MD5_MSG" | 29472 | echo " MD5 password support: $MD5_MSG" |
28452 | echo " libedit support: $LIBEDIT_MSG" | 29473 | echo " libedit support: $LIBEDIT_MSG" |
29474 | echo " Solaris process contract support: $SPC_MSG" | ||
28453 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | 29475 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" |
28454 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | 29476 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" |
28455 | echo " BSD Auth support: $BSD_AUTH_MSG" | 29477 | echo " BSD Auth support: $BSD_AUTH_MSG" |