… | |
… | |
3612 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3612 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3613 | |
3613 | |
3614 | fi |
3614 | fi |
3615 | |
3615 | |
3616 | |
3616 | |
|
|
3617 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
|
|
3618 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
|
|
3619 | if test "${ac_cv_func_setlocale+set}" = set; then |
|
|
3620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3621 | else |
|
|
3622 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3623 | /* confdefs.h. */ |
|
|
3624 | _ACEOF |
|
|
3625 | cat confdefs.h >>conftest.$ac_ext |
|
|
3626 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3627 | /* end confdefs.h. */ |
|
|
3628 | /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale. |
|
|
3629 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3630 | #define setlocale innocuous_setlocale |
|
|
3631 | |
|
|
3632 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3633 | which can conflict with char setlocale (); below. |
|
|
3634 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3635 | <limits.h> exists even on freestanding compilers. */ |
|
|
3636 | |
|
|
3637 | #ifdef __STDC__ |
|
|
3638 | # include <limits.h> |
|
|
3639 | #else |
|
|
3640 | # include <assert.h> |
|
|
3641 | #endif |
|
|
3642 | |
|
|
3643 | #undef setlocale |
|
|
3644 | |
|
|
3645 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3646 | #ifdef __cplusplus |
|
|
3647 | extern "C" |
|
|
3648 | { |
|
|
3649 | #endif |
|
|
3650 | /* We use char because int might match the return type of a gcc2 |
|
|
3651 | builtin and then its argument prototype would still apply. */ |
|
|
3652 | char setlocale (); |
|
|
3653 | /* The GNU C library defines this for functions which it implements |
|
|
3654 | to always fail with ENOSYS. Some functions are actually named |
|
|
3655 | something starting with __ and the normal name is an alias. */ |
|
|
3656 | #if defined (__stub_setlocale) || defined (__stub___setlocale) |
|
|
3657 | choke me |
|
|
3658 | #else |
|
|
3659 | char (*f) () = setlocale; |
|
|
3660 | #endif |
|
|
3661 | #ifdef __cplusplus |
|
|
3662 | } |
|
|
3663 | #endif |
|
|
3664 | |
|
|
3665 | int |
|
|
3666 | main () |
|
|
3667 | { |
|
|
3668 | return f != setlocale; |
|
|
3669 | ; |
|
|
3670 | return 0; |
|
|
3671 | } |
|
|
3672 | _ACEOF |
|
|
3673 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3675 | (eval $ac_link) 2>conftest.er1 |
|
|
3676 | ac_status=$? |
|
|
3677 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3678 | rm -f conftest.er1 |
|
|
3679 | cat conftest.err >&5 |
|
|
3680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3681 | (exit $ac_status); } && |
|
|
3682 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3684 | (eval $ac_try) 2>&5 |
|
|
3685 | ac_status=$? |
|
|
3686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3687 | (exit $ac_status); }; } && |
|
|
3688 | { ac_try='test -s conftest$ac_exeext' |
|
|
3689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3690 | (eval $ac_try) 2>&5 |
|
|
3691 | ac_status=$? |
|
|
3692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3693 | (exit $ac_status); }; }; then |
|
|
3694 | ac_cv_func_setlocale=yes |
|
|
3695 | else |
|
|
3696 | echo "$as_me: failed program was:" >&5 |
|
|
3697 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3698 | |
|
|
3699 | ac_cv_func_setlocale=no |
|
|
3700 | fi |
|
|
3701 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3702 | conftest$ac_exeext conftest.$ac_ext |
|
|
3703 | fi |
|
|
3704 | echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
|
|
3705 | echo "${ECHO_T}$ac_cv_func_setlocale" >&6 |
|
|
3706 | if test $ac_cv_func_setlocale = yes; then |
|
|
3707 | : |
|
|
3708 | else |
3617 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
3709 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
3618 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
3710 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
3619 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
3711 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
3620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3621 | else |
3713 | else |
3622 | ac_check_lib_save_LIBS=$LIBS |
3714 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3679 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
3771 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
3680 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
3772 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
3681 | LIBS="$LIBS -lxpg4" |
3773 | LIBS="$LIBS -lxpg4" |
3682 | fi |
3774 | fi |
3683 | |
3775 | |
|
|
3776 | fi |
3684 | |
3777 | |
|
|
3778 | |
|
|
3779 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
3780 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
|
|
3781 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
3782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3783 | else |
|
|
3784 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3785 | /* confdefs.h. */ |
|
|
3786 | _ACEOF |
|
|
3787 | cat confdefs.h >>conftest.$ac_ext |
|
|
3788 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3789 | /* end confdefs.h. */ |
|
|
3790 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
3791 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3792 | #define gethostbyname innocuous_gethostbyname |
|
|
3793 | |
|
|
3794 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3795 | which can conflict with char gethostbyname (); below. |
|
|
3796 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3797 | <limits.h> exists even on freestanding compilers. */ |
|
|
3798 | |
|
|
3799 | #ifdef __STDC__ |
|
|
3800 | # include <limits.h> |
|
|
3801 | #else |
|
|
3802 | # include <assert.h> |
|
|
3803 | #endif |
|
|
3804 | |
|
|
3805 | #undef gethostbyname |
|
|
3806 | |
|
|
3807 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3808 | #ifdef __cplusplus |
|
|
3809 | extern "C" |
|
|
3810 | { |
|
|
3811 | #endif |
|
|
3812 | /* We use char because int might match the return type of a gcc2 |
|
|
3813 | builtin and then its argument prototype would still apply. */ |
|
|
3814 | char gethostbyname (); |
|
|
3815 | /* The GNU C library defines this for functions which it implements |
|
|
3816 | to always fail with ENOSYS. Some functions are actually named |
|
|
3817 | something starting with __ and the normal name is an alias. */ |
|
|
3818 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
|
|
3819 | choke me |
|
|
3820 | #else |
|
|
3821 | char (*f) () = gethostbyname; |
|
|
3822 | #endif |
|
|
3823 | #ifdef __cplusplus |
|
|
3824 | } |
|
|
3825 | #endif |
|
|
3826 | |
|
|
3827 | int |
|
|
3828 | main () |
|
|
3829 | { |
|
|
3830 | return f != gethostbyname; |
|
|
3831 | ; |
|
|
3832 | return 0; |
|
|
3833 | } |
|
|
3834 | _ACEOF |
|
|
3835 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3837 | (eval $ac_link) 2>conftest.er1 |
|
|
3838 | ac_status=$? |
|
|
3839 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3840 | rm -f conftest.er1 |
|
|
3841 | cat conftest.err >&5 |
|
|
3842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3843 | (exit $ac_status); } && |
|
|
3844 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3846 | (eval $ac_try) 2>&5 |
|
|
3847 | ac_status=$? |
|
|
3848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3849 | (exit $ac_status); }; } && |
|
|
3850 | { ac_try='test -s conftest$ac_exeext' |
|
|
3851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3852 | (eval $ac_try) 2>&5 |
|
|
3853 | ac_status=$? |
|
|
3854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3855 | (exit $ac_status); }; }; then |
|
|
3856 | ac_cv_func_gethostbyname=yes |
|
|
3857 | else |
|
|
3858 | echo "$as_me: failed program was:" >&5 |
|
|
3859 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3860 | |
|
|
3861 | ac_cv_func_gethostbyname=no |
|
|
3862 | fi |
|
|
3863 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3864 | conftest$ac_exeext conftest.$ac_ext |
|
|
3865 | fi |
|
|
3866 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
3867 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
|
3868 | if test $ac_cv_func_gethostbyname = yes; then |
|
|
3869 | : |
|
|
3870 | else |
3685 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3871 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3686 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3872 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3687 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3873 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3689 | else |
3875 | else |
3690 | ac_check_lib_save_LIBS=$LIBS |
3876 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3747 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3933 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3748 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
3934 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
3749 | LIBS="$LIBS -lnsl" |
3935 | LIBS="$LIBS -lnsl" |
3750 | fi |
3936 | fi |
3751 | |
3937 | |
|
|
3938 | fi |
|
|
3939 | |
|
|
3940 | echo "$as_me:$LINENO: checking for socket" >&5 |
|
|
3941 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
|
|
3942 | if test "${ac_cv_func_socket+set}" = set; then |
|
|
3943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3944 | else |
|
|
3945 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3946 | /* confdefs.h. */ |
|
|
3947 | _ACEOF |
|
|
3948 | cat confdefs.h >>conftest.$ac_ext |
|
|
3949 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3950 | /* end confdefs.h. */ |
|
|
3951 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
3952 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3953 | #define socket innocuous_socket |
|
|
3954 | |
|
|
3955 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3956 | which can conflict with char socket (); below. |
|
|
3957 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3958 | <limits.h> exists even on freestanding compilers. */ |
|
|
3959 | |
|
|
3960 | #ifdef __STDC__ |
|
|
3961 | # include <limits.h> |
|
|
3962 | #else |
|
|
3963 | # include <assert.h> |
|
|
3964 | #endif |
|
|
3965 | |
|
|
3966 | #undef socket |
|
|
3967 | |
|
|
3968 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3969 | #ifdef __cplusplus |
|
|
3970 | extern "C" |
|
|
3971 | { |
|
|
3972 | #endif |
|
|
3973 | /* We use char because int might match the return type of a gcc2 |
|
|
3974 | builtin and then its argument prototype would still apply. */ |
|
|
3975 | char socket (); |
|
|
3976 | /* The GNU C library defines this for functions which it implements |
|
|
3977 | to always fail with ENOSYS. Some functions are actually named |
|
|
3978 | something starting with __ and the normal name is an alias. */ |
|
|
3979 | #if defined (__stub_socket) || defined (__stub___socket) |
|
|
3980 | choke me |
|
|
3981 | #else |
|
|
3982 | char (*f) () = socket; |
|
|
3983 | #endif |
|
|
3984 | #ifdef __cplusplus |
|
|
3985 | } |
|
|
3986 | #endif |
|
|
3987 | |
|
|
3988 | int |
|
|
3989 | main () |
|
|
3990 | { |
|
|
3991 | return f != socket; |
|
|
3992 | ; |
|
|
3993 | return 0; |
|
|
3994 | } |
|
|
3995 | _ACEOF |
|
|
3996 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3998 | (eval $ac_link) 2>conftest.er1 |
|
|
3999 | ac_status=$? |
|
|
4000 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4001 | rm -f conftest.er1 |
|
|
4002 | cat conftest.err >&5 |
|
|
4003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4004 | (exit $ac_status); } && |
|
|
4005 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4007 | (eval $ac_try) 2>&5 |
|
|
4008 | ac_status=$? |
|
|
4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4010 | (exit $ac_status); }; } && |
|
|
4011 | { ac_try='test -s conftest$ac_exeext' |
|
|
4012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4013 | (eval $ac_try) 2>&5 |
|
|
4014 | ac_status=$? |
|
|
4015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4016 | (exit $ac_status); }; }; then |
|
|
4017 | ac_cv_func_socket=yes |
|
|
4018 | else |
|
|
4019 | echo "$as_me: failed program was:" >&5 |
|
|
4020 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4021 | |
|
|
4022 | ac_cv_func_socket=no |
|
|
4023 | fi |
|
|
4024 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4025 | conftest$ac_exeext conftest.$ac_ext |
|
|
4026 | fi |
|
|
4027 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
|
|
4028 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
|
|
4029 | if test $ac_cv_func_socket = yes; then |
|
|
4030 | : |
|
|
4031 | else |
3752 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
4032 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
3753 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
4033 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
3754 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
4034 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
3755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3756 | else |
4036 | else |
3757 | ac_check_lib_save_LIBS=$LIBS |
4037 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3814 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
4094 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
3815 | if test $ac_cv_lib_socket_socket = yes; then |
4095 | if test $ac_cv_lib_socket_socket = yes; then |
3816 | LIBS="$LIBS -lsocket" |
4096 | LIBS="$LIBS -lsocket" |
3817 | fi |
4097 | fi |
3818 | |
4098 | |
|
|
4099 | fi |
|
|
4100 | |
|
|
4101 | |
|
|
4102 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
|
|
4103 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 |
|
|
4104 | if test "${ac_cv_func_sched_yield+set}" = set; then |
|
|
4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4106 | else |
|
|
4107 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4108 | /* confdefs.h. */ |
|
|
4109 | _ACEOF |
|
|
4110 | cat confdefs.h >>conftest.$ac_ext |
|
|
4111 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4112 | /* end confdefs.h. */ |
|
|
4113 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
|
|
4114 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
4115 | #define sched_yield innocuous_sched_yield |
|
|
4116 | |
|
|
4117 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
4118 | which can conflict with char sched_yield (); below. |
|
|
4119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4120 | <limits.h> exists even on freestanding compilers. */ |
|
|
4121 | |
|
|
4122 | #ifdef __STDC__ |
|
|
4123 | # include <limits.h> |
|
|
4124 | #else |
|
|
4125 | # include <assert.h> |
|
|
4126 | #endif |
|
|
4127 | |
|
|
4128 | #undef sched_yield |
|
|
4129 | |
|
|
4130 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
4131 | #ifdef __cplusplus |
|
|
4132 | extern "C" |
|
|
4133 | { |
|
|
4134 | #endif |
|
|
4135 | /* We use char because int might match the return type of a gcc2 |
|
|
4136 | builtin and then its argument prototype would still apply. */ |
|
|
4137 | char sched_yield (); |
|
|
4138 | /* The GNU C library defines this for functions which it implements |
|
|
4139 | to always fail with ENOSYS. Some functions are actually named |
|
|
4140 | something starting with __ and the normal name is an alias. */ |
|
|
4141 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) |
|
|
4142 | choke me |
|
|
4143 | #else |
|
|
4144 | char (*f) () = sched_yield; |
|
|
4145 | #endif |
|
|
4146 | #ifdef __cplusplus |
|
|
4147 | } |
|
|
4148 | #endif |
|
|
4149 | |
|
|
4150 | int |
|
|
4151 | main () |
|
|
4152 | { |
|
|
4153 | return f != sched_yield; |
|
|
4154 | ; |
|
|
4155 | return 0; |
|
|
4156 | } |
|
|
4157 | _ACEOF |
|
|
4158 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4160 | (eval $ac_link) 2>conftest.er1 |
|
|
4161 | ac_status=$? |
|
|
4162 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4163 | rm -f conftest.er1 |
|
|
4164 | cat conftest.err >&5 |
|
|
4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4166 | (exit $ac_status); } && |
|
|
4167 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4169 | (eval $ac_try) 2>&5 |
|
|
4170 | ac_status=$? |
|
|
4171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4172 | (exit $ac_status); }; } && |
|
|
4173 | { ac_try='test -s conftest$ac_exeext' |
|
|
4174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4175 | (eval $ac_try) 2>&5 |
|
|
4176 | ac_status=$? |
|
|
4177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4178 | (exit $ac_status); }; }; then |
|
|
4179 | ac_cv_func_sched_yield=yes |
|
|
4180 | else |
|
|
4181 | echo "$as_me: failed program was:" >&5 |
|
|
4182 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4183 | |
|
|
4184 | ac_cv_func_sched_yield=no |
|
|
4185 | fi |
|
|
4186 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4187 | conftest$ac_exeext conftest.$ac_ext |
|
|
4188 | fi |
|
|
4189 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 |
|
|
4190 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 |
|
|
4191 | if test $ac_cv_func_sched_yield = yes; then |
|
|
4192 | : |
|
|
4193 | else |
|
|
4194 | echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 |
|
|
4195 | echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6 |
|
|
4196 | if test "${ac_cv_lib_rt_sched_yield+set}" = set; then |
|
|
4197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4198 | else |
|
|
4199 | ac_check_lib_save_LIBS=$LIBS |
|
|
4200 | LIBS="-lrt $LIBS" |
|
|
4201 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4202 | /* confdefs.h. */ |
|
|
4203 | _ACEOF |
|
|
4204 | cat confdefs.h >>conftest.$ac_ext |
|
|
4205 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4206 | /* end confdefs.h. */ |
|
|
4207 | |
|
|
4208 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
4209 | #ifdef __cplusplus |
|
|
4210 | extern "C" |
|
|
4211 | #endif |
|
|
4212 | /* We use char because int might match the return type of a gcc2 |
|
|
4213 | builtin and then its argument prototype would still apply. */ |
|
|
4214 | char sched_yield (); |
|
|
4215 | int |
|
|
4216 | main () |
|
|
4217 | { |
|
|
4218 | sched_yield (); |
|
|
4219 | ; |
|
|
4220 | return 0; |
|
|
4221 | } |
|
|
4222 | _ACEOF |
|
|
4223 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4225 | (eval $ac_link) 2>conftest.er1 |
|
|
4226 | ac_status=$? |
|
|
4227 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4228 | rm -f conftest.er1 |
|
|
4229 | cat conftest.err >&5 |
|
|
4230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4231 | (exit $ac_status); } && |
|
|
4232 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4234 | (eval $ac_try) 2>&5 |
|
|
4235 | ac_status=$? |
|
|
4236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4237 | (exit $ac_status); }; } && |
|
|
4238 | { ac_try='test -s conftest$ac_exeext' |
|
|
4239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4240 | (eval $ac_try) 2>&5 |
|
|
4241 | ac_status=$? |
|
|
4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4243 | (exit $ac_status); }; }; then |
|
|
4244 | ac_cv_lib_rt_sched_yield=yes |
|
|
4245 | else |
|
|
4246 | echo "$as_me: failed program was:" >&5 |
|
|
4247 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4248 | |
|
|
4249 | ac_cv_lib_rt_sched_yield=no |
|
|
4250 | fi |
|
|
4251 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4252 | conftest$ac_exeext conftest.$ac_ext |
|
|
4253 | LIBS=$ac_check_lib_save_LIBS |
|
|
4254 | fi |
|
|
4255 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 |
|
|
4256 | echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6 |
|
|
4257 | if test $ac_cv_lib_rt_sched_yield = yes; then |
|
|
4258 | LIBS="$LIBS -lrt" |
|
|
4259 | fi |
|
|
4260 | |
|
|
4261 | fi |
|
|
4262 | |
|
|
4263 | |
|
|
4264 | echo "$as_me:$LINENO: checking for sched_yield support" >&5 |
|
|
4265 | echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6 |
|
|
4266 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4267 | /* confdefs.h. */ |
|
|
4268 | _ACEOF |
|
|
4269 | cat confdefs.h >>conftest.$ac_ext |
|
|
4270 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4271 | /* end confdefs.h. */ |
|
|
4272 | #include <sched.h> |
|
|
4273 | int |
|
|
4274 | main () |
|
|
4275 | { |
|
|
4276 | sched_yield () |
|
|
4277 | ; |
|
|
4278 | return 0; |
|
|
4279 | } |
|
|
4280 | _ACEOF |
|
|
4281 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4283 | (eval $ac_link) 2>conftest.er1 |
|
|
4284 | ac_status=$? |
|
|
4285 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4286 | rm -f conftest.er1 |
|
|
4287 | cat conftest.err >&5 |
|
|
4288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4289 | (exit $ac_status); } && |
|
|
4290 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4292 | (eval $ac_try) 2>&5 |
|
|
4293 | ac_status=$? |
|
|
4294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4295 | (exit $ac_status); }; } && |
|
|
4296 | { ac_try='test -s conftest$ac_exeext' |
|
|
4297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4298 | (eval $ac_try) 2>&5 |
|
|
4299 | ac_status=$? |
|
|
4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4301 | (exit $ac_status); }; }; then |
|
|
4302 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4303 | echo "${ECHO_T}yes" >&6 |
|
|
4304 | |
|
|
4305 | cat >>confdefs.h <<\_ACEOF |
|
|
4306 | #define HAVE_SCHED_YIELD 1 |
|
|
4307 | _ACEOF |
|
|
4308 | |
|
|
4309 | else |
|
|
4310 | echo "$as_me: failed program was:" >&5 |
|
|
4311 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4312 | |
|
|
4313 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4314 | echo "${ECHO_T}no" >&6 |
|
|
4315 | fi |
|
|
4316 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4317 | conftest$ac_exeext conftest.$ac_ext |
3819 | |
4318 | |
3820 | |
4319 | |
3821 | MALLOC_TYPE=S |
4320 | MALLOC_TYPE=S |
3822 | |
4321 | |
3823 | support_addstrings=no |
4322 | support_addstrings=no |
… | |
… | |
11334 | echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6 |
11833 | echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6 |
11335 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
11834 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
11336 | |
11835 | |
11337 | cat >>confdefs.h <<\_ACEOF |
11836 | cat >>confdefs.h <<\_ACEOF |
11338 | #define HAVE_NL_LANGINFO 1 |
11837 | #define HAVE_NL_LANGINFO 1 |
|
|
11838 | _ACEOF |
|
|
11839 | |
|
|
11840 | fi |
|
|
11841 | |
|
|
11842 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
|
|
11843 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11844 | if test "${rxvt_can_pass_fds+set}" = set; then |
|
|
11845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11846 | else |
|
|
11847 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11848 | /* confdefs.h. */ |
|
|
11849 | _ACEOF |
|
|
11850 | cat confdefs.h >>conftest.$ac_ext |
|
|
11851 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11852 | /* end confdefs.h. */ |
|
|
11853 | |
|
|
11854 | #include <sys/types.h> |
|
|
11855 | #include <sys/socket.h> |
|
|
11856 | |
|
|
11857 | int |
|
|
11858 | main () |
|
|
11859 | { |
|
|
11860 | |
|
|
11861 | { |
|
|
11862 | msghdr msg; |
|
|
11863 | iovec iov; |
|
|
11864 | char buf [100]; |
|
|
11865 | char data = 0; |
|
|
11866 | |
|
|
11867 | iov.iov_base = &data; |
|
|
11868 | iov.iov_len = 1; |
|
|
11869 | |
|
|
11870 | msg.msg_iov = &iov; |
|
|
11871 | msg.msg_iovlen = 1; |
|
|
11872 | msg.msg_control = buf; |
|
|
11873 | msg.msg_controllen = sizeof buf; |
|
|
11874 | |
|
|
11875 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
11876 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
11877 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
11878 | cmsg->cmsg_len = 100; |
|
|
11879 | |
|
|
11880 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
11881 | |
|
|
11882 | return sendmsg (3, &msg, 0); |
|
|
11883 | } |
|
|
11884 | |
|
|
11885 | ; |
|
|
11886 | return 0; |
|
|
11887 | } |
|
|
11888 | _ACEOF |
|
|
11889 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11891 | (eval $ac_link) 2>conftest.er1 |
|
|
11892 | ac_status=$? |
|
|
11893 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11894 | rm -f conftest.er1 |
|
|
11895 | cat conftest.err >&5 |
|
|
11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11897 | (exit $ac_status); } && |
|
|
11898 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11900 | (eval $ac_try) 2>&5 |
|
|
11901 | ac_status=$? |
|
|
11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11903 | (exit $ac_status); }; } && |
|
|
11904 | { ac_try='test -s conftest$ac_exeext' |
|
|
11905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11906 | (eval $ac_try) 2>&5 |
|
|
11907 | ac_status=$? |
|
|
11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11909 | (exit $ac_status); }; }; then |
|
|
11910 | rxvt_can_pass_fds=yes |
|
|
11911 | else |
|
|
11912 | echo "$as_me: failed program was:" >&5 |
|
|
11913 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11914 | |
|
|
11915 | rxvt_can_pass_fds=no |
|
|
11916 | fi |
|
|
11917 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11918 | conftest$ac_exeext conftest.$ac_ext |
|
|
11919 | fi |
|
|
11920 | echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 |
|
|
11921 | echo "${ECHO_T}$rxvt_can_pass_fds" >&6 |
|
|
11922 | if test x$rxvt_can_pass_fds = xyes; then |
|
|
11923 | |
|
|
11924 | cat >>confdefs.h <<\_ACEOF |
|
|
11925 | #define HAVE_UNIX_FDPASS 1 |
11339 | _ACEOF |
11926 | _ACEOF |
11340 | |
11927 | |
11341 | fi |
11928 | fi |
11342 | |
11929 | |
11343 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
11930 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |