diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 514 |
1 files changed, 481 insertions, 33 deletions
@@ -827,6 +827,7 @@ Optional Features: | |||
827 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | 827 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
828 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | 828 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
829 | --disable-largefile omit support for large files | 829 | --disable-largefile omit support for large files |
830 | --disable-strip Disable calling strip(1) on install | ||
830 | --disable-lastlog disable use of lastlog even if detected no | 831 | --disable-lastlog disable use of lastlog even if detected no |
831 | --disable-utmp disable use of utmp even if detected no | 832 | --disable-utmp disable use of utmp even if detected no |
832 | --disable-utmpx disable use of utmpx even if detected no | 833 | --disable-utmpx disable use of utmpx even if detected no |
@@ -2719,6 +2720,45 @@ fi | |||
2719 | test -n "$PERL" && break | 2720 | test -n "$PERL" && break |
2720 | done | 2721 | done |
2721 | 2722 | ||
2723 | # Extract the first word of "sed", so it can be a program name with args. | ||
2724 | set dummy sed; ac_word=$2 | ||
2725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2727 | if test "${ac_cv_path_SED+set}" = set; then | ||
2728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2729 | else | ||
2730 | case $SED in | ||
2731 | [\\/]* | ?:[\\/]*) | ||
2732 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
2733 | ;; | ||
2734 | *) | ||
2735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2736 | for as_dir in $PATH | ||
2737 | do | ||
2738 | IFS=$as_save_IFS | ||
2739 | test -z "$as_dir" && as_dir=. | ||
2740 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2742 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
2743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2744 | break 2 | ||
2745 | fi | ||
2746 | done | ||
2747 | done | ||
2748 | |||
2749 | ;; | ||
2750 | esac | ||
2751 | fi | ||
2752 | SED=$ac_cv_path_SED | ||
2753 | |||
2754 | if test -n "$SED"; then | ||
2755 | echo "$as_me:$LINENO: result: $SED" >&5 | ||
2756 | echo "${ECHO_T}$SED" >&6 | ||
2757 | else | ||
2758 | echo "$as_me:$LINENO: result: no" >&5 | ||
2759 | echo "${ECHO_T}no" >&6 | ||
2760 | fi | ||
2761 | |||
2722 | 2762 | ||
2723 | # Extract the first word of "ent", so it can be a program name with args. | 2763 | # Extract the first word of "ent", so it can be a program name with args. |
2724 | set dummy ent; ac_word=$2 | 2764 | set dummy ent; ac_word=$2 |
@@ -3660,8 +3700,17 @@ _ACEOF | |||
3660 | #define LOGIN_NEEDS_UTMPX 1 | 3700 | #define LOGIN_NEEDS_UTMPX 1 |
3661 | _ACEOF | 3701 | _ACEOF |
3662 | 3702 | ||
3703 | cat >>confdefs.h <<\_ACEOF | ||
3704 | #define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV | ||
3705 | _ACEOF | ||
3706 | |||
3707 | cat >>confdefs.h <<\_ACEOF | ||
3708 | #define SETPROCTITLE_PS_PADDING '\0' | ||
3709 | _ACEOF | ||
3710 | |||
3663 | ;; | 3711 | ;; |
3664 | *-*-cygwin*) | 3712 | *-*-cygwin*) |
3713 | check_for_libcrypt_later=1 | ||
3665 | LIBS="$LIBS /usr/lib/textmode.o" | 3714 | LIBS="$LIBS /usr/lib/textmode.o" |
3666 | cat >>confdefs.h <<\_ACEOF | 3715 | cat >>confdefs.h <<\_ACEOF |
3667 | #define HAVE_CYGWIN 1 | 3716 | #define HAVE_CYGWIN 1 |
@@ -3782,7 +3831,7 @@ _ACEOF | |||
3782 | _ACEOF | 3831 | _ACEOF |
3783 | 3832 | ||
3784 | cat >>confdefs.h <<\_ACEOF | 3833 | cat >>confdefs.h <<\_ACEOF |
3785 | #define SPT_TYPE SPT_PSTAT | 3834 | #define SETPROCTITLE_STRATEGY PS_USE_PSTAT |
3786 | _ACEOF | 3835 | _ACEOF |
3787 | 3836 | ||
3788 | LIBS="$LIBS -lsec -lsecpw" | 3837 | LIBS="$LIBS -lsec -lsecpw" |
@@ -3884,7 +3933,7 @@ _ACEOF | |||
3884 | _ACEOF | 3933 | _ACEOF |
3885 | 3934 | ||
3886 | cat >>confdefs.h <<\_ACEOF | 3935 | cat >>confdefs.h <<\_ACEOF |
3887 | #define SPT_TYPE SPT_PSTAT | 3936 | #define SETPROCTITLE_STRATEGY PS_USE_PSTAT |
3888 | _ACEOF | 3937 | _ACEOF |
3889 | 3938 | ||
3890 | LIBS="$LIBS -lsec" | 3939 | LIBS="$LIBS -lsec" |
@@ -3986,7 +4035,7 @@ _ACEOF | |||
3986 | _ACEOF | 4035 | _ACEOF |
3987 | 4036 | ||
3988 | cat >>confdefs.h <<\_ACEOF | 4037 | cat >>confdefs.h <<\_ACEOF |
3989 | #define SPT_TYPE SPT_PSTAT | 4038 | #define SETPROCTITLE_STRATEGY PS_USE_PSTAT |
3990 | _ACEOF | 4039 | _ACEOF |
3991 | 4040 | ||
3992 | LIBS="$LIBS -lsec" | 4041 | LIBS="$LIBS -lsec" |
@@ -4180,6 +4229,14 @@ _ACEOF | |||
4180 | #define PAM_TTY_KLUDGE 1 | 4229 | #define PAM_TTY_KLUDGE 1 |
4181 | _ACEOF | 4230 | _ACEOF |
4182 | 4231 | ||
4232 | cat >>confdefs.h <<\_ACEOF | ||
4233 | #define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV | ||
4234 | _ACEOF | ||
4235 | |||
4236 | cat >>confdefs.h <<\_ACEOF | ||
4237 | #define SETPROCTITLE_PS_PADDING '\0' | ||
4238 | _ACEOF | ||
4239 | |||
4183 | inet6_default_4in6=yes | 4240 | inet6_default_4in6=yes |
4184 | ;; | 4241 | ;; |
4185 | mips-sony-bsd|mips-sony-newsos4) | 4242 | mips-sony-bsd|mips-sony-newsos4) |
@@ -4240,6 +4297,10 @@ _ACEOF | |||
4240 | #define PAM_TTY_KLUDGE 1 | 4297 | #define PAM_TTY_KLUDGE 1 |
4241 | _ACEOF | 4298 | _ACEOF |
4242 | 4299 | ||
4300 | cat >>confdefs.h <<\_ACEOF | ||
4301 | #define STREAMS_PUSH_ACQUIRES_CTTY 1 | ||
4302 | _ACEOF | ||
4303 | |||
4243 | # hardwire lastlog location (can't detect it on some versions) | 4304 | # hardwire lastlog location (can't detect it on some versions) |
4244 | conf_lastlog_location="/var/adm/lastlog" | 4305 | conf_lastlog_location="/var/adm/lastlog" |
4245 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | 4306 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 |
@@ -4504,6 +4565,9 @@ done | |||
4504 | do_sco3_extra_lib_check=yes | 4565 | do_sco3_extra_lib_check=yes |
4505 | ;; | 4566 | ;; |
4506 | *-*-sco3.2v5*) | 4567 | *-*-sco3.2v5*) |
4568 | if test -z "$GCC"; then | ||
4569 | CFLAGS="$CFLAGS -belf" | ||
4570 | fi | ||
4507 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | 4571 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
4508 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | 4572 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
4509 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | 4573 | LIBS="$LIBS -lprot -lx -ltinfo -lm" |
@@ -4604,8 +4668,6 @@ done | |||
4604 | MANTYPE=man | 4668 | MANTYPE=man |
4605 | ;; | 4669 | ;; |
4606 | *-*-unicosmk*) | 4670 | *-*-unicosmk*) |
4607 | no_libsocket=1 | ||
4608 | no_libnsl=1 | ||
4609 | cat >>confdefs.h <<\_ACEOF | 4671 | cat >>confdefs.h <<\_ACEOF |
4610 | #define USE_PIPES 1 | 4672 | #define USE_PIPES 1 |
4611 | _ACEOF | 4673 | _ACEOF |
@@ -4619,8 +4681,6 @@ _ACEOF | |||
4619 | MANTYPE=cat | 4681 | MANTYPE=cat |
4620 | ;; | 4682 | ;; |
4621 | *-*-unicos*) | 4683 | *-*-unicos*) |
4622 | no_libsocket=1 | ||
4623 | no_libnsl=1 | ||
4624 | cat >>confdefs.h <<\_ACEOF | 4684 | cat >>confdefs.h <<\_ACEOF |
4625 | #define USE_PIPES 1 | 4685 | #define USE_PIPES 1 |
4626 | _ACEOF | 4686 | _ACEOF |
@@ -4665,12 +4725,20 @@ _ACEOF | |||
4665 | #define DISABLE_LOGIN 1 | 4725 | #define DISABLE_LOGIN 1 |
4666 | _ACEOF | 4726 | _ACEOF |
4667 | 4727 | ||
4728 | cat >>confdefs.h <<\_ACEOF | ||
4729 | #define DISABLE_FD_PASSING 1 | ||
4730 | _ACEOF | ||
4731 | |||
4668 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | 4732 | LIBS="$LIBS -lsecurity -ldb -lm -laud" |
4669 | else | 4733 | else |
4670 | echo "$as_me:$LINENO: result: no" >&5 | 4734 | echo "$as_me:$LINENO: result: no" >&5 |
4671 | echo "${ECHO_T}no" >&6 | 4735 | echo "${ECHO_T}no" >&6 |
4672 | fi | 4736 | fi |
4673 | fi | 4737 | fi |
4738 | cat >>confdefs.h <<\_ACEOF | ||
4739 | #define DISABLE_FD_PASSING 1 | ||
4740 | _ACEOF | ||
4741 | |||
4674 | ;; | 4742 | ;; |
4675 | 4743 | ||
4676 | *-*-nto-qnx) | 4744 | *-*-nto-qnx) |
@@ -4984,14 +5052,17 @@ done | |||
4984 | 5052 | ||
4985 | 5053 | ||
4986 | 5054 | ||
5055 | |||
5056 | |||
5057 | |||
4987 | for ac_header in bstring.h crypt.h endian.h floatingpoint.h \ | 5058 | for ac_header in bstring.h crypt.h endian.h floatingpoint.h \ |
4988 | getopt.h glob.h ia.h lastlog.h limits.h login.h \ | 5059 | getopt.h glob.h ia.h lastlog.h libgen.h limits.h login.h \ |
4989 | login_cap.h maillock.h netdb.h netgroup.h \ | 5060 | login_cap.h maillock.h netdb.h netgroup.h \ |
4990 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ | 5061 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ |
4991 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | 5062 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ |
4992 | strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ | 5063 | strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ |
4993 | sys/mman.h sys/select.h sys/stat.h \ | 5064 | sys/mman.h sys/pstat.h sys/select.h sys/stat.h \ |
4994 | sys/stropts.h sys/sysmacros.h sys/time.h \ | 5065 | sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \ |
4995 | sys/un.h time.h tmpdir.h ttyent.h usersec.h \ | 5066 | sys/un.h time.h tmpdir.h ttyent.h usersec.h \ |
4996 | util.h utime.h utmp.h utmpx.h | 5067 | util.h utime.h utmp.h utmpx.h |
4997 | do | 5068 | do |
@@ -6740,17 +6811,24 @@ fi; | |||
6740 | 6811 | ||
6741 | 6812 | ||
6742 | 6813 | ||
6743 | for ac_func in arc4random b64_ntop bcopy bindresvport_sa \ | 6814 | |
6744 | clock fchmod fchown freeaddrinfo futimes gai_strerror \ | 6815 | |
6745 | getaddrinfo getcwd getgrouplist getnameinfo getopt getpeereid\ | 6816 | |
6746 | getrlimit getrusage getttyent glob inet_aton inet_ntoa \ | 6817 | |
6747 | inet_ntop innetgr login_getcapbool md5_crypt memmove \ | 6818 | |
6748 | mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \ | 6819 | for ac_func in \ |
6749 | realpath recvmsg rresvport_af sendmsg setdtablesize setegid \ | 6820 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy \ |
6750 | setenv seteuid setgroups setlogin setproctitle setresgid setreuid \ | 6821 | bindresvport_sa clock fchmod fchown freeaddrinfo futimes \ |
6751 | setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \ | 6822 | gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \ |
6752 | socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \ | 6823 | getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \ |
6753 | truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty | 6824 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ |
6825 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openpty pstat \ | ||
6826 | readpassphrase realpath recvmsg rresvport_af sendmsg setdtablesize \ | ||
6827 | setegid setenv seteuid setgroups setlogin setpcred setproctitle \ | ||
6828 | setresgid setreuid setrlimit setsid setvbuf sigaction sigvec \ | ||
6829 | snprintf socketpair strerror strlcat strlcpy strmode strnvis \ | ||
6830 | sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \ | ||
6831 | |||
6754 | do | 6832 | do |
6755 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 6833 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6756 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 6834 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
@@ -6826,6 +6904,246 @@ fi | |||
6826 | done | 6904 | done |
6827 | 6905 | ||
6828 | 6906 | ||
6907 | echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
6908 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
6909 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
6910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6911 | else | ||
6912 | ac_func_search_save_LIBS=$LIBS | ||
6913 | ac_cv_search_nanosleep=no | ||
6914 | cat >conftest.$ac_ext <<_ACEOF | ||
6915 | #line $LINENO "configure" | ||
6916 | #include "confdefs.h" | ||
6917 | |||
6918 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6919 | #ifdef __cplusplus | ||
6920 | extern "C" | ||
6921 | #endif | ||
6922 | /* We use char because int might match the return type of a gcc2 | ||
6923 | builtin and then its argument prototype would still apply. */ | ||
6924 | char nanosleep (); | ||
6925 | #ifdef F77_DUMMY_MAIN | ||
6926 | # ifdef __cplusplus | ||
6927 | extern "C" | ||
6928 | # endif | ||
6929 | int F77_DUMMY_MAIN() { return 1; } | ||
6930 | #endif | ||
6931 | int | ||
6932 | main () | ||
6933 | { | ||
6934 | nanosleep (); | ||
6935 | ; | ||
6936 | return 0; | ||
6937 | } | ||
6938 | _ACEOF | ||
6939 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6941 | (eval $ac_link) 2>&5 | ||
6942 | ac_status=$? | ||
6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6944 | (exit $ac_status); } && | ||
6945 | { ac_try='test -s conftest$ac_exeext' | ||
6946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6947 | (eval $ac_try) 2>&5 | ||
6948 | ac_status=$? | ||
6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6950 | (exit $ac_status); }; }; then | ||
6951 | ac_cv_search_nanosleep="none required" | ||
6952 | else | ||
6953 | echo "$as_me: failed program was:" >&5 | ||
6954 | cat conftest.$ac_ext >&5 | ||
6955 | fi | ||
6956 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6957 | if test "$ac_cv_search_nanosleep" = no; then | ||
6958 | for ac_lib in rt posix4; do | ||
6959 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
6960 | cat >conftest.$ac_ext <<_ACEOF | ||
6961 | #line $LINENO "configure" | ||
6962 | #include "confdefs.h" | ||
6963 | |||
6964 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6965 | #ifdef __cplusplus | ||
6966 | extern "C" | ||
6967 | #endif | ||
6968 | /* We use char because int might match the return type of a gcc2 | ||
6969 | builtin and then its argument prototype would still apply. */ | ||
6970 | char nanosleep (); | ||
6971 | #ifdef F77_DUMMY_MAIN | ||
6972 | # ifdef __cplusplus | ||
6973 | extern "C" | ||
6974 | # endif | ||
6975 | int F77_DUMMY_MAIN() { return 1; } | ||
6976 | #endif | ||
6977 | int | ||
6978 | main () | ||
6979 | { | ||
6980 | nanosleep (); | ||
6981 | ; | ||
6982 | return 0; | ||
6983 | } | ||
6984 | _ACEOF | ||
6985 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6987 | (eval $ac_link) 2>&5 | ||
6988 | ac_status=$? | ||
6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6990 | (exit $ac_status); } && | ||
6991 | { ac_try='test -s conftest$ac_exeext' | ||
6992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6993 | (eval $ac_try) 2>&5 | ||
6994 | ac_status=$? | ||
6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6996 | (exit $ac_status); }; }; then | ||
6997 | ac_cv_search_nanosleep="-l$ac_lib" | ||
6998 | break | ||
6999 | else | ||
7000 | echo "$as_me: failed program was:" >&5 | ||
7001 | cat conftest.$ac_ext >&5 | ||
7002 | fi | ||
7003 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7004 | done | ||
7005 | fi | ||
7006 | LIBS=$ac_func_search_save_LIBS | ||
7007 | fi | ||
7008 | echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
7009 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
7010 | if test "$ac_cv_search_nanosleep" != no; then | ||
7011 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
7012 | cat >>confdefs.h <<\_ACEOF | ||
7013 | #define HAVE_NANOSLEEP 1 | ||
7014 | _ACEOF | ||
7015 | |||
7016 | fi | ||
7017 | |||
7018 | |||
7019 | echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
7020 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
7021 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
7022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7023 | else | ||
7024 | cat >conftest.$ac_ext <<_ACEOF | ||
7025 | #line $LINENO "configure" | ||
7026 | #include "confdefs.h" | ||
7027 | $ac_includes_default | ||
7028 | #ifdef F77_DUMMY_MAIN | ||
7029 | # ifdef __cplusplus | ||
7030 | extern "C" | ||
7031 | # endif | ||
7032 | int F77_DUMMY_MAIN() { return 1; } | ||
7033 | #endif | ||
7034 | int | ||
7035 | main () | ||
7036 | { | ||
7037 | #ifndef strsep | ||
7038 | char *p = (char *) strsep; | ||
7039 | #endif | ||
7040 | |||
7041 | ; | ||
7042 | return 0; | ||
7043 | } | ||
7044 | _ACEOF | ||
7045 | rm -f conftest.$ac_objext | ||
7046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7047 | (eval $ac_compile) 2>&5 | ||
7048 | ac_status=$? | ||
7049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7050 | (exit $ac_status); } && | ||
7051 | { ac_try='test -s conftest.$ac_objext' | ||
7052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7053 | (eval $ac_try) 2>&5 | ||
7054 | ac_status=$? | ||
7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7056 | (exit $ac_status); }; }; then | ||
7057 | ac_cv_have_decl_strsep=yes | ||
7058 | else | ||
7059 | echo "$as_me: failed program was:" >&5 | ||
7060 | cat conftest.$ac_ext >&5 | ||
7061 | ac_cv_have_decl_strsep=no | ||
7062 | fi | ||
7063 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7064 | fi | ||
7065 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
7066 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
7067 | if test $ac_cv_have_decl_strsep = yes; then | ||
7068 | |||
7069 | for ac_func in strsep | ||
7070 | do | ||
7071 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7072 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7073 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7074 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7076 | else | ||
7077 | cat >conftest.$ac_ext <<_ACEOF | ||
7078 | #line $LINENO "configure" | ||
7079 | #include "confdefs.h" | ||
7080 | /* System header to define __stub macros and hopefully few prototypes, | ||
7081 | which can conflict with char $ac_func (); below. */ | ||
7082 | #include <assert.h> | ||
7083 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7084 | #ifdef __cplusplus | ||
7085 | extern "C" | ||
7086 | #endif | ||
7087 | /* We use char because int might match the return type of a gcc2 | ||
7088 | builtin and then its argument prototype would still apply. */ | ||
7089 | char $ac_func (); | ||
7090 | char (*f) (); | ||
7091 | |||
7092 | #ifdef F77_DUMMY_MAIN | ||
7093 | # ifdef __cplusplus | ||
7094 | extern "C" | ||
7095 | # endif | ||
7096 | int F77_DUMMY_MAIN() { return 1; } | ||
7097 | #endif | ||
7098 | int | ||
7099 | main () | ||
7100 | { | ||
7101 | /* The GNU C library defines this for functions which it implements | ||
7102 | to always fail with ENOSYS. Some functions are actually named | ||
7103 | something starting with __ and the normal name is an alias. */ | ||
7104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7105 | choke me | ||
7106 | #else | ||
7107 | f = $ac_func; | ||
7108 | #endif | ||
7109 | |||
7110 | ; | ||
7111 | return 0; | ||
7112 | } | ||
7113 | _ACEOF | ||
7114 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7116 | (eval $ac_link) 2>&5 | ||
7117 | ac_status=$? | ||
7118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7119 | (exit $ac_status); } && | ||
7120 | { ac_try='test -s conftest$ac_exeext' | ||
7121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7122 | (eval $ac_try) 2>&5 | ||
7123 | ac_status=$? | ||
7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7125 | (exit $ac_status); }; }; then | ||
7126 | eval "$as_ac_var=yes" | ||
7127 | else | ||
7128 | echo "$as_me: failed program was:" >&5 | ||
7129 | cat conftest.$ac_ext >&5 | ||
7130 | eval "$as_ac_var=no" | ||
7131 | fi | ||
7132 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7133 | fi | ||
7134 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7135 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7136 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7137 | cat >>confdefs.h <<_ACEOF | ||
7138 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7139 | _ACEOF | ||
7140 | |||
7141 | fi | ||
7142 | done | ||
7143 | |||
7144 | fi | ||
7145 | |||
7146 | |||
6829 | 7147 | ||
6830 | for ac_func in dirname | 7148 | for ac_func in dirname |
6831 | do | 7149 | do |
@@ -7975,6 +8293,65 @@ rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |||
7975 | fi | 8293 | fi |
7976 | fi | 8294 | fi |
7977 | 8295 | ||
8296 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
8297 | echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
8298 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
8299 | if test "$cross_compiling" = yes; then | ||
8300 | |||
8301 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8302 | echo "${ECHO_T}yes" >&6 | ||
8303 | cat >>confdefs.h <<\_ACEOF | ||
8304 | #define HAVE_STRICT_MKSTEMP 1 | ||
8305 | _ACEOF | ||
8306 | |||
8307 | |||
8308 | |||
8309 | else | ||
8310 | cat >conftest.$ac_ext <<_ACEOF | ||
8311 | #line $LINENO "configure" | ||
8312 | #include "confdefs.h" | ||
8313 | |||
8314 | #include <stdlib.h> | ||
8315 | main() { char template[]="conftest.mkstemp-test"; | ||
8316 | if (mkstemp(template) == -1) | ||
8317 | exit(1); | ||
8318 | unlink(template); exit(0); | ||
8319 | } | ||
8320 | |||
8321 | _ACEOF | ||
8322 | rm -f conftest$ac_exeext | ||
8323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8324 | (eval $ac_link) 2>&5 | ||
8325 | ac_status=$? | ||
8326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8327 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8329 | (eval $ac_try) 2>&5 | ||
8330 | ac_status=$? | ||
8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8332 | (exit $ac_status); }; }; then | ||
8333 | |||
8334 | echo "$as_me:$LINENO: result: no" >&5 | ||
8335 | echo "${ECHO_T}no" >&6 | ||
8336 | |||
8337 | else | ||
8338 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8339 | echo "$as_me: failed program was:" >&5 | ||
8340 | cat conftest.$ac_ext >&5 | ||
8341 | ( exit $ac_status ) | ||
8342 | |||
8343 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8344 | echo "${ECHO_T}yes" >&6 | ||
8345 | cat >>confdefs.h <<\_ACEOF | ||
8346 | #define HAVE_STRICT_MKSTEMP 1 | ||
8347 | _ACEOF | ||
8348 | |||
8349 | |||
8350 | fi | ||
8351 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8352 | fi | ||
8353 | fi | ||
8354 | |||
7978 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | 8355 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
7979 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | 8356 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 |
7980 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | 8357 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
@@ -13128,12 +13505,72 @@ _ACEOF | |||
13128 | have_struct_timeval=1 | 13505 | have_struct_timeval=1 |
13129 | fi | 13506 | fi |
13130 | 13507 | ||
13131 | # If we don't have int64_t then we can't compile sftp-server. So don't | 13508 | echo "$as_me:$LINENO: checking for struct timespec" >&5 |
13132 | # even attempt to do it. | 13509 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 |
13510 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
13511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13512 | else | ||
13513 | cat >conftest.$ac_ext <<_ACEOF | ||
13514 | #line $LINENO "configure" | ||
13515 | #include "confdefs.h" | ||
13516 | $ac_includes_default | ||
13517 | #ifdef F77_DUMMY_MAIN | ||
13518 | # ifdef __cplusplus | ||
13519 | extern "C" | ||
13520 | # endif | ||
13521 | int F77_DUMMY_MAIN() { return 1; } | ||
13522 | #endif | ||
13523 | int | ||
13524 | main () | ||
13525 | { | ||
13526 | if ((struct timespec *) 0) | ||
13527 | return 0; | ||
13528 | if (sizeof (struct timespec)) | ||
13529 | return 0; | ||
13530 | ; | ||
13531 | return 0; | ||
13532 | } | ||
13533 | _ACEOF | ||
13534 | rm -f conftest.$ac_objext | ||
13535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13536 | (eval $ac_compile) 2>&5 | ||
13537 | ac_status=$? | ||
13538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13539 | (exit $ac_status); } && | ||
13540 | { ac_try='test -s conftest.$ac_objext' | ||
13541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13542 | (eval $ac_try) 2>&5 | ||
13543 | ac_status=$? | ||
13544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13545 | (exit $ac_status); }; }; then | ||
13546 | ac_cv_type_struct_timespec=yes | ||
13547 | else | ||
13548 | echo "$as_me: failed program was:" >&5 | ||
13549 | cat conftest.$ac_ext >&5 | ||
13550 | ac_cv_type_struct_timespec=no | ||
13551 | fi | ||
13552 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13553 | fi | ||
13554 | echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
13555 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
13556 | if test $ac_cv_type_struct_timespec = yes; then | ||
13557 | |||
13558 | cat >>confdefs.h <<_ACEOF | ||
13559 | #define HAVE_STRUCT_TIMESPEC 1 | ||
13560 | _ACEOF | ||
13561 | |||
13562 | |||
13563 | fi | ||
13564 | |||
13565 | |||
13566 | # We need int64_t or else certian parts of the compile will fail. | ||
13133 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | 13567 | if test "x$ac_cv_have_int64_t" = "xno" -a \ |
13134 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | 13568 | "x$ac_cv_sizeof_long_int" != "x8" -a \ |
13135 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | 13569 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then |
13136 | NO_SFTP='#' | 13570 | echo "OpenSSH requires int64_t support. Contact your vendor or install" |
13571 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
13572 | echo "" | ||
13573 | exit 1; | ||
13137 | else | 13574 | else |
13138 | if test "$cross_compiling" = yes; then | 13575 | if test "$cross_compiling" = yes; then |
13139 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | 13576 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
@@ -13196,7 +13633,6 @@ fi | |||
13196 | fi | 13633 | fi |
13197 | 13634 | ||
13198 | 13635 | ||
13199 | |||
13200 | # look for field 'ut_host' in header 'utmp.h' | 13636 | # look for field 'ut_host' in header 'utmp.h' |
13201 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | 13637 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
13202 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | 13638 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host |
@@ -15730,6 +16166,19 @@ fi | |||
15730 | 16166 | ||
15731 | fi; | 16167 | fi; |
15732 | 16168 | ||
16169 | STRIP_OPT=-s | ||
16170 | # Check whether --enable-strip or --disable-strip was given. | ||
16171 | if test "${enable_strip+set}" = set; then | ||
16172 | enableval="$enable_strip" | ||
16173 | |||
16174 | if test "x$enableval" = "xno" ; then | ||
16175 | STRIP_OPT= | ||
16176 | fi | ||
16177 | |||
16178 | |||
16179 | fi; | ||
16180 | |||
16181 | |||
15733 | if test -z "$xauth_path" ; then | 16182 | if test -z "$xauth_path" ; then |
15734 | XAUTH_PATH="undefined" | 16183 | XAUTH_PATH="undefined" |
15735 | 16184 | ||
@@ -16056,7 +16505,11 @@ else | |||
16056 | # include <paths.h> | 16505 | # include <paths.h> |
16057 | #endif | 16506 | #endif |
16058 | #ifndef _PATH_STDPATH | 16507 | #ifndef _PATH_STDPATH |
16059 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | 16508 | # ifdef _PATH_USERPATH /* Irix */ |
16509 | # define _PATH_STDPATH _PATH_USERPATH | ||
16510 | # else | ||
16511 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
16512 | # endif | ||
16060 | #endif | 16513 | #endif |
16061 | #include <sys/types.h> | 16514 | #include <sys/types.h> |
16062 | #include <sys/stat.h> | 16515 | #include <sys/stat.h> |
@@ -17346,6 +17799,7 @@ s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |||
17346 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | 17799 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
17347 | s,@AR@,$AR,;t t | 17800 | s,@AR@,$AR,;t t |
17348 | s,@PERL@,$PERL,;t t | 17801 | s,@PERL@,$PERL,;t t |
17802 | s,@SED@,$SED,;t t | ||
17349 | s,@ENT@,$ENT,;t t | 17803 | s,@ENT@,$ENT,;t t |
17350 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | 17804 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t |
17351 | s,@SH@,$SH,;t t | 17805 | s,@SH@,$SH,;t t |
@@ -17372,10 +17826,10 @@ s,@PROG_UPTIME@,$PROG_UPTIME,;t t | |||
17372 | s,@PROG_IPCS@,$PROG_IPCS,;t t | 17826 | s,@PROG_IPCS@,$PROG_IPCS,;t t |
17373 | s,@PROG_TAIL@,$PROG_TAIL,;t t | 17827 | s,@PROG_TAIL@,$PROG_TAIL,;t t |
17374 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | 17828 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t |
17375 | s,@NO_SFTP@,$NO_SFTP,;t t | ||
17376 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | 17829 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t |
17377 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | 17830 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t |
17378 | s,@xauth_path@,$xauth_path,;t t | 17831 | s,@xauth_path@,$xauth_path,;t t |
17832 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
17379 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | 17833 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t |
17380 | s,@NROFF@,$NROFF,;t t | 17834 | s,@NROFF@,$NROFF,;t t |
17381 | s,@MANTYPE@,$MANTYPE,;t t | 17835 | s,@MANTYPE@,$MANTYPE,;t t |
@@ -17895,12 +18349,6 @@ if test "x$PAM_MSG" = "xyes" ; then | |||
17895 | echo "" | 18349 | echo "" |
17896 | fi | 18350 | fi |
17897 | 18351 | ||
17898 | if test ! -z "$NO_SFTP"; then | ||
17899 | echo "sftp-server will be disabled. Your compiler does not " | ||
17900 | echo "support 64bit integers." | ||
17901 | echo "" | ||
17902 | fi | ||
17903 | |||
17904 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | 18352 | if test ! -z "$RAND_HELPER_CMDHASH" ; then |
17905 | echo "WARNING: you are using the builtin random number collection " | 18353 | echo "WARNING: you are using the builtin random number collection " |
17906 | echo "service. Please read WARNING.RNG and request that your OS " | 18354 | echo "service. Please read WARNING.RNG and request that your OS " |