| 3607 | | |
| 3608 | | |
| 3609 | | |
| 3610 | | |
| 3611 | | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 3612 | | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
| 3613 | | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 3614 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3615 | | else |
| 3616 | | ac_check_lib_save_LIBS=$LIBS |
| 3617 | | LIBS="-lcposix $LIBS" |
| 3618 | | cat >conftest.$ac_ext <<_ACEOF |
| 3619 | | /* confdefs.h. */ |
| 3620 | | _ACEOF |
| 3621 | | cat confdefs.h >>conftest.$ac_ext |
| 3622 | | cat >>conftest.$ac_ext <<_ACEOF |
| 3623 | | /* end confdefs.h. */ |
| 3624 | | |
| 3625 | | /* Override any GCC internal prototype to avoid an error. |
| 3626 | | Use char because int might match the return type of a GCC |
| 3627 | | builtin and then its argument prototype would still apply. */ |
| 3628 | | #ifdef __cplusplus |
| 3629 | | extern "C" |
| 3630 | | #endif |
| 3631 | | char strerror (); |
| 3632 | | int |
| 3633 | | main () |
| 3634 | | { |
| 3635 | | return strerror (); |
| 3636 | | ; |
| 3637 | | return 0; |
| 3638 | | } |
| 3639 | | _ACEOF |
| 3640 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3641 | | if { (ac_try="$ac_link" |
| 3642 | | case "(($ac_try" in |
| 3643 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3644 | | *) ac_try_echo=$ac_try;; |
| 3645 | | esac |
| 3646 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3647 | | (eval "$ac_link") 2>conftest.er1 |
| 3648 | | ac_status=$? |
| 3649 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 3650 | | rm -f conftest.er1 |
| 3651 | | cat conftest.err >&5 |
| 3652 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3653 | | (exit $ac_status); } && { |
| 3654 | | test -z "$ac_c_werror_flag" || |
| 3655 | | test ! -s conftest.err |
| 3656 | | } && test -s conftest$ac_exeext && |
| 3657 | | $as_test_x conftest$ac_exeext; then |
| 3658 | | ac_cv_lib_cposix_strerror=yes |
| 3659 | | else |
| 3660 | | echo "$as_me: failed program was:" >&5 |
| 3661 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3662 | | |
| 3663 | | ac_cv_lib_cposix_strerror=no |
| 3664 | | fi |
| 3665 | | |
| 3666 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3667 | | conftest$ac_exeext conftest.$ac_ext |
| 3668 | | LIBS=$ac_check_lib_save_LIBS |
| 3669 | | fi |
| 3670 | | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 3671 | | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
| 3672 | | if test $ac_cv_lib_cposix_strerror = yes; then |
| 3673 | | LIBS="$LIBS -lcposix" |
| 3674 | | fi |
| 3675 | | |
| 3676 | | |
| 3677 | | |
| 3678 | | |
| 3679 | | ac_ext=c |
| 3680 | | ac_cpp='$CPP $CPPFLAGS' |
| 3681 | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3682 | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3683 | | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3684 | | if test -n "$ac_tool_prefix"; then |
| 3685 | | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3686 | | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3687 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3688 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 3689 | | if test "${ac_cv_prog_CC+set}" = set; then |
| 3690 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3691 | | else |
| 3692 | | if test -n "$CC"; then |
| 3693 | | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3694 | | else |
| 3695 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3696 | | for as_dir in $PATH |
| 3697 | | do |
| 3698 | | IFS=$as_save_IFS |
| 3699 | | test -z "$as_dir" && as_dir=. |
| 3700 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3701 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3702 | | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3703 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3704 | | break 2 |
| 3705 | | fi |
| 3706 | | done |
| 3707 | | done |
| 3708 | | IFS=$as_save_IFS |
| 3709 | | |
| 3710 | | fi |
| 3711 | | fi |
| 3712 | | CC=$ac_cv_prog_CC |
| 3713 | | if test -n "$CC"; then |
| 3714 | | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 3715 | | echo "${ECHO_T}$CC" >&6; } |
| 3716 | | else |
| 3717 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 3718 | | echo "${ECHO_T}no" >&6; } |
| 3719 | | fi |
| 3720 | | |
| 3721 | | |
| 3722 | | fi |
| 3723 | | if test -z "$ac_cv_prog_CC"; then |
| 3724 | | ac_ct_CC=$CC |
| 3725 | | # Extract the first word of "gcc", so it can be a program name with args. |
| 3726 | | set dummy gcc; ac_word=$2 |
| 3727 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3728 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 3729 | | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3730 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3731 | | else |
| 3732 | | if test -n "$ac_ct_CC"; then |
| 3733 | | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3734 | | else |
| 3735 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3736 | | for as_dir in $PATH |
| 3737 | | do |
| 3738 | | IFS=$as_save_IFS |
| 3739 | | test -z "$as_dir" && as_dir=. |
| 3740 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3741 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3742 | | ac_cv_prog_ac_ct_CC="gcc" |
| 3743 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3744 | | break 2 |
| 3745 | | fi |
| 3746 | | done |
| 3747 | | done |
| 3748 | | IFS=$as_save_IFS |
| 3749 | | |
| 3750 | | fi |
| 3751 | | fi |
| 3752 | | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3753 | | if test -n "$ac_ct_CC"; then |
| 3754 | | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3755 | | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 3756 | | else |
| 3757 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 3758 | | echo "${ECHO_T}no" >&6; } |
| 3759 | | fi |
| 3760 | | |
| 3761 | | if test "x$ac_ct_CC" = x; then |
| 3762 | | CC="" |
| 3763 | | else |
| 3764 | | case $cross_compiling:$ac_tool_warned in |
| 3765 | | yes:) |
| 3766 | | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3767 | | whose name does not start with the host triplet. If you think this |
| 3768 | | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3769 | | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3770 | | whose name does not start with the host triplet. If you think this |
| 3771 | | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3772 | | ac_tool_warned=yes ;; |
| 3773 | | esac |
| 3774 | | CC=$ac_ct_CC |
| 3775 | | fi |
| 3776 | | else |
| 3777 | | CC="$ac_cv_prog_CC" |
| 3778 | | fi |
| 3779 | | |
| 3780 | | if test -z "$CC"; then |
| 3781 | | if test -n "$ac_tool_prefix"; then |
| 3782 | | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3783 | | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3784 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3785 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 3786 | | if test "${ac_cv_prog_CC+set}" = set; then |
| 3787 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3788 | | else |
| 3789 | | if test -n "$CC"; then |
| 3790 | | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3791 | | else |
| 3792 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3793 | | for as_dir in $PATH |
| 3794 | | do |
| 3795 | | IFS=$as_save_IFS |
| 3796 | | test -z "$as_dir" && as_dir=. |
| 3797 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3798 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3799 | | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3800 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3801 | | break 2 |
| 3802 | | fi |
| 3803 | | done |
| 3804 | | done |
| 3805 | | IFS=$as_save_IFS |
| 3806 | | |
| 3807 | | fi |
| 3808 | | fi |
| 3809 | | CC=$ac_cv_prog_CC |
| 3810 | | if test -n "$CC"; then |
| 3811 | | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 3812 | | echo "${ECHO_T}$CC" >&6; } |
| 3813 | | else |
| 3814 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 3815 | | echo "${ECHO_T}no" >&6; } |
| 3816 | | fi |
| 3817 | | |
| 3818 | | |
| 3819 | | fi |
| 3820 | | fi |
| 3821 | | if test -z "$CC"; then |
| 3822 | | # Extract the first word of "cc", so it can be a program name with args. |
| 3823 | | set dummy cc; ac_word=$2 |
| 3824 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3825 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 3826 | | if test "${ac_cv_prog_CC+set}" = set; then |
| 3827 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3828 | | else |
| 3829 | | if test -n "$CC"; then |
| 3830 | | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3831 | | else |
| 3832 | | ac_prog_rejected=no |
| 3833 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3834 | | for as_dir in $PATH |
| 3835 | | do |
| 3836 | | IFS=$as_save_IFS |
| 3837 | | test -z "$as_dir" && as_dir=. |
| 3838 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3839 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3840 | | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3841 | | ac_prog_rejected=yes |
| 3842 | | continue |
| 3843 | | fi |
| 3844 | | ac_cv_prog_CC="cc" |
| 3845 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3846 | | break 2 |
| 3847 | | fi |
| 3848 | | done |
| 3849 | | done |
| 3850 | | IFS=$as_save_IFS |
| 3851 | | |
| 3852 | | if test $ac_prog_rejected = yes; then |
| 3853 | | # We found a bogon in the path, so make sure we never use it. |
| 3854 | | set dummy $ac_cv_prog_CC |
| 3855 | | shift |
| 3856 | | if test $# != 0; then |
| 3857 | | # We chose a different compiler from the bogus one. |
| 3858 | | # However, it has the same basename, so the bogon will be chosen |
| 3859 | | # first if we set CC to just the basename; use the full file name. |
| 3860 | | shift |
| 3861 | | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3862 | | fi |
| 3863 | | fi |
| 3864 | | fi |
| 3865 | | fi |
| 3866 | | CC=$ac_cv_prog_CC |
| 3867 | | if test -n "$CC"; then |
| 3868 | | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 3869 | | echo "${ECHO_T}$CC" >&6; } |
| 3870 | | else |
| 3871 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 3872 | | echo "${ECHO_T}no" >&6; } |
| 3873 | | fi |
| 3874 | | |
| 3875 | | |
| 3876 | | fi |
| 3877 | | if test -z "$CC"; then |
| 3878 | | if test -n "$ac_tool_prefix"; then |
| 3879 | | for ac_prog in cl.exe |
| 3880 | | do |
| 3881 | | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3882 | | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3883 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3884 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 3885 | | if test "${ac_cv_prog_CC+set}" = set; then |
| 3886 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3887 | | else |
| 3888 | | if test -n "$CC"; then |
| 3889 | | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3890 | | else |
| 3891 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3892 | | for as_dir in $PATH |
| 3893 | | do |
| 3894 | | IFS=$as_save_IFS |
| 3895 | | test -z "$as_dir" && as_dir=. |
| 3896 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3897 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3898 | | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3899 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3900 | | break 2 |
| 3901 | | fi |
| 3902 | | done |
| 3903 | | done |
| 3904 | | IFS=$as_save_IFS |
| 3905 | | |
| 3906 | | fi |
| 3907 | | fi |
| 3908 | | CC=$ac_cv_prog_CC |
| 3909 | | if test -n "$CC"; then |
| 3910 | | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 3911 | | echo "${ECHO_T}$CC" >&6; } |
| 3912 | | else |
| 3913 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 3914 | | echo "${ECHO_T}no" >&6; } |
| 3915 | | fi |
| 3916 | | |
| 3917 | | |
| 3918 | | test -n "$CC" && break |
| 3919 | | done |
| 3920 | | fi |
| 3921 | | if test -z "$CC"; then |
| 3922 | | ac_ct_CC=$CC |
| 3923 | | for ac_prog in cl.exe |
| 3924 | | do |
| 3925 | | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3926 | | set dummy $ac_prog; ac_word=$2 |
| 3927 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3928 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 3929 | | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3930 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3931 | | else |
| 3932 | | if test -n "$ac_ct_CC"; then |
| 3933 | | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3934 | | else |
| 3935 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3936 | | for as_dir in $PATH |
| 3937 | | do |
| 3938 | | IFS=$as_save_IFS |
| 3939 | | test -z "$as_dir" && as_dir=. |
| 3940 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3941 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3942 | | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3943 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3944 | | break 2 |
| 3945 | | fi |
| 3946 | | done |
| 3947 | | done |
| 3948 | | IFS=$as_save_IFS |
| 3949 | | |
| 3950 | | fi |
| 3951 | | fi |
| 3952 | | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3953 | | if test -n "$ac_ct_CC"; then |
| 3954 | | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3955 | | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 3956 | | else |
| 3957 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 3958 | | echo "${ECHO_T}no" >&6; } |
| 3959 | | fi |
| 3960 | | |
| 3961 | | |
| 3962 | | test -n "$ac_ct_CC" && break |
| 3963 | | done |
| 3964 | | |
| 3965 | | if test "x$ac_ct_CC" = x; then |
| 3966 | | CC="" |
| 3967 | | else |
| 3968 | | case $cross_compiling:$ac_tool_warned in |
| 3969 | | yes:) |
| 3970 | | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3971 | | whose name does not start with the host triplet. If you think this |
| 3972 | | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3973 | | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3974 | | whose name does not start with the host triplet. If you think this |
| 3975 | | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3976 | | ac_tool_warned=yes ;; |
| 3977 | | esac |
| 3978 | | CC=$ac_ct_CC |
| 3979 | | fi |
| 3980 | | fi |
| 3981 | | |
| 3982 | | fi |
| 3983 | | |
| 3984 | | |
| 3985 | | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3986 | | See \`config.log' for more details." >&5 |
| 3987 | | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3988 | | See \`config.log' for more details." >&2;} |
| 3989 | | { (exit 1); exit 1; }; } |
| 3990 | | |
| 3991 | | # Provide some information about the compiler. |
| 3992 | | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 3993 | | ac_compiler=`set X $ac_compile; echo $2` |
| 3994 | | { (ac_try="$ac_compiler --version >&5" |
| 3995 | | case "(($ac_try" in |
| 3996 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3997 | | *) ac_try_echo=$ac_try;; |
| 3998 | | esac |
| 3999 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4000 | | (eval "$ac_compiler --version >&5") 2>&5 |
| 4001 | | ac_status=$? |
| 4002 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4003 | | (exit $ac_status); } |
| 4004 | | { (ac_try="$ac_compiler -v >&5" |
| 4005 | | case "(($ac_try" in |
| 4006 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4007 | | *) ac_try_echo=$ac_try;; |
| 4008 | | esac |
| 4009 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4010 | | (eval "$ac_compiler -v >&5") 2>&5 |
| 4011 | | ac_status=$? |
| 4012 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4013 | | (exit $ac_status); } |
| 4014 | | { (ac_try="$ac_compiler -V >&5" |
| 4015 | | case "(($ac_try" in |
| 4016 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4017 | | *) ac_try_echo=$ac_try;; |
| 4018 | | esac |
| 4019 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4020 | | (eval "$ac_compiler -V >&5") 2>&5 |
| 4021 | | ac_status=$? |
| 4022 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4023 | | (exit $ac_status); } |
| 4024 | | |
| 4025 | | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 4026 | | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 4027 | | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 4028 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4029 | | else |
| 4030 | | cat >conftest.$ac_ext <<_ACEOF |
| 4031 | | /* confdefs.h. */ |
| 4032 | | _ACEOF |
| 4033 | | cat confdefs.h >>conftest.$ac_ext |
| 4034 | | cat >>conftest.$ac_ext <<_ACEOF |
| 4035 | | /* end confdefs.h. */ |
| 4036 | | |
| 4037 | | int |
| 4038 | | main () |
| 4039 | | { |
| 4040 | | #ifndef __GNUC__ |
| 4041 | | choke me |
| 4042 | | #endif |
| 4043 | | |
| 4044 | | ; |
| 4045 | | return 0; |
| 4046 | | } |
| 4047 | | _ACEOF |
| 4048 | | rm -f conftest.$ac_objext |
| 4049 | | if { (ac_try="$ac_compile" |
| 4050 | | case "(($ac_try" in |
| 4051 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4052 | | *) ac_try_echo=$ac_try;; |
| 4053 | | esac |
| 4054 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4055 | | (eval "$ac_compile") 2>conftest.er1 |
| 4056 | | ac_status=$? |
| 4057 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 4058 | | rm -f conftest.er1 |
| 4059 | | cat conftest.err >&5 |
| 4060 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4061 | | (exit $ac_status); } && { |
| 4062 | | test -z "$ac_c_werror_flag" || |
| 4063 | | test ! -s conftest.err |
| 4064 | | } && test -s conftest.$ac_objext; then |
| 4065 | | ac_compiler_gnu=yes |
| 4066 | | else |
| 4067 | | echo "$as_me: failed program was:" >&5 |
| 4068 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4069 | | |
| 4070 | | ac_compiler_gnu=no |
| 4071 | | fi |
| 4072 | | |
| 4073 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4074 | | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4075 | | |
| 4076 | | fi |
| 4077 | | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 4078 | | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 4079 | | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 4080 | | ac_test_CFLAGS=${CFLAGS+set} |
| 4081 | | ac_save_CFLAGS=$CFLAGS |
| 4082 | | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 4083 | | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 4084 | | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 4085 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4086 | | else |
| 4087 | | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4088 | | ac_c_werror_flag=yes |
| 4089 | | ac_cv_prog_cc_g=no |
| 4090 | | CFLAGS="-g" |
| 4091 | | cat >conftest.$ac_ext <<_ACEOF |
| 4092 | | /* confdefs.h. */ |
| 4093 | | _ACEOF |
| 4094 | | cat confdefs.h >>conftest.$ac_ext |
| 4095 | | cat >>conftest.$ac_ext <<_ACEOF |
| 4096 | | /* end confdefs.h. */ |
| 4097 | | |
| 4098 | | int |
| 4099 | | main () |
| 4100 | | { |
| 4101 | | |
| 4102 | | ; |
| 4103 | | return 0; |
| 4104 | | } |
| 4105 | | _ACEOF |
| 4106 | | rm -f conftest.$ac_objext |
| 4107 | | if { (ac_try="$ac_compile" |
| 4108 | | case "(($ac_try" in |
| 4109 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4110 | | *) ac_try_echo=$ac_try;; |
| 4111 | | esac |
| 4112 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4113 | | (eval "$ac_compile") 2>conftest.er1 |
| 4114 | | ac_status=$? |
| 4115 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 4116 | | rm -f conftest.er1 |
| 4117 | | cat conftest.err >&5 |
| 4118 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4119 | | (exit $ac_status); } && { |
| 4120 | | test -z "$ac_c_werror_flag" || |
| 4121 | | test ! -s conftest.err |
| 4122 | | } && test -s conftest.$ac_objext; then |
| 4123 | | ac_cv_prog_cc_g=yes |
| 4124 | | else |
| 4125 | | echo "$as_me: failed program was:" >&5 |
| 4126 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4127 | | |
| 4128 | | CFLAGS="" |
| 4129 | | cat >conftest.$ac_ext <<_ACEOF |
| 4130 | | /* confdefs.h. */ |
| 4131 | | _ACEOF |
| 4132 | | cat confdefs.h >>conftest.$ac_ext |
| 4133 | | cat >>conftest.$ac_ext <<_ACEOF |
| 4134 | | /* end confdefs.h. */ |
| 4135 | | |
| 4136 | | int |
| 4137 | | main () |
| 4138 | | { |
| 4139 | | |
| 4140 | | ; |
| 4141 | | return 0; |
| 4142 | | } |
| 4143 | | _ACEOF |
| 4144 | | rm -f conftest.$ac_objext |
| 4145 | | if { (ac_try="$ac_compile" |
| 4146 | | case "(($ac_try" in |
| 4147 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4148 | | *) ac_try_echo=$ac_try;; |
| 4149 | | esac |
| 4150 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4151 | | (eval "$ac_compile") 2>conftest.er1 |
| 4152 | | ac_status=$? |
| 4153 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 4154 | | rm -f conftest.er1 |
| 4155 | | cat conftest.err >&5 |
| 4156 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4157 | | (exit $ac_status); } && { |
| 4158 | | test -z "$ac_c_werror_flag" || |
| 4159 | | test ! -s conftest.err |
| 4160 | | } && test -s conftest.$ac_objext; then |
| 4161 | | : |
| 4162 | | else |
| 4163 | | echo "$as_me: failed program was:" >&5 |
| 4164 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4165 | | |
| 4166 | | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4167 | | CFLAGS="-g" |
| 4168 | | cat >conftest.$ac_ext <<_ACEOF |
| 4169 | | /* confdefs.h. */ |
| 4170 | | _ACEOF |
| 4171 | | cat confdefs.h >>conftest.$ac_ext |
| 4172 | | cat >>conftest.$ac_ext <<_ACEOF |
| 4173 | | /* end confdefs.h. */ |
| 4174 | | |
| 4175 | | int |
| 4176 | | main () |
| 4177 | | { |
| 4178 | | |
| 4179 | | ; |
| 4180 | | return 0; |
| 4181 | | } |
| 4182 | | _ACEOF |
| 4183 | | rm -f conftest.$ac_objext |
| 4184 | | if { (ac_try="$ac_compile" |
| 4185 | | case "(($ac_try" in |
| 4186 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4187 | | *) ac_try_echo=$ac_try;; |
| 4188 | | esac |
| 4189 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4190 | | (eval "$ac_compile") 2>conftest.er1 |
| 4191 | | ac_status=$? |
| 4192 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 4193 | | rm -f conftest.er1 |
| 4194 | | cat conftest.err >&5 |
| 4195 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4196 | | (exit $ac_status); } && { |
| 4197 | | test -z "$ac_c_werror_flag" || |
| 4198 | | test ! -s conftest.err |
| 4199 | | } && test -s conftest.$ac_objext; then |
| 4200 | | ac_cv_prog_cc_g=yes |
| 4201 | | else |
| 4202 | | echo "$as_me: failed program was:" >&5 |
| 4203 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4204 | | |
| 4205 | | |
| 4206 | | fi |
| 4207 | | |
| 4208 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4209 | | fi |
| 4210 | | |
| 4211 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4212 | | fi |
| 4213 | | |
| 4214 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4215 | | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4216 | | fi |
| 4217 | | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 4218 | | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 4219 | | if test "$ac_test_CFLAGS" = set; then |
| 4220 | | CFLAGS=$ac_save_CFLAGS |
| 4221 | | elif test $ac_cv_prog_cc_g = yes; then |
| 4222 | | if test "$GCC" = yes; then |
| 4223 | | CFLAGS="-g -O2" |
| 4224 | | else |
| 4225 | | CFLAGS="-g" |
| 4226 | | fi |
| 4227 | | else |
| 4228 | | if test "$GCC" = yes; then |
| 4229 | | CFLAGS="-O2" |
| 4230 | | else |
| 4231 | | CFLAGS= |
| 4232 | | fi |
| 4233 | | fi |
| 4234 | | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 4235 | | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 4236 | | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 4237 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4238 | | else |
| 4239 | | ac_cv_prog_cc_c89=no |
| 4240 | | ac_save_CC=$CC |
| 4241 | | cat >conftest.$ac_ext <<_ACEOF |
| 4242 | | /* confdefs.h. */ |
| 4243 | | _ACEOF |
| 4244 | | cat confdefs.h >>conftest.$ac_ext |
| 4245 | | cat >>conftest.$ac_ext <<_ACEOF |
| 4246 | | /* end confdefs.h. */ |
| 4247 | | #include <stdarg.h> |
| 4248 | | #include <stdio.h> |
| 4249 | | #include <sys/types.h> |
| 4250 | | #include <sys/stat.h> |
| 4251 | | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4252 | | struct buf { int x; }; |
| 4253 | | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4254 | | static char *e (p, i) |
| 4255 | | char **p; |
| 4256 | | int i; |
| 4257 | | { |
| 4258 | | return p[i]; |
| 4259 | | } |
| 4260 | | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4261 | | { |
| 4262 | | char *s; |
| 4263 | | va_list v; |
| 4264 | | va_start (v,p); |
| 4265 | | s = g (p, va_arg (v,int)); |
| 4266 | | va_end (v); |
| 4267 | | return s; |
| 4268 | | } |
| 4269 | | |
| 4270 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4271 | | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4272 | | These don't provoke an error unfortunately, instead are silently treated |
| 4273 | | as 'x'. The following induces an error, until -std is added to get |
| 4274 | | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4275 | | array size at least. It's necessary to write '\x00'==0 to get something |
| 4276 | | that's true only with -std. */ |
| 4277 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4278 | | |
| 4279 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4280 | | inside strings and character constants. */ |
| 4281 | | #define FOO(x) 'x' |
| 4282 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4283 | | |
| 4284 | | int test (int i, double x); |
| 4285 | | struct s1 {int (*f) (int a);}; |
| 4286 | | struct s2 {int (*f) (double a);}; |
| 4287 | | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4288 | | int argc; |
| 4289 | | char **argv; |
| 4290 | | int |
| 4291 | | main () |
| 4292 | | { |
| 4293 | | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4294 | | ; |
| 4295 | | return 0; |
| 4296 | | } |
| 4297 | | _ACEOF |
| 4298 | | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4299 | | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4300 | | do |
| 4301 | | CC="$ac_save_CC $ac_arg" |
| 4302 | | rm -f conftest.$ac_objext |
| 4303 | | if { (ac_try="$ac_compile" |
| 4304 | | case "(($ac_try" in |
| 4305 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4306 | | *) ac_try_echo=$ac_try;; |
| 4307 | | esac |
| 4308 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4309 | | (eval "$ac_compile") 2>conftest.er1 |
| 4310 | | ac_status=$? |
| 4311 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 4312 | | rm -f conftest.er1 |
| 4313 | | cat conftest.err >&5 |
| 4314 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4315 | | (exit $ac_status); } && { |
| 4316 | | test -z "$ac_c_werror_flag" || |
| 4317 | | test ! -s conftest.err |
| 4318 | | } && test -s conftest.$ac_objext; then |
| 4319 | | ac_cv_prog_cc_c89=$ac_arg |
| 4320 | | else |
| 4321 | | echo "$as_me: failed program was:" >&5 |
| 4322 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4323 | | |
| 4324 | | |
| 4325 | | fi |
| 4326 | | |
| 4327 | | rm -f core conftest.err conftest.$ac_objext |
| 4328 | | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4329 | | done |
| 4330 | | rm -f conftest.$ac_ext |
| 4331 | | CC=$ac_save_CC |
| 4332 | | |
| 4333 | | fi |
| 4334 | | # AC_CACHE_VAL |
| 4335 | | case "x$ac_cv_prog_cc_c89" in |
| 4336 | | x) |
| 4337 | | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 4338 | | echo "${ECHO_T}none needed" >&6; } ;; |
| 4339 | | xno) |
| 4340 | | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 4341 | | echo "${ECHO_T}unsupported" >&6; } ;; |
| 4342 | | *) |
| 4343 | | CC="$CC $ac_cv_prog_cc_c89" |
| 4344 | | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 4345 | | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 4346 | | esac |
| 4347 | | |
| 4348 | | |
| 4349 | | ac_ext=c |
| 4350 | | ac_cpp='$CPP $CPPFLAGS' |
| 4351 | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4352 | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4353 | | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4354 | | |
| 4355 | | depcc="$CC" am_compiler_list= |
| 4356 | | |
| 4357 | | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 4358 | | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
| 4359 | | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 4360 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4361 | | else |
| 4362 | | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4363 | | # We make a subdir and do the tests there. Otherwise we can end up |
| 4364 | | # making bogus files that we don't know about and never remove. For |
| 4365 | | # instance it was reported that on HP-UX the gcc test will end up |
| 4366 | | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4367 | | # in D'. |
| 4368 | | mkdir conftest.dir |
| 4369 | | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4370 | | # using a relative directory. |
| 4371 | | cp "$am_depcomp" conftest.dir |
| 4372 | | cd conftest.dir |
| 4373 | | # We will build objects and dependencies in a subdirectory because |
| 4374 | | # it helps to detect inapplicable dependency modes. For instance |
| 4375 | | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4376 | | # side effect of compilation, but ICC will put the dependencies in |
| 4377 | | # the current directory while Tru64 will put them in the object |
| 4378 | | # directory. |
| 4379 | | mkdir sub |
| 4380 | | |
| 4381 | | am_cv_CC_dependencies_compiler_type=none |
| 4382 | | if test "$am_compiler_list" = ""; then |
| 4383 | | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4384 | | fi |
| 4385 | | for depmode in $am_compiler_list; do |
| 4386 | | # Setup a source with many dependencies, because some compilers |
| 4387 | | # like to wrap large dependency lists on column 80 (with \), and |
| 4388 | | # we should not choose a depcomp mode which is confused by this. |
| 4389 | | # |
| 4390 | | # We need to recreate these files for each test, as the compiler may |
| 4391 | | # overwrite some of them when testing with obscure command lines. |
| 4392 | | # This happens at least with the AIX C compiler. |
| 4393 | | : > sub/conftest.c |
| 4394 | | for i in 1 2 3 4 5 6; do |
| 4395 | | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4396 | | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4397 | | # Solaris 8's {/usr,}/bin/sh. |
| 4398 | | touch sub/conftst$i.h |
| 4399 | | done |
| 4400 | | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4401 | | |
| 4402 | | case $depmode in |
| 4403 | | nosideeffect) |
| 4404 | | # after this tag, mechanisms are not by side-effect, so they'll |
| 4405 | | # only be used when explicitly requested |
| 4406 | | if test "x$enable_dependency_tracking" = xyes; then |
| 4407 | | continue |
| 4408 | | else |
| 4409 | | break |
| 4410 | | fi |
| 4411 | | ;; |
| 4412 | | none) break ;; |
| 4413 | | esac |
| 4414 | | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4415 | | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4416 | | # handle `-M -o', and we need to detect this. |
| 4417 | | if depmode=$depmode \ |
| 4418 | | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 4419 | | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4420 | | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 4421 | | >/dev/null 2>conftest.err && |
| 4422 | | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4423 | | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4424 | | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 4425 | | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4426 | | # icc doesn't choke on unknown options, it will just issue warnings |
| 4427 | | # or remarks (even with -Werror). So we grep stderr for any message |
| 4428 | | # that says an option was ignored or not supported. |
| 4429 | | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4430 | | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4431 | | # The diagnosis changed in icc 8.0: |
| 4432 | | # icc: Command line remark: option '-MP' not supported |
| 4433 | | if (grep 'ignoring option' conftest.err || |
| 4434 | | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4435 | | am_cv_CC_dependencies_compiler_type=$depmode |
| 4436 | | break |
| 4437 | | fi |
| 4438 | | fi |
| 4439 | | done |
| 4440 | | |
| 4441 | | cd .. |
| 4442 | | rm -rf conftest.dir |
| 4443 | | else |
| 4444 | | am_cv_CC_dependencies_compiler_type=none |
| 4445 | | fi |
| 4446 | | |
| 4447 | | fi |
| 4448 | | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4449 | | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4450 | | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4451 | | |
| 4452 | | if |
| 4453 | | test "x$enable_dependency_tracking" != xno \ |
| 4454 | | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4455 | | am__fastdepCC_TRUE= |
| 4456 | | am__fastdepCC_FALSE='#' |
| 4457 | | else |
| 4458 | | am__fastdepCC_TRUE='#' |
| 4459 | | am__fastdepCC_FALSE= |
| 4460 | | fi |
| 4461 | | |
| 4462 | | |
| 4463 | | ac_ext=c |
| 4464 | | ac_cpp='$CPP $CPPFLAGS' |
| 4465 | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4466 | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4467 | | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4468 | | if test -n "$ac_tool_prefix"; then |
| 4469 | | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4470 | | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4471 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4472 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4473 | | if test "${ac_cv_prog_CC+set}" = set; then |
| 4474 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4475 | | else |
| 4476 | | if test -n "$CC"; then |
| 4477 | | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4478 | | else |
| 4479 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4480 | | for as_dir in $PATH |
| 4481 | | do |
| 4482 | | IFS=$as_save_IFS |
| 4483 | | test -z "$as_dir" && as_dir=. |
| 4484 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4485 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4486 | | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4487 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4488 | | break 2 |
| 4489 | | fi |
| 4490 | | done |
| 4491 | | done |
| 4492 | | IFS=$as_save_IFS |
| 4493 | | |
| 4494 | | fi |
| 4495 | | fi |
| 4496 | | CC=$ac_cv_prog_CC |
| 4497 | | if test -n "$CC"; then |
| 4498 | | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 4499 | | echo "${ECHO_T}$CC" >&6; } |
| 4500 | | else |
| 4501 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 4502 | | echo "${ECHO_T}no" >&6; } |
| 4503 | | fi |
| 4504 | | |
| 4505 | | |
| 4506 | | fi |
| 4507 | | if test -z "$ac_cv_prog_CC"; then |
| 4508 | | ac_ct_CC=$CC |
| 4509 | | # Extract the first word of "gcc", so it can be a program name with args. |
| 4510 | | set dummy gcc; ac_word=$2 |
| 4511 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4512 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4513 | | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 4514 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4515 | | else |
| 4516 | | if test -n "$ac_ct_CC"; then |
| 4517 | | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4518 | | else |
| 4519 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4520 | | for as_dir in $PATH |
| 4521 | | do |
| 4522 | | IFS=$as_save_IFS |
| 4523 | | test -z "$as_dir" && as_dir=. |
| 4524 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4525 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4526 | | ac_cv_prog_ac_ct_CC="gcc" |
| 4527 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4528 | | break 2 |
| 4529 | | fi |
| 4530 | | done |
| 4531 | | done |
| 4532 | | IFS=$as_save_IFS |
| 4533 | | |
| 4534 | | fi |
| 4535 | | fi |
| 4536 | | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4537 | | if test -n "$ac_ct_CC"; then |
| 4538 | | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 4539 | | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 4540 | | else |
| 4541 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 4542 | | echo "${ECHO_T}no" >&6; } |
| 4543 | | fi |
| 4544 | | |
| 4545 | | if test "x$ac_ct_CC" = x; then |
| 4546 | | CC="" |
| 4547 | | else |
| 4548 | | case $cross_compiling:$ac_tool_warned in |
| 4549 | | yes:) |
| 4550 | | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4551 | | whose name does not start with the host triplet. If you think this |
| 4552 | | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4553 | | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4554 | | whose name does not start with the host triplet. If you think this |
| 4555 | | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4556 | | ac_tool_warned=yes ;; |
| 4557 | | esac |
| 4558 | | CC=$ac_ct_CC |
| 4559 | | fi |
| 4560 | | else |
| 4561 | | CC="$ac_cv_prog_CC" |
| 4562 | | fi |
| 4563 | | |
| 4564 | | if test -z "$CC"; then |
| 4565 | | if test -n "$ac_tool_prefix"; then |
| 4566 | | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4567 | | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4568 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4569 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4570 | | if test "${ac_cv_prog_CC+set}" = set; then |
| 4571 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4572 | | else |
| 4573 | | if test -n "$CC"; then |
| 4574 | | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4575 | | else |
| 4576 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4577 | | for as_dir in $PATH |
| 4578 | | do |
| 4579 | | IFS=$as_save_IFS |
| 4580 | | test -z "$as_dir" && as_dir=. |
| 4581 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4582 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4583 | | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4584 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4585 | | break 2 |
| 4586 | | fi |
| 4587 | | done |
| 4588 | | done |
| 4589 | | IFS=$as_save_IFS |
| 4590 | | |
| 4591 | | fi |
| 4592 | | fi |
| 4593 | | CC=$ac_cv_prog_CC |
| 4594 | | if test -n "$CC"; then |
| 4595 | | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 4596 | | echo "${ECHO_T}$CC" >&6; } |
| 4597 | | else |
| 4598 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 4599 | | echo "${ECHO_T}no" >&6; } |
| 4600 | | fi |
| 4601 | | |
| 4602 | | |
| 4603 | | fi |
| 4604 | | fi |
| 4605 | | if test -z "$CC"; then |
| 4606 | | # Extract the first word of "cc", so it can be a program name with args. |
| 4607 | | set dummy cc; ac_word=$2 |
| 4608 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4609 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4610 | | if test "${ac_cv_prog_CC+set}" = set; then |
| 4611 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4612 | | else |
| 4613 | | if test -n "$CC"; then |
| 4614 | | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4615 | | else |
| 4616 | | ac_prog_rejected=no |
| 4617 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4618 | | for as_dir in $PATH |
| 4619 | | do |
| 4620 | | IFS=$as_save_IFS |
| 4621 | | test -z "$as_dir" && as_dir=. |
| 4622 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4623 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4624 | | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4625 | | ac_prog_rejected=yes |
| 4626 | | continue |
| 4627 | | fi |
| 4628 | | ac_cv_prog_CC="cc" |
| 4629 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4630 | | break 2 |
| 4631 | | fi |
| 4632 | | done |
| 4633 | | done |
| 4634 | | IFS=$as_save_IFS |
| 4635 | | |
| 4636 | | if test $ac_prog_rejected = yes; then |
| 4637 | | # We found a bogon in the path, so make sure we never use it. |
| 4638 | | set dummy $ac_cv_prog_CC |
| 4639 | | shift |
| 4640 | | if test $# != 0; then |
| 4641 | | # We chose a different compiler from the bogus one. |
| 4642 | | # However, it has the same basename, so the bogon will be chosen |
| 4643 | | # first if we set CC to just the basename; use the full file name. |
| 4644 | | shift |
| 4645 | | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4646 | | fi |
| 4647 | | fi |
| 4648 | | fi |
| 4649 | | fi |
| 4650 | | CC=$ac_cv_prog_CC |
| 4651 | | if test -n "$CC"; then |
| 4652 | | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 4653 | | echo "${ECHO_T}$CC" >&6; } |
| 4654 | | else |
| 4655 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 4656 | | echo "${ECHO_T}no" >&6; } |
| 4657 | | fi |
| 4658 | | |
| 4659 | | |
| 4660 | | fi |
| 4661 | | if test -z "$CC"; then |
| 4662 | | if test -n "$ac_tool_prefix"; then |
| 4663 | | for ac_prog in cl.exe |
| 4664 | | do |
| 4665 | | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4666 | | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4667 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4668 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4669 | | if test "${ac_cv_prog_CC+set}" = set; then |
| 4670 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4671 | | else |
| 4672 | | if test -n "$CC"; then |
| 4673 | | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4674 | | else |
| 4675 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4676 | | for as_dir in $PATH |
| 4677 | | do |
| 4678 | | IFS=$as_save_IFS |
| 4679 | | test -z "$as_dir" && as_dir=. |
| 4680 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4681 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4682 | | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4683 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4684 | | break 2 |
| 4685 | | fi |
| 4686 | | done |
| 4687 | | done |
| 4688 | | IFS=$as_save_IFS |
| 4689 | | |
| 4690 | | fi |
| 4691 | | fi |
| 4692 | | CC=$ac_cv_prog_CC |
| 4693 | | if test -n "$CC"; then |
| 4694 | | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 4695 | | echo "${ECHO_T}$CC" >&6; } |
| 4696 | | else |
| 4697 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 4698 | | echo "${ECHO_T}no" >&6; } |
| 4699 | | fi |
| 4700 | | |
| 4701 | | |
| 4702 | | test -n "$CC" && break |
| 4703 | | done |
| 4704 | | fi |
| 4705 | | if test -z "$CC"; then |
| 4706 | | ac_ct_CC=$CC |
| 4707 | | for ac_prog in cl.exe |
| 4708 | | do |
| 4709 | | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4710 | | set dummy $ac_prog; ac_word=$2 |
| 4711 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4712 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4713 | | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 4714 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4715 | | else |
| 4716 | | if test -n "$ac_ct_CC"; then |
| 4717 | | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4718 | | else |
| 4719 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4720 | | for as_dir in $PATH |
| 4721 | | do |
| 4722 | | IFS=$as_save_IFS |
| 4723 | | test -z "$as_dir" && as_dir=. |
| 4724 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4725 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4726 | | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4727 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4728 | | break 2 |
| 4729 | | fi |
| 4730 | | done |
| 4731 | | done |
| 4732 | | IFS=$as_save_IFS |
| 4733 | | |
| 4734 | | fi |
| 4735 | | fi |
| 4736 | | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4737 | | if test -n "$ac_ct_CC"; then |
| 4738 | | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 4739 | | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 4740 | | else |
| 4741 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 4742 | | echo "${ECHO_T}no" >&6; } |
| 4743 | | fi |
| 4744 | | |
| 4745 | | |
| 4746 | | test -n "$ac_ct_CC" && break |
| 4747 | | done |
| 4748 | | |
| 4749 | | if test "x$ac_ct_CC" = x; then |
| 4750 | | CC="" |
| 4751 | | else |
| 4752 | | case $cross_compiling:$ac_tool_warned in |
| 4753 | | yes:) |
| 4754 | | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4755 | | whose name does not start with the host triplet. If you think this |
| 4756 | | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4757 | | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4758 | | whose name does not start with the host triplet. If you think this |
| 4759 | | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4760 | | ac_tool_warned=yes ;; |
| 4761 | | esac |
| 4762 | | CC=$ac_ct_CC |
| 4763 | | fi |
| 4764 | | fi |
| 4765 | | |
| 4766 | | fi |
| 4767 | | |
| 4768 | | |
| 4769 | | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 4770 | | See \`config.log' for more details." >&5 |
| 4771 | | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 4772 | | See \`config.log' for more details." >&2;} |
| 4773 | | { (exit 1); exit 1; }; } |
| 4774 | | |
| 4775 | | # Provide some information about the compiler. |
| 4776 | | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 4777 | | ac_compiler=`set X $ac_compile; echo $2` |
| 4778 | | { (ac_try="$ac_compiler --version >&5" |
| 4779 | | case "(($ac_try" in |
| 4780 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4781 | | *) ac_try_echo=$ac_try;; |
| 4782 | | esac |
| 4783 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4784 | | (eval "$ac_compiler --version >&5") 2>&5 |
| 4785 | | ac_status=$? |
| 4786 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4787 | | (exit $ac_status); } |
| 4788 | | { (ac_try="$ac_compiler -v >&5" |
| 4789 | | case "(($ac_try" in |
| 4790 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4791 | | *) ac_try_echo=$ac_try;; |
| 4792 | | esac |
| 4793 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4794 | | (eval "$ac_compiler -v >&5") 2>&5 |
| 4795 | | ac_status=$? |
| 4796 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4797 | | (exit $ac_status); } |
| 4798 | | { (ac_try="$ac_compiler -V >&5" |
| 4799 | | case "(($ac_try" in |
| 4800 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4801 | | *) ac_try_echo=$ac_try;; |
| 4802 | | esac |
| 4803 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4804 | | (eval "$ac_compiler -V >&5") 2>&5 |
| 4805 | | ac_status=$? |
| 4806 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4807 | | (exit $ac_status); } |
| 4808 | | |
| 4809 | | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 4810 | | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 4811 | | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 4812 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4813 | | else |
| 4814 | | cat >conftest.$ac_ext <<_ACEOF |
| 4815 | | /* confdefs.h. */ |
| 4816 | | _ACEOF |
| 4817 | | cat confdefs.h >>conftest.$ac_ext |
| 4818 | | cat >>conftest.$ac_ext <<_ACEOF |
| 4819 | | /* end confdefs.h. */ |
| 4820 | | |
| 4821 | | int |
| 4822 | | main () |
| 4823 | | { |
| 4824 | | #ifndef __GNUC__ |
| 4825 | | choke me |
| 4826 | | #endif |
| 4827 | | |
| 4828 | | ; |
| 4829 | | return 0; |
| 4830 | | } |
| 4831 | | _ACEOF |
| 4832 | | rm -f conftest.$ac_objext |
| 4833 | | if { (ac_try="$ac_compile" |
| 4834 | | case "(($ac_try" in |
| 4835 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4836 | | *) ac_try_echo=$ac_try;; |
| 4837 | | esac |
| 4838 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4839 | | (eval "$ac_compile") 2>conftest.er1 |
| 4840 | | ac_status=$? |
| 4841 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 4842 | | rm -f conftest.er1 |
| 4843 | | cat conftest.err >&5 |
| 4844 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4845 | | (exit $ac_status); } && { |
| 4846 | | test -z "$ac_c_werror_flag" || |
| 4847 | | test ! -s conftest.err |
| 4848 | | } && test -s conftest.$ac_objext; then |
| 4849 | | ac_compiler_gnu=yes |
| 4850 | | else |
| 4851 | | echo "$as_me: failed program was:" >&5 |
| 4852 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4853 | | |
| 4854 | | ac_compiler_gnu=no |
| 4855 | | fi |
| 4856 | | |
| 4857 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4858 | | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4859 | | |
| 4860 | | fi |
| 4861 | | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 4862 | | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 4863 | | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 4864 | | ac_test_CFLAGS=${CFLAGS+set} |
| 4865 | | ac_save_CFLAGS=$CFLAGS |
| 4866 | | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 4867 | | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 4868 | | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 4869 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4870 | | else |
| 4871 | | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4872 | | ac_c_werror_flag=yes |
| 4873 | | ac_cv_prog_cc_g=no |
| 4874 | | CFLAGS="-g" |
| 4875 | | cat >conftest.$ac_ext <<_ACEOF |
| 4876 | | /* confdefs.h. */ |
| 4877 | | _ACEOF |
| 4878 | | cat confdefs.h >>conftest.$ac_ext |
| 4879 | | cat >>conftest.$ac_ext <<_ACEOF |
| 4880 | | /* end confdefs.h. */ |
| 4881 | | |
| 4882 | | int |
| 4883 | | main () |
| 4884 | | { |
| 4885 | | |
| 4886 | | ; |
| 4887 | | return 0; |
| 4888 | | } |
| 4889 | | _ACEOF |
| 4890 | | rm -f conftest.$ac_objext |
| 4891 | | if { (ac_try="$ac_compile" |
| 4892 | | case "(($ac_try" in |
| 4893 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4894 | | *) ac_try_echo=$ac_try;; |
| 4895 | | esac |
| 4896 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4897 | | (eval "$ac_compile") 2>conftest.er1 |
| 4898 | | ac_status=$? |
| 4899 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 4900 | | rm -f conftest.er1 |
| 4901 | | cat conftest.err >&5 |
| 4902 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4903 | | (exit $ac_status); } && { |
| 4904 | | test -z "$ac_c_werror_flag" || |
| 4905 | | test ! -s conftest.err |
| 4906 | | } && test -s conftest.$ac_objext; then |
| 4907 | | ac_cv_prog_cc_g=yes |
| 4908 | | else |
| 4909 | | echo "$as_me: failed program was:" >&5 |
| 4910 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4911 | | |
| 4912 | | CFLAGS="" |
| 4913 | | cat >conftest.$ac_ext <<_ACEOF |
| 4914 | | /* confdefs.h. */ |
| 4915 | | _ACEOF |
| 4916 | | cat confdefs.h >>conftest.$ac_ext |
| 4917 | | cat >>conftest.$ac_ext <<_ACEOF |
| 4918 | | /* end confdefs.h. */ |
| 4919 | | |
| 4920 | | int |
| 4921 | | main () |
| 4922 | | { |
| 4923 | | |
| 4924 | | ; |
| 4925 | | return 0; |
| 4926 | | } |
| 4927 | | _ACEOF |
| 4928 | | rm -f conftest.$ac_objext |
| 4929 | | if { (ac_try="$ac_compile" |
| 4930 | | case "(($ac_try" in |
| 4931 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4932 | | *) ac_try_echo=$ac_try;; |
| 4933 | | esac |
| 4934 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4935 | | (eval "$ac_compile") 2>conftest.er1 |
| 4936 | | ac_status=$? |
| 4937 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 4938 | | rm -f conftest.er1 |
| 4939 | | cat conftest.err >&5 |
| 4940 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4941 | | (exit $ac_status); } && { |
| 4942 | | test -z "$ac_c_werror_flag" || |
| 4943 | | test ! -s conftest.err |
| 4944 | | } && test -s conftest.$ac_objext; then |
| 4945 | | : |
| 4946 | | else |
| 4947 | | echo "$as_me: failed program was:" >&5 |
| 4948 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4949 | | |
| 4950 | | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4951 | | CFLAGS="-g" |
| 4952 | | cat >conftest.$ac_ext <<_ACEOF |
| 4953 | | /* confdefs.h. */ |
| 4954 | | _ACEOF |
| 4955 | | cat confdefs.h >>conftest.$ac_ext |
| 4956 | | cat >>conftest.$ac_ext <<_ACEOF |
| 4957 | | /* end confdefs.h. */ |
| 4958 | | |
| 4959 | | int |
| 4960 | | main () |
| 4961 | | { |
| 4962 | | |
| 4963 | | ; |
| 4964 | | return 0; |
| 4965 | | } |
| 4966 | | _ACEOF |
| 4967 | | rm -f conftest.$ac_objext |
| 4968 | | if { (ac_try="$ac_compile" |
| 4969 | | case "(($ac_try" in |
| 4970 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4971 | | *) ac_try_echo=$ac_try;; |
| 4972 | | esac |
| 4973 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4974 | | (eval "$ac_compile") 2>conftest.er1 |
| 4975 | | ac_status=$? |
| 4976 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 4977 | | rm -f conftest.er1 |
| 4978 | | cat conftest.err >&5 |
| 4979 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4980 | | (exit $ac_status); } && { |
| 4981 | | test -z "$ac_c_werror_flag" || |
| 4982 | | test ! -s conftest.err |
| 4983 | | } && test -s conftest.$ac_objext; then |
| 4984 | | ac_cv_prog_cc_g=yes |
| 4985 | | else |
| 4986 | | echo "$as_me: failed program was:" >&5 |
| 4987 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4988 | | |
| 4989 | | |
| 4990 | | fi |
| 4991 | | |
| 4992 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4993 | | fi |
| 4994 | | |
| 4995 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4996 | | fi |
| 4997 | | |
| 4998 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4999 | | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5000 | | fi |
| 5001 | | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5002 | | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5003 | | if test "$ac_test_CFLAGS" = set; then |
| 5004 | | CFLAGS=$ac_save_CFLAGS |
| 5005 | | elif test $ac_cv_prog_cc_g = yes; then |
| 5006 | | if test "$GCC" = yes; then |
| 5007 | | CFLAGS="-g -O2" |
| 5008 | | else |
| 5009 | | CFLAGS="-g" |
| 5010 | | fi |
| 5011 | | else |
| 5012 | | if test "$GCC" = yes; then |
| 5013 | | CFLAGS="-O2" |
| 5014 | | else |
| 5015 | | CFLAGS= |
| 5016 | | fi |
| 5017 | | fi |
| 5018 | | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5019 | | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5020 | | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5021 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5022 | | else |
| 5023 | | ac_cv_prog_cc_c89=no |
| 5024 | | ac_save_CC=$CC |
| 5025 | | cat >conftest.$ac_ext <<_ACEOF |
| 5026 | | /* confdefs.h. */ |
| 5027 | | _ACEOF |
| 5028 | | cat confdefs.h >>conftest.$ac_ext |
| 5029 | | cat >>conftest.$ac_ext <<_ACEOF |
| 5030 | | /* end confdefs.h. */ |
| 5031 | | #include <stdarg.h> |
| 5032 | | #include <stdio.h> |
| 5033 | | #include <sys/types.h> |
| 5034 | | #include <sys/stat.h> |
| 5035 | | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5036 | | struct buf { int x; }; |
| 5037 | | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5038 | | static char *e (p, i) |
| 5039 | | char **p; |
| 5040 | | int i; |
| 5041 | | { |
| 5042 | | return p[i]; |
| 5043 | | } |
| 5044 | | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5045 | | { |
| 5046 | | char *s; |
| 5047 | | va_list v; |
| 5048 | | va_start (v,p); |
| 5049 | | s = g (p, va_arg (v,int)); |
| 5050 | | va_end (v); |
| 5051 | | return s; |
| 5052 | | } |
| 5053 | | |
| 5054 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5055 | | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5056 | | These don't provoke an error unfortunately, instead are silently treated |
| 5057 | | as 'x'. The following induces an error, until -std is added to get |
| 5058 | | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5059 | | array size at least. It's necessary to write '\x00'==0 to get something |
| 5060 | | that's true only with -std. */ |
| 5061 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5062 | | |
| 5063 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5064 | | inside strings and character constants. */ |
| 5065 | | #define FOO(x) 'x' |
| 5066 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5067 | | |
| 5068 | | int test (int i, double x); |
| 5069 | | struct s1 {int (*f) (int a);}; |
| 5070 | | struct s2 {int (*f) (double a);}; |
| 5071 | | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5072 | | int argc; |
| 5073 | | char **argv; |
| 5074 | | int |
| 5075 | | main () |
| 5076 | | { |
| 5077 | | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5078 | | ; |
| 5079 | | return 0; |
| 5080 | | } |
| 5081 | | _ACEOF |
| 5082 | | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5083 | | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5084 | | do |
| 5085 | | CC="$ac_save_CC $ac_arg" |
| 5086 | | rm -f conftest.$ac_objext |
| 5087 | | if { (ac_try="$ac_compile" |
| 5088 | | case "(($ac_try" in |
| 5089 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5090 | | *) ac_try_echo=$ac_try;; |
| 5091 | | esac |
| 5092 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5093 | | (eval "$ac_compile") 2>conftest.er1 |
| 5094 | | ac_status=$? |
| 5095 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 5096 | | rm -f conftest.er1 |
| 5097 | | cat conftest.err >&5 |
| 5098 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5099 | | (exit $ac_status); } && { |
| 5100 | | test -z "$ac_c_werror_flag" || |
| 5101 | | test ! -s conftest.err |
| 5102 | | } && test -s conftest.$ac_objext; then |
| 5103 | | ac_cv_prog_cc_c89=$ac_arg |
| 5104 | | else |
| 5105 | | echo "$as_me: failed program was:" >&5 |
| 5106 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5107 | | |
| 5108 | | |
| 5109 | | fi |
| 5110 | | |
| 5111 | | rm -f core conftest.err conftest.$ac_objext |
| 5112 | | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5113 | | done |
| 5114 | | rm -f conftest.$ac_ext |
| 5115 | | CC=$ac_save_CC |
| 5116 | | |
| 5117 | | fi |
| 5118 | | # AC_CACHE_VAL |
| 5119 | | case "x$ac_cv_prog_cc_c89" in |
| 5120 | | x) |
| 5121 | | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5122 | | echo "${ECHO_T}none needed" >&6; } ;; |
| 5123 | | xno) |
| 5124 | | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5125 | | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5126 | | *) |
| 5127 | | CC="$CC $ac_cv_prog_cc_c89" |
| 5128 | | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5129 | | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5130 | | esac |
| 5131 | | |
| 5132 | | |
| 5133 | | ac_ext=c |
| 5134 | | ac_cpp='$CPP $CPPFLAGS' |
| 5135 | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5136 | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5137 | | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5138 | | |
| 5139 | | depcc="$CC" am_compiler_list= |
| 5140 | | |
| 5141 | | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 5142 | | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
| 5143 | | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 5144 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5145 | | else |
| 5146 | | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5147 | | # We make a subdir and do the tests there. Otherwise we can end up |
| 5148 | | # making bogus files that we don't know about and never remove. For |
| 5149 | | # instance it was reported that on HP-UX the gcc test will end up |
| 5150 | | # making a dummy file named `D' -- because `-MD' means `put the output |
| 5151 | | # in D'. |
| 5152 | | mkdir conftest.dir |
| 5153 | | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5154 | | # using a relative directory. |
| 5155 | | cp "$am_depcomp" conftest.dir |
| 5156 | | cd conftest.dir |
| 5157 | | # We will build objects and dependencies in a subdirectory because |
| 5158 | | # it helps to detect inapplicable dependency modes. For instance |
| 5159 | | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5160 | | # side effect of compilation, but ICC will put the dependencies in |
| 5161 | | # the current directory while Tru64 will put them in the object |
| 5162 | | # directory. |
| 5163 | | mkdir sub |
| 5164 | | |
| 5165 | | am_cv_CC_dependencies_compiler_type=none |
| 5166 | | if test "$am_compiler_list" = ""; then |
| 5167 | | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5168 | | fi |
| 5169 | | for depmode in $am_compiler_list; do |
| 5170 | | # Setup a source with many dependencies, because some compilers |
| 5171 | | # like to wrap large dependency lists on column 80 (with \), and |
| 5172 | | # we should not choose a depcomp mode which is confused by this. |
| 5173 | | # |
| 5174 | | # We need to recreate these files for each test, as the compiler may |
| 5175 | | # overwrite some of them when testing with obscure command lines. |
| 5176 | | # This happens at least with the AIX C compiler. |
| 5177 | | : > sub/conftest.c |
| 5178 | | for i in 1 2 3 4 5 6; do |
| 5179 | | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5180 | | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5181 | | # Solaris 8's {/usr,}/bin/sh. |
| 5182 | | touch sub/conftst$i.h |
| 5183 | | done |
| 5184 | | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5185 | | |
| 5186 | | case $depmode in |
| 5187 | | nosideeffect) |
| 5188 | | # after this tag, mechanisms are not by side-effect, so they'll |
| 5189 | | # only be used when explicitly requested |
| 5190 | | if test "x$enable_dependency_tracking" = xyes; then |
| 5191 | | continue |
| 5192 | | else |
| 5193 | | break |
| 5194 | | fi |
| 5195 | | ;; |
| 5196 | | none) break ;; |
| 5197 | | esac |
| 5198 | | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5199 | | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5200 | | # handle `-M -o', and we need to detect this. |
| 5201 | | if depmode=$depmode \ |
| 5202 | | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 5203 | | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5204 | | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 5205 | | >/dev/null 2>conftest.err && |
| 5206 | | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5207 | | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5208 | | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 5209 | | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5210 | | # icc doesn't choke on unknown options, it will just issue warnings |
| 5211 | | # or remarks (even with -Werror). So we grep stderr for any message |
| 5212 | | # that says an option was ignored or not supported. |
| 5213 | | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5214 | | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5215 | | # The diagnosis changed in icc 8.0: |
| 5216 | | # icc: Command line remark: option '-MP' not supported |
| 5217 | | if (grep 'ignoring option' conftest.err || |
| 5218 | | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5219 | | am_cv_CC_dependencies_compiler_type=$depmode |
| 5220 | | break |
| 5221 | | fi |
| 5222 | | fi |
| 5223 | | done |
| 5224 | | |
| 5225 | | cd .. |
| 5226 | | rm -rf conftest.dir |
| 5227 | | else |
| 5228 | | am_cv_CC_dependencies_compiler_type=none |
| 5229 | | fi |
| 5230 | | |
| 5231 | | fi |
| 5232 | | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5233 | | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5234 | | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5235 | | |
| 5236 | | if |
| 5237 | | test "x$enable_dependency_tracking" != xno \ |
| 5238 | | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5239 | | am__fastdepCC_TRUE= |
| 5240 | | am__fastdepCC_FALSE='#' |
| 5241 | | else |
| 5242 | | am__fastdepCC_TRUE='#' |
| 5243 | | am__fastdepCC_FALSE= |
| 5244 | | fi |
| 5245 | | |
| 5246 | | |
| 5247 | | |
| 5248 | | am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc |
| 5249 | | |
| 5250 | | ac_ext=c |
| 5251 | | ac_cpp='$CPP $CPPFLAGS' |
| 5252 | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5253 | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5254 | | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5255 | | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5256 | | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 5257 | | # On Suns, sometimes $CPP names a directory. |
| 5258 | | if test -n "$CPP" && test -d "$CPP"; then |
| 5259 | | CPP= |
| 5260 | | fi |
| 5261 | | if test -z "$CPP"; then |
| 5262 | | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5263 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5264 | | else |
| 5265 | | # Double quotes because CPP needs to be expanded |
| 5266 | | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5267 | | do |
| 5268 | | ac_preproc_ok=false |
| 5269 | | for ac_c_preproc_warn_flag in '' yes |
| 5270 | | do |
| 5271 | | # Use a header file that comes with gcc, so configuring glibc |
| 5272 | | # with a fresh cross-compiler works. |
| 5273 | | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5274 | | # <limits.h> exists even on freestanding compilers. |
| 5275 | | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5276 | | # not just through cpp. "Syntax error" is here to catch this case. |
| 5277 | | cat >conftest.$ac_ext <<_ACEOF |
| 5278 | | /* confdefs.h. */ |
| 5279 | | _ACEOF |
| 5280 | | cat confdefs.h >>conftest.$ac_ext |
| 5281 | | cat >>conftest.$ac_ext <<_ACEOF |
| 5282 | | /* end confdefs.h. */ |
| 5283 | | #ifdef __STDC__ |
| 5284 | | # include <limits.h> |
| 5285 | | #else |
| 5286 | | # include <assert.h> |
| 5287 | | #endif |
| 5288 | | Syntax error |
| 5289 | | _ACEOF |
| 5290 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5291 | | case "(($ac_try" in |
| 5292 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5293 | | *) ac_try_echo=$ac_try;; |
| 5294 | | esac |
| 5295 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5296 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5297 | | ac_status=$? |
| 5298 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 5299 | | rm -f conftest.er1 |
| 5300 | | cat conftest.err >&5 |
| 5301 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5302 | | (exit $ac_status); } >/dev/null && { |
| 5303 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5304 | | test ! -s conftest.err |
| 5305 | | }; then |
| 5306 | | : |
| 5307 | | else |
| 5308 | | echo "$as_me: failed program was:" >&5 |
| 5309 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5310 | | |
| 5311 | | # Broken: fails on valid input. |
| 5312 | | continue |
| 5313 | | fi |
| 5314 | | |
| 5315 | | rm -f conftest.err conftest.$ac_ext |
| 5316 | | |
| 5317 | | # OK, works on sane cases. Now check whether nonexistent headers |
| 5318 | | # can be detected and how. |
| 5319 | | cat >conftest.$ac_ext <<_ACEOF |
| 5320 | | /* confdefs.h. */ |
| 5321 | | _ACEOF |
| 5322 | | cat confdefs.h >>conftest.$ac_ext |
| 5323 | | cat >>conftest.$ac_ext <<_ACEOF |
| 5324 | | /* end confdefs.h. */ |
| 5325 | | #include <ac_nonexistent.h> |
| 5326 | | _ACEOF |
| 5327 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5328 | | case "(($ac_try" in |
| 5329 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5330 | | *) ac_try_echo=$ac_try;; |
| 5331 | | esac |
| 5332 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5333 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5334 | | ac_status=$? |
| 5335 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 5336 | | rm -f conftest.er1 |
| 5337 | | cat conftest.err >&5 |
| 5338 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5339 | | (exit $ac_status); } >/dev/null && { |
| 5340 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5341 | | test ! -s conftest.err |
| 5342 | | }; then |
| 5343 | | # Broken: success on invalid input. |
| 5344 | | continue |
| 5345 | | else |
| 5346 | | echo "$as_me: failed program was:" >&5 |
| 5347 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5348 | | |
| 5349 | | # Passes both tests. |
| 5350 | | ac_preproc_ok=: |
| 5351 | | break |
| 5352 | | fi |
| 5353 | | |
| 5354 | | rm -f conftest.err conftest.$ac_ext |
| 5355 | | |
| 5356 | | done |
| 5357 | | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5358 | | rm -f conftest.err conftest.$ac_ext |
| 5359 | | if $ac_preproc_ok; then |
| 5360 | | break |
| 5361 | | fi |
| 5362 | | |
| 5363 | | done |
| 5364 | | ac_cv_prog_CPP=$CPP |
| 5365 | | |
| 5366 | | fi |
| 5367 | | CPP=$ac_cv_prog_CPP |
| 5368 | | else |
| 5369 | | ac_cv_prog_CPP=$CPP |
| 5370 | | fi |
| 5371 | | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5372 | | echo "${ECHO_T}$CPP" >&6; } |
| 5373 | | ac_preproc_ok=false |
| 5374 | | for ac_c_preproc_warn_flag in '' yes |
| 5375 | | do |
| 5376 | | # Use a header file that comes with gcc, so configuring glibc |
| 5377 | | # with a fresh cross-compiler works. |
| 5378 | | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5379 | | # <limits.h> exists even on freestanding compilers. |
| 5380 | | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5381 | | # not just through cpp. "Syntax error" is here to catch this case. |
| 5382 | | cat >conftest.$ac_ext <<_ACEOF |
| 5383 | | /* confdefs.h. */ |
| 5384 | | _ACEOF |
| 5385 | | cat confdefs.h >>conftest.$ac_ext |
| 5386 | | cat >>conftest.$ac_ext <<_ACEOF |
| 5387 | | /* end confdefs.h. */ |
| 5388 | | #ifdef __STDC__ |
| 5389 | | # include <limits.h> |
| 5390 | | #else |
| 5391 | | # include <assert.h> |
| 5392 | | #endif |
| 5393 | | Syntax error |
| 5394 | | _ACEOF |
| 5395 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5396 | | case "(($ac_try" in |
| 5397 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5398 | | *) ac_try_echo=$ac_try;; |
| 5399 | | esac |
| 5400 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5401 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5402 | | ac_status=$? |
| 5403 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 5404 | | rm -f conftest.er1 |
| 5405 | | cat conftest.err >&5 |
| 5406 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5407 | | (exit $ac_status); } >/dev/null && { |
| 5408 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5409 | | test ! -s conftest.err |
| 5410 | | }; then |
| 5411 | | : |
| 5412 | | else |
| 5413 | | echo "$as_me: failed program was:" >&5 |
| 5414 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5415 | | |
| 5416 | | # Broken: fails on valid input. |
| 5417 | | continue |
| 5418 | | fi |
| 5419 | | |
| 5420 | | rm -f conftest.err conftest.$ac_ext |
| 5421 | | |
| 5422 | | # OK, works on sane cases. Now check whether nonexistent headers |
| 5423 | | # can be detected and how. |
| 5424 | | cat >conftest.$ac_ext <<_ACEOF |
| 5425 | | /* confdefs.h. */ |
| 5426 | | _ACEOF |
| 5427 | | cat confdefs.h >>conftest.$ac_ext |
| 5428 | | cat >>conftest.$ac_ext <<_ACEOF |
| 5429 | | /* end confdefs.h. */ |
| 5430 | | #include <ac_nonexistent.h> |
| 5431 | | _ACEOF |
| 5432 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5433 | | case "(($ac_try" in |
| 5434 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5435 | | *) ac_try_echo=$ac_try;; |
| 5436 | | esac |
| 5437 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5438 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5439 | | ac_status=$? |
| 5440 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 5441 | | rm -f conftest.er1 |
| 5442 | | cat conftest.err >&5 |
| 5443 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5444 | | (exit $ac_status); } >/dev/null && { |
| 5445 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5446 | | test ! -s conftest.err |
| 5447 | | }; then |
| 5448 | | # Broken: success on invalid input. |
| 5449 | | continue |
| 5450 | | else |
| 5451 | | echo "$as_me: failed program was:" >&5 |
| 5452 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5453 | | |
| 5454 | | # Passes both tests. |
| 5455 | | ac_preproc_ok=: |
| 5456 | | break |
| 5457 | | fi |
| 5458 | | |
| 5459 | | rm -f conftest.err conftest.$ac_ext |
| 5460 | | |
| 5461 | | done |
| 5462 | | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5463 | | rm -f conftest.err conftest.$ac_ext |
| 5464 | | if $ac_preproc_ok; then |
| 5465 | | : |
| 5466 | | else |
| 5467 | | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5468 | | See \`config.log' for more details." >&5 |
| 5469 | | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5470 | | See \`config.log' for more details." >&2;} |
| 5471 | | { (exit 1); exit 1; }; } |
| 5472 | | fi |
| 5473 | | |
| 5474 | | ac_ext=c |
| 5475 | | ac_cpp='$CPP $CPPFLAGS' |
| 5476 | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5477 | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5478 | | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5479 | | |
| 5480 | | |
| 5481 | | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 5482 | | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 5483 | | if test "${ac_cv_path_GREP+set}" = set; then |
| 5484 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5485 | | else |
| 5486 | | # Extract the first word of "grep ggrep" to use in msg output |
| 5487 | | if test -z "$GREP"; then |
| 5488 | | set dummy grep ggrep; ac_prog_name=$2 |
| 5489 | | if test "${ac_cv_path_GREP+set}" = set; then |
| 5490 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5491 | | else |
| 5492 | | ac_path_GREP_found=false |
| 5493 | | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5494 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5495 | | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5496 | | do |
| 5497 | | IFS=$as_save_IFS |
| 5498 | | test -z "$as_dir" && as_dir=. |
| 5499 | | for ac_prog in grep ggrep; do |
| 5500 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5501 | | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5502 | | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 5503 | | # Check for GNU ac_path_GREP and select it if it is found. |
| 5504 | | # Check for GNU $ac_path_GREP |
| 5505 | | case `"$ac_path_GREP" --version 2>&1` in |
| 5506 | | *GNU*) |
| 5507 | | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5508 | | *) |
| 5509 | | ac_count=0 |
| 5510 | | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 5511 | | while : |
| 5512 | | do |
| 5513 | | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5514 | | mv "conftest.tmp" "conftest.in" |
| 5515 | | cp "conftest.in" "conftest.nl" |
| 5516 | | echo 'GREP' >> "conftest.nl" |
| 5517 | | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5518 | | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5519 | | ac_count=`expr $ac_count + 1` |
| 5520 | | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5521 | | # Best one so far, save it but keep looking for a better one |
| 5522 | | ac_cv_path_GREP="$ac_path_GREP" |
| 5523 | | ac_path_GREP_max=$ac_count |
| 5524 | | fi |
| 5525 | | # 10*(2^10) chars as input seems more than enough |
| 5526 | | test $ac_count -gt 10 && break |
| 5527 | | done |
| 5528 | | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5529 | | esac |
| 5530 | | |
| 5531 | | |
| 5532 | | $ac_path_GREP_found && break 3 |
| 5533 | | done |
| 5534 | | done |
| 5535 | | |
| 5536 | | done |
| 5537 | | IFS=$as_save_IFS |
| 5538 | | |
| 5539 | | |
| 5540 | | fi |
| 5541 | | |
| 5542 | | GREP="$ac_cv_path_GREP" |
| 5543 | | if test -z "$GREP"; then |
| 5544 | | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 5545 | | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 5546 | | { (exit 1); exit 1; }; } |
| 5547 | | fi |
| 5548 | | |
| 5549 | | else |
| 5550 | | ac_cv_path_GREP=$GREP |
| 5551 | | fi |
| 5552 | | |
| 5553 | | |
| 5554 | | fi |
| 5555 | | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 5556 | | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 5557 | | GREP="$ac_cv_path_GREP" |
| 5558 | | |
| 5559 | | |
| 5560 | | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5561 | | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 5562 | | if test "${ac_cv_path_EGREP+set}" = set; then |
| 5563 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5564 | | else |
| 5565 | | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5566 | | then ac_cv_path_EGREP="$GREP -E" |
| 5567 | | else |
| 5568 | | # Extract the first word of "egrep" to use in msg output |
| 5569 | | if test -z "$EGREP"; then |
| 5570 | | set dummy egrep; ac_prog_name=$2 |
| 5571 | | if test "${ac_cv_path_EGREP+set}" = set; then |
| 5572 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5573 | | else |
| 5574 | | ac_path_EGREP_found=false |
| 5575 | | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5576 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5577 | | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5578 | | do |
| 5579 | | IFS=$as_save_IFS |
| 5580 | | test -z "$as_dir" && as_dir=. |
| 5581 | | for ac_prog in egrep; do |
| 5582 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5583 | | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5584 | | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 5585 | | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5586 | | # Check for GNU $ac_path_EGREP |
| 5587 | | case `"$ac_path_EGREP" --version 2>&1` in |
| 5588 | | *GNU*) |
| 5589 | | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5590 | | *) |
| 5591 | | ac_count=0 |
| 5592 | | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 5593 | | while : |
| 5594 | | do |
| 5595 | | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5596 | | mv "conftest.tmp" "conftest.in" |
| 5597 | | cp "conftest.in" "conftest.nl" |
| 5598 | | echo 'EGREP' >> "conftest.nl" |
| 5599 | | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5600 | | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5601 | | ac_count=`expr $ac_count + 1` |
| 5602 | | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5603 | | # Best one so far, save it but keep looking for a better one |
| 5604 | | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5605 | | ac_path_EGREP_max=$ac_count |
| 5606 | | fi |
| 5607 | | # 10*(2^10) chars as input seems more than enough |
| 5608 | | test $ac_count -gt 10 && break |
| 5609 | | done |
| 5610 | | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5611 | | esac |
| 5612 | | |
| 5613 | | |
| 5614 | | $ac_path_EGREP_found && break 3 |
| 5615 | | done |
| 5616 | | done |
| 5617 | | |
| 5618 | | done |
| 5619 | | IFS=$as_save_IFS |
| 5620 | | |
| 5621 | | |
| 5622 | | fi |
| 5623 | | |
| 5624 | | EGREP="$ac_cv_path_EGREP" |
| 5625 | | if test -z "$EGREP"; then |
| 5626 | | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 5627 | | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 5628 | | { (exit 1); exit 1; }; } |
| 5629 | | fi |
| 5630 | | |
| 5631 | | else |
| 5632 | | ac_cv_path_EGREP=$EGREP |
| 5633 | | fi |
| 5634 | | |
| 5635 | | |
| 5636 | | fi |
| 5637 | | fi |
| 5638 | | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 5639 | | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 5640 | | EGREP="$ac_cv_path_EGREP" |
| 5641 | | |
| 5642 | | |
| 5643 | | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5644 | | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 5645 | | if test "${ac_cv_header_stdc+set}" = set; then |
| 5646 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5647 | | else |
| 5648 | | cat >conftest.$ac_ext <<_ACEOF |
| 5649 | | /* confdefs.h. */ |
| 5650 | | _ACEOF |
| 5651 | | cat confdefs.h >>conftest.$ac_ext |
| 5652 | | cat >>conftest.$ac_ext <<_ACEOF |
| 5653 | | /* end confdefs.h. */ |
| 5654 | | #include <stdlib.h> |
| 5655 | | #include <stdarg.h> |
| 5656 | | #include <string.h> |
| 5657 | | #include <float.h> |
| 5658 | | |
| 5659 | | int |
| 5660 | | main () |
| 5661 | | { |
| 5662 | | |
| 5663 | | ; |
| 5664 | | return 0; |
| 5665 | | } |
| 5666 | | _ACEOF |
| 5667 | | rm -f conftest.$ac_objext |
| 5668 | | if { (ac_try="$ac_compile" |
| 5669 | | case "(($ac_try" in |
| 5670 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5671 | | *) ac_try_echo=$ac_try;; |
| 5672 | | esac |
| 5673 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5674 | | (eval "$ac_compile") 2>conftest.er1 |
| 5675 | | ac_status=$? |
| 5676 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 5677 | | rm -f conftest.er1 |
| 5678 | | cat conftest.err >&5 |
| 5679 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5680 | | (exit $ac_status); } && { |
| 5681 | | test -z "$ac_c_werror_flag" || |
| 5682 | | test ! -s conftest.err |
| 5683 | | } && test -s conftest.$ac_objext; then |
| 5684 | | ac_cv_header_stdc=yes |
| 5685 | | else |
| 5686 | | echo "$as_me: failed program was:" >&5 |
| 5687 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5688 | | |
| 5689 | | ac_cv_header_stdc=no |
| 5690 | | fi |
| 5691 | | |
| 5692 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5693 | | |
| 5694 | | if test $ac_cv_header_stdc = yes; then |
| 5695 | | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5696 | | cat >conftest.$ac_ext <<_ACEOF |
| 5697 | | /* confdefs.h. */ |
| 5698 | | _ACEOF |
| 5699 | | cat confdefs.h >>conftest.$ac_ext |
| 5700 | | cat >>conftest.$ac_ext <<_ACEOF |
| 5701 | | /* end confdefs.h. */ |
| 5702 | | #include <string.h> |
| 5703 | | |
| 5704 | | _ACEOF |
| 5705 | | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5706 | | $EGREP "memchr" >/dev/null 2>&1; then |
| 5707 | | : |
| 5708 | | else |
| 5709 | | ac_cv_header_stdc=no |
| 5710 | | fi |
| 5711 | | rm -f conftest* |
| 5712 | | |
| 5713 | | fi |
| 5714 | | |
| 5715 | | if test $ac_cv_header_stdc = yes; then |
| 5716 | | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5717 | | cat >conftest.$ac_ext <<_ACEOF |
| 5718 | | /* confdefs.h. */ |
| 5719 | | _ACEOF |
| 5720 | | cat confdefs.h >>conftest.$ac_ext |
| 5721 | | cat >>conftest.$ac_ext <<_ACEOF |
| 5722 | | /* end confdefs.h. */ |
| 5723 | | #include <stdlib.h> |
| 5724 | | |
| 5725 | | _ACEOF |
| 5726 | | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5727 | | $EGREP "free" >/dev/null 2>&1; then |
| 5728 | | : |
| 5729 | | else |
| 5730 | | ac_cv_header_stdc=no |
| 5731 | | fi |
| 5732 | | rm -f conftest* |
| 5733 | | |
| 5734 | | fi |
| 5735 | | |
| 5736 | | if test $ac_cv_header_stdc = yes; then |
| 5737 | | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5738 | | if test "$cross_compiling" = yes; then |
| 5739 | | : |
| 5740 | | else |
| 5741 | | cat >conftest.$ac_ext <<_ACEOF |
| 5742 | | /* confdefs.h. */ |
| 5743 | | _ACEOF |
| 5744 | | cat confdefs.h >>conftest.$ac_ext |
| 5745 | | cat >>conftest.$ac_ext <<_ACEOF |
| 5746 | | /* end confdefs.h. */ |
| 5747 | | #include <ctype.h> |
| 5748 | | #include <stdlib.h> |
| 5749 | | #if ((' ' & 0x0FF) == 0x020) |
| 5750 | | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5751 | | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5752 | | #else |
| 5753 | | # define ISLOWER(c) \ |
| 5754 | | (('a' <= (c) && (c) <= 'i') \ |
| 5755 | | || ('j' <= (c) && (c) <= 'r') \ |
| 5756 | | || ('s' <= (c) && (c) <= 'z')) |
| 5757 | | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5758 | | #endif |
| 5759 | | |
| 5760 | | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5761 | | int |
| 5762 | | main () |
| 5763 | | { |
| 5764 | | int i; |
| 5765 | | for (i = 0; i < 256; i++) |
| 5766 | | if (XOR (islower (i), ISLOWER (i)) |
| 5767 | | || toupper (i) != TOUPPER (i)) |
| 5768 | | return 2; |
| 5769 | | return 0; |
| 5770 | | } |
| 5771 | | _ACEOF |
| 5772 | | rm -f conftest$ac_exeext |
| 5773 | | if { (ac_try="$ac_link" |
| 5774 | | case "(($ac_try" in |
| 5775 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5776 | | *) ac_try_echo=$ac_try;; |
| 5777 | | esac |
| 5778 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5779 | | (eval "$ac_link") 2>&5 |
| 5780 | | ac_status=$? |
| 5781 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5782 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5783 | | { (case "(($ac_try" in |
| 5784 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5785 | | *) ac_try_echo=$ac_try;; |
| 5786 | | esac |
| 5787 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5788 | | (eval "$ac_try") 2>&5 |
| 5789 | | ac_status=$? |
| 5790 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5791 | | (exit $ac_status); }; }; then |
| 5792 | | : |
| 5793 | | else |
| 5794 | | echo "$as_me: program exited with status $ac_status" >&5 |
| 5795 | | echo "$as_me: failed program was:" >&5 |
| 5796 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5797 | | |
| 5798 | | ( exit $ac_status ) |
| 5799 | | ac_cv_header_stdc=no |
| 5800 | | fi |
| 5801 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5802 | | fi |
| 5803 | | |
| 5804 | | |
| 5805 | | fi |
| 5806 | | fi |
| 5807 | | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5808 | | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
| 5809 | | if test $ac_cv_header_stdc = yes; then |
| 5810 | | |
| 5811 | | cat >>confdefs.h <<\_ACEOF |
| 5812 | | #define STDC_HEADERS 1 |
| 5813 | | _ACEOF |
| 5814 | | |
| 5815 | | fi |
| 5816 | | |
| 5817 | | |
| 5818 | | |
| 5819 | | # Check whether --enable-shared was given. |
| 5820 | | if test "${enable_shared+set}" = set; then |
| 5821 | | enableval=$enable_shared; p=${PACKAGE-default} |
| 5822 | | case $enableval in |
| 5823 | | yes) enable_shared=yes ;; |
| 5824 | | no) enable_shared=no ;; |
| 5825 | | *) |
| 5826 | | enable_shared=no |
| 5827 | | # Look at the argument we got. We use all the common list separators. |
| 5828 | | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5829 | | for pkg in $enableval; do |
| 5830 | | IFS="$lt_save_ifs" |
| 5831 | | if test "X$pkg" = "X$p"; then |
| 5832 | | enable_shared=yes |
| 5833 | | fi |
| 5834 | | done |
| 5835 | | IFS="$lt_save_ifs" |
| 5836 | | ;; |
| 5837 | | esac |
| 5838 | | else |
| 5839 | | enable_shared=yes |
| 5840 | | fi |
| 5841 | | |
| 5842 | | |
| 5843 | | # Check whether --enable-static was given. |
| 5844 | | if test "${enable_static+set}" = set; then |
| 5845 | | enableval=$enable_static; p=${PACKAGE-default} |
| 5846 | | case $enableval in |
| 5847 | | yes) enable_static=yes ;; |
| 5848 | | no) enable_static=no ;; |
| 5849 | | *) |
| 5850 | | enable_static=no |
| 5851 | | # Look at the argument we got. We use all the common list separators. |
| 5852 | | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5853 | | for pkg in $enableval; do |
| 5854 | | IFS="$lt_save_ifs" |
| 5855 | | if test "X$pkg" = "X$p"; then |
| 5856 | | enable_static=yes |
| 5857 | | fi |
| 5858 | | done |
| 5859 | | IFS="$lt_save_ifs" |
| 5860 | | ;; |
| 5861 | | esac |
| 5862 | | else |
| 5863 | | enable_static=yes |
| 5864 | | fi |
| 5865 | | |
| 5866 | | |
| 5867 | | # Check whether --enable-fast-install was given. |
| 5868 | | if test "${enable_fast_install+set}" = set; then |
| 5869 | | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 5870 | | case $enableval in |
| 5871 | | yes) enable_fast_install=yes ;; |
| 5872 | | no) enable_fast_install=no ;; |
| 5873 | | *) |
| 5874 | | enable_fast_install=no |
| 5875 | | # Look at the argument we got. We use all the common list separators. |
| 5876 | | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5877 | | for pkg in $enableval; do |
| 5878 | | IFS="$lt_save_ifs" |
| 5879 | | if test "X$pkg" = "X$p"; then |
| 5880 | | enable_fast_install=yes |
| 5881 | | fi |
| 5882 | | done |
| 5883 | | IFS="$lt_save_ifs" |
| 5884 | | ;; |
| 5885 | | esac |
| 5886 | | else |
| 5887 | | enable_fast_install=yes |
| 5888 | | fi |
| 5889 | | |
| 5890 | | |
| 5891 | | # Make sure we can run config.sub. |
| 5892 | | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 5893 | | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 5894 | | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 5895 | | { (exit 1); exit 1; }; } |
| 5896 | | |
| 5897 | | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 5898 | | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 5899 | | if test "${ac_cv_build+set}" = set; then |
| 5900 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5901 | | else |
| 5902 | | ac_build_alias=$build_alias |
| 5903 | | test "x$ac_build_alias" = x && |
| 5904 | | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 5905 | | test "x$ac_build_alias" = x && |
| 5906 | | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 5907 | | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 5908 | | { (exit 1); exit 1; }; } |
| 5909 | | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 5910 | | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 5911 | | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 5912 | | { (exit 1); exit 1; }; } |
| 5913 | | |
| 5914 | | fi |
| 5915 | | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 5916 | | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 5917 | | case $ac_cv_build in |
| 5918 | | *-*-*) ;; |
| 5919 | | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 5920 | | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 5921 | | { (exit 1); exit 1; }; };; |
| 5922 | | esac |
| 5923 | | build=$ac_cv_build |
| 5924 | | ac_save_IFS=$IFS; IFS='-' |
| 5925 | | set x $ac_cv_build |
| 5926 | | shift |
| 5927 | | build_cpu=$1 |
| 5928 | | build_vendor=$2 |
| 5929 | | shift; shift |
| 5930 | | # Remember, the first character of IFS is used to create $*, |
| 5931 | | # except with old shells: |
| 5932 | | build_os=$* |
| 5933 | | IFS=$ac_save_IFS |
| 5934 | | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 5935 | | |
| 5936 | | |
| 5937 | | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 5938 | | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 5939 | | if test "${ac_cv_host+set}" = set; then |
| 5940 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5941 | | else |
| 5942 | | if test "x$host_alias" = x; then |
| 5943 | | ac_cv_host=$ac_cv_build |
| 5944 | | else |
| 5945 | | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 5946 | | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 5947 | | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 5948 | | { (exit 1); exit 1; }; } |
| 5949 | | fi |
| 5950 | | |
| 5951 | | fi |
| 5952 | | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 5953 | | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 5954 | | case $ac_cv_host in |
| 5955 | | *-*-*) ;; |
| 5956 | | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 5957 | | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 5958 | | { (exit 1); exit 1; }; };; |
| 5959 | | esac |
| 5960 | | host=$ac_cv_host |
| 5961 | | ac_save_IFS=$IFS; IFS='-' |
| 5962 | | set x $ac_cv_host |
| 5963 | | shift |
| 5964 | | host_cpu=$1 |
| 5965 | | host_vendor=$2 |
| 5966 | | shift; shift |
| 5967 | | # Remember, the first character of IFS is used to create $*, |
| 5968 | | # except with old shells: |
| 5969 | | host_os=$* |
| 5970 | | IFS=$ac_save_IFS |
| 5971 | | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 21407 | | case "$am__api_version" in |
| 21408 | | 1.01234) |
| 21409 | | { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5 |
| 21410 | | echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;} |
| 21411 | | { (exit 1); exit 1; }; } |
| 21412 | | ;; |
| 21413 | | *) |
| 21414 | | ;; |
| 21415 | | esac |
| 21416 | | |
| 21417 | | if test -n ""; then |
| 21418 | | { echo "$as_me:$LINENO: checking for intltool >= " >&5 |
| 21419 | | echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; } |
| 21420 | | |
| 21421 | | INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
| 21422 | | INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in` |
| 21423 | | INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in` |
| 21424 | | |
| 21425 | | { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5 |
| 21426 | | echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; } |
| 21427 | | test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || |
| 21428 | | { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5 |
| 21429 | | echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;} |
| 21430 | | { (exit 1); exit 1; }; } |
| 21431 | | fi |
| 21432 | | |
| 21433 | | INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21434 | | INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21435 | | INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21436 | | INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21437 | | INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@' |
| 21438 | | INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21439 | | INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21440 | | INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21441 | | INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21442 | | INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21443 | | INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21444 | | INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' |
| 21445 | | INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21446 | | INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21447 | | INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21448 | | INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21449 | | INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21450 | | INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21451 | | INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
| 21452 | | |
| 21453 | | |
| 21454 | | |
| 21455 | | |
| 21456 | | |
| 21457 | | |
| 21458 | | |
| 21459 | | |
| 21460 | | |
| 21461 | | |
| 21462 | | |
| 21463 | | |
| 21464 | | |
| 21465 | | |
| 21466 | | |
| 21467 | | |
| 21468 | | |
| 21469 | | |
| 21470 | | |
| 21471 | | |
| 21472 | | |
| 21473 | | # Use the tools built into the package, not the ones that are installed. |
| 21474 | | INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract' |
| 21475 | | |
| 21476 | | INTLTOOL_MERGE='$(top_builddir)/intltool-merge' |
| 21477 | | |
| 21478 | | INTLTOOL_UPDATE='$(top_builddir)/intltool-update' |
| 21479 | | |
| 21480 | | |
| 21481 | | # Extract the first word of "perl", so it can be a program name with args. |
| 21482 | | set dummy perl; ac_word=$2 |
| 21483 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 21484 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 21485 | | if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then |
| 21486 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21487 | | else |
| 21488 | | case $INTLTOOL_PERL in |
| 21489 | | [\\/]* | ?:[\\/]*) |
| 21490 | | ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. |
| 21491 | | ;; |
| 21492 | | *) |
| 21493 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21494 | | for as_dir in $PATH |
| 21495 | | do |
| 21496 | | IFS=$as_save_IFS |
| 21497 | | test -z "$as_dir" && as_dir=. |
| 21498 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 21499 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 21500 | | ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 21501 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21502 | | break 2 |
| 21503 | | fi |
| 21504 | | done |
| 21505 | | done |
| 21506 | | IFS=$as_save_IFS |
| 21507 | | |
| 21508 | | ;; |
| 21509 | | esac |
| 21510 | | fi |
| 21511 | | INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL |
| 21512 | | if test -n "$INTLTOOL_PERL"; then |
| 21513 | | { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5 |
| 21514 | | echo "${ECHO_T}$INTLTOOL_PERL" >&6; } |
| 21515 | | else |
| 21516 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 21517 | | echo "${ECHO_T}no" >&6; } |
| 21518 | | fi |
| 21519 | | |
| 21520 | | |
| 21521 | | if test -z "$INTLTOOL_PERL"; then |
| 21522 | | { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5 |
| 21523 | | echo "$as_me: error: perl not found; required for intltool" >&2;} |
| 21524 | | { (exit 1); exit 1; }; } |
| 21525 | | fi |
| 21526 | | if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then |
| 21527 | | { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5 |
| 21528 | | echo "$as_me: error: perl 5.x required for intltool" >&2;} |
| 21529 | | { (exit 1); exit 1; }; } |
| 21530 | | fi |
| 21531 | | if test "x" != "xno-xml"; then |
| 21532 | | { echo "$as_me:$LINENO: checking for XML::Parser" >&5 |
| 21533 | | echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; } |
| 21534 | | if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then |
| 21535 | | { echo "$as_me:$LINENO: result: ok" >&5 |
| 21536 | | echo "${ECHO_T}ok" >&6; } |
| 21537 | | else |
| 21538 | | { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5 |
| 21539 | | echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;} |
| 21540 | | { (exit 1); exit 1; }; } |
| 21541 | | fi |
| 21542 | | fi |
| 21543 | | |
| 21544 | | # Substitute ALL_LINGUAS so we can use it in po/Makefile |
| 21545 | | |
| 21546 | | |
| 21547 | | # Set DATADIRNAME correctly if it is not set yet |
| 21548 | | # (copied from glib-gettext.m4) |
| 21549 | | if test -z "$DATADIRNAME"; then |
| 21550 | | cat >conftest.$ac_ext <<_ACEOF |
| 21551 | | /* confdefs.h. */ |
| 21552 | | _ACEOF |
| 21553 | | cat confdefs.h >>conftest.$ac_ext |
| 21554 | | cat >>conftest.$ac_ext <<_ACEOF |
| 21555 | | /* end confdefs.h. */ |
| 21556 | | |
| 21557 | | int |
| 21558 | | main () |
| 21559 | | { |
| 21560 | | extern int _nl_msg_cat_cntr; |
| 21561 | | return _nl_msg_cat_cntr |
| 21562 | | ; |
| 21563 | | return 0; |
| 21564 | | } |
| 21565 | | _ACEOF |
| 21566 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21567 | | if { (ac_try="$ac_link" |
| 21568 | | case "(($ac_try" in |
| 21569 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21570 | | *) ac_try_echo=$ac_try;; |
| 21571 | | esac |
| 21572 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21573 | | (eval "$ac_link") 2>conftest.er1 |
| 21574 | | ac_status=$? |
| 21575 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 21576 | | rm -f conftest.er1 |
| 21577 | | cat conftest.err >&5 |
| 21578 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21579 | | (exit $ac_status); } && { |
| 21580 | | test -z "$ac_c_werror_flag" || |
| 21581 | | test ! -s conftest.err |
| 21582 | | } && test -s conftest$ac_exeext && |
| 21583 | | $as_test_x conftest$ac_exeext; then |
| 21584 | | DATADIRNAME=share |
| 21585 | | else |
| 21586 | | echo "$as_me: failed program was:" >&5 |
| 21587 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21588 | | |
| 21589 | | case $host in |
| 21590 | | *-*-solaris*) |
| 21591 | | { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 |
| 21592 | | echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } |
| 21593 | | if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then |
| 21594 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21595 | | else |
| 21596 | | cat >conftest.$ac_ext <<_ACEOF |
| 21597 | | /* confdefs.h. */ |
| 21598 | | _ACEOF |
| 21599 | | cat confdefs.h >>conftest.$ac_ext |
| 21600 | | cat >>conftest.$ac_ext <<_ACEOF |
| 21601 | | /* end confdefs.h. */ |
| 21602 | | /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. |
| 21603 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21604 | | #define bind_textdomain_codeset innocuous_bind_textdomain_codeset |
| 21605 | | |
| 21606 | | /* System header to define __stub macros and hopefully few prototypes, |
| 21607 | | which can conflict with char bind_textdomain_codeset (); below. |
| 21608 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21609 | | <limits.h> exists even on freestanding compilers. */ |
| 21610 | | |
| 21611 | | #ifdef __STDC__ |
| 21612 | | # include <limits.h> |
| 21613 | | #else |
| 21614 | | # include <assert.h> |
| 21615 | | #endif |
| 21616 | | |
| 21617 | | #undef bind_textdomain_codeset |
| 21618 | | |
| 21619 | | /* Override any GCC internal prototype to avoid an error. |
| 21620 | | Use char because int might match the return type of a GCC |
| 21621 | | builtin and then its argument prototype would still apply. */ |
| 21622 | | #ifdef __cplusplus |
| 21623 | | extern "C" |
| 21624 | | #endif |
| 21625 | | char bind_textdomain_codeset (); |
| 21626 | | /* The GNU C library defines this for functions which it implements |
| 21627 | | to always fail with ENOSYS. Some functions are actually named |
| 21628 | | something starting with __ and the normal name is an alias. */ |
| 21629 | | #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset |
| 21630 | | choke me |
| 21631 | | #endif |
| 21632 | | |
| 21633 | | int |
| 21634 | | main () |
| 21635 | | { |
| 21636 | | return bind_textdomain_codeset (); |
| 21637 | | ; |
| 21638 | | return 0; |
| 21639 | | } |
| 21640 | | _ACEOF |
| 21641 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21642 | | if { (ac_try="$ac_link" |
| 21643 | | case "(($ac_try" in |
| 21644 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21645 | | *) ac_try_echo=$ac_try;; |
| 21646 | | esac |
| 21647 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21648 | | (eval "$ac_link") 2>conftest.er1 |
| 21649 | | ac_status=$? |
| 21650 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 21651 | | rm -f conftest.er1 |
| 21652 | | cat conftest.err >&5 |
| 21653 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21654 | | (exit $ac_status); } && { |
| 21655 | | test -z "$ac_c_werror_flag" || |
| 21656 | | test ! -s conftest.err |
| 21657 | | } && test -s conftest$ac_exeext && |
| 21658 | | $as_test_x conftest$ac_exeext; then |
| 21659 | | ac_cv_func_bind_textdomain_codeset=yes |
| 21660 | | else |
| 21661 | | echo "$as_me: failed program was:" >&5 |
| 21662 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21663 | | |
| 21664 | | ac_cv_func_bind_textdomain_codeset=no |
| 21665 | | fi |
| 21666 | | |
| 21667 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21668 | | conftest$ac_exeext conftest.$ac_ext |
| 21669 | | fi |
| 21670 | | { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 |
| 21671 | | echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } |
| 21672 | | if test $ac_cv_func_bind_textdomain_codeset = yes; then |
| 21673 | | DATADIRNAME=share |
| 21674 | | else |
| 21675 | | DATADIRNAME=lib |
| 21676 | | fi |
| 21677 | | |
| 21678 | | ;; |
| 21679 | | *) |
| 21680 | | DATADIRNAME=lib |
| 21681 | | ;; |
| 21682 | | esac |
| 21683 | | fi |
| 21684 | | |
| 21685 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21686 | | conftest$ac_exeext conftest.$ac_ext |
| 21687 | | fi |
| 21688 | | |
| 21689 | | |
| 21690 | | |
| 21691 | | |
| 21692 | | |
| 21693 | | ac_config_commands="$ac_config_commands intltool" |
| 21694 | | |
| 21695 | | |
| 21696 | | |
| 21697 | | |
| 21698 | | |
| 21699 | | |
| 21700 | | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 21701 | | if test -n "$ac_tool_prefix"; then |
| 21702 | | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 21703 | | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 21704 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 21705 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 21706 | | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 21707 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21708 | | else |
| 21709 | | case $PKG_CONFIG in |
| 21710 | | [\\/]* | ?:[\\/]*) |
| 21711 | | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 21712 | | ;; |
| 21713 | | *) |
| 21714 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21715 | | for as_dir in $PATH |
| 21716 | | do |
| 21717 | | IFS=$as_save_IFS |
| 21718 | | test -z "$as_dir" && as_dir=. |
| 21719 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 21720 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 21721 | | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 21722 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21723 | | break 2 |
| 21724 | | fi |
| 21725 | | done |
| 21726 | | done |
| 21727 | | IFS=$as_save_IFS |
| 21728 | | |
| 21729 | | ;; |
| 21730 | | esac |
| 21731 | | fi |
| 21732 | | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 21733 | | if test -n "$PKG_CONFIG"; then |
| 21734 | | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 21735 | | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 21736 | | else |
| 21737 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 21738 | | echo "${ECHO_T}no" >&6; } |
| 21739 | | fi |
| 21740 | | |
| 21741 | | |
| 21742 | | fi |
| 21743 | | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 21744 | | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 21745 | | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 21746 | | set dummy pkg-config; ac_word=$2 |
| 21747 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 21748 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 21749 | | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 21750 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21751 | | else |
| 21752 | | case $ac_pt_PKG_CONFIG in |
| 21753 | | [\\/]* | ?:[\\/]*) |
| 21754 | | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 21755 | | ;; |
| 21756 | | *) |
| 21757 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21758 | | for as_dir in $PATH |
| 21759 | | do |
| 21760 | | IFS=$as_save_IFS |
| 21761 | | test -z "$as_dir" && as_dir=. |
| 21762 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 21763 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 21764 | | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 21765 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21766 | | break 2 |
| 21767 | | fi |
| 21768 | | done |
| 21769 | | done |
| 21770 | | IFS=$as_save_IFS |
| 21771 | | |
| 21772 | | ;; |
| 21773 | | esac |
| 21774 | | fi |
| 21775 | | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 21776 | | if test -n "$ac_pt_PKG_CONFIG"; then |
| 21777 | | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 21778 | | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 21779 | | else |
| 21780 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 21781 | | echo "${ECHO_T}no" >&6; } |
| 21782 | | fi |
| 21783 | | |
| 21784 | | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 21785 | | PKG_CONFIG="" |
| 21786 | | else |
| 21787 | | case $cross_compiling:$ac_tool_warned in |
| 21788 | | yes:) |
| 21789 | | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 21790 | | whose name does not start with the host triplet. If you think this |
| 21791 | | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 21792 | | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 21793 | | whose name does not start with the host triplet. If you think this |
| 21794 | | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 21795 | | ac_tool_warned=yes ;; |
| 21796 | | esac |
| 21797 | | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 21798 | | fi |
| 21799 | | else |
| 21800 | | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 21801 | | fi |
| 21802 | | |
| 21803 | | fi |
| 21804 | | if test -n "$PKG_CONFIG"; then |
| 21805 | | _pkg_min_version=0.9.0 |
| 21806 | | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 21807 | | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
| 21808 | | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 21809 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21810 | | echo "${ECHO_T}yes" >&6; } |
| 21811 | | else |
| 21812 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 21813 | | echo "${ECHO_T}no" >&6; } |
| 21814 | | PKG_CONFIG="" |
| 21815 | | fi |
| 21816 | | |
| 21817 | | fi |
| 21818 | | |
| 21819 | | pkg_failed=no |
| 21820 | | { echo "$as_me:$LINENO: checking for RGC_BASE" >&5 |
| 21821 | | echo $ECHO_N "checking for RGC_BASE... $ECHO_C" >&6; } |
| 21822 | | |
| 21823 | | if test -n "$PKG_CONFIG"; then |
| 21824 | | if test -n "$RGC_BASE_CFLAGS"; then |
| 21825 | | pkg_cv_RGC_BASE_CFLAGS="$RGC_BASE_CFLAGS" |
| 21826 | | else |
| 21827 | | if test -n "$PKG_CONFIG" && \ |
| 21828 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.8 gthread-2.0 gobject-2.0\"") >&5 |
| 21829 | | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.8 gthread-2.0 gobject-2.0") 2>&5 |
| 21830 | | ac_status=$? |
| 21831 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21832 | | (exit $ac_status); }; then |
| 21833 | | pkg_cv_RGC_BASE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.8 gthread-2.0 gobject-2.0" 2>/dev/null` |
| 21834 | | else |
| 21835 | | pkg_failed=yes |
| 21836 | | fi |
| 21837 | | fi |
| 21838 | | else |
| 21839 | | pkg_failed=untried |
| 21840 | | fi |
| 21841 | | if test -n "$PKG_CONFIG"; then |
| 21842 | | if test -n "$RGC_BASE_LIBS"; then |
| 21843 | | pkg_cv_RGC_BASE_LIBS="$RGC_BASE_LIBS" |
| 21844 | | else |
| 21845 | | if test -n "$PKG_CONFIG" && \ |
| 21846 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.8 gthread-2.0 gobject-2.0\"") >&5 |
| 21847 | | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.8 gthread-2.0 gobject-2.0") 2>&5 |
| 21848 | | ac_status=$? |
| 21849 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21850 | | (exit $ac_status); }; then |
| 21851 | | pkg_cv_RGC_BASE_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.8 gthread-2.0 gobject-2.0" 2>/dev/null` |
| 21852 | | else |
| 21853 | | pkg_failed=yes |
| 21854 | | fi |
| 21855 | | fi |
| 21856 | | else |
| 21857 | | pkg_failed=untried |
| 21858 | | fi |
| 21859 | | |
| 21860 | | |
| 21861 | | |
| 21862 | | if test $pkg_failed = yes; then |
| 21863 | | |
| 21864 | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 21865 | | _pkg_short_errors_supported=yes |
| 21866 | | else |
| 21867 | | _pkg_short_errors_supported=no |
| 21868 | | fi |
| 21869 | | if test $_pkg_short_errors_supported = yes; then |
| 21870 | | RGC_BASE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.8 gthread-2.0 gobject-2.0"` |
| 21871 | | else |
| 21872 | | RGC_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.8 gthread-2.0 gobject-2.0"` |
| 21873 | | fi |
| 21874 | | # Put the nasty error message in config.log where it belongs |
| 21875 | | echo "$RGC_BASE_PKG_ERRORS" >&5 |
| 21876 | | |
| 21877 | | { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.8 gthread-2.0 gobject-2.0) were not met: |
| 21878 | | |
| 21879 | | $RGC_BASE_PKG_ERRORS |
| 21880 | | |
| 21881 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 21882 | | installed software in a non-standard prefix. |
| 21883 | | |
| 21884 | | Alternatively, you may set the environment variables RGC_BASE_CFLAGS |
| 21885 | | and RGC_BASE_LIBS to avoid the need to call pkg-config. |
| 21886 | | See the pkg-config man page for more details. |
| 21887 | | " >&5 |
| 21888 | | echo "$as_me: error: Package requirements (glib-2.0 >= 2.8 gthread-2.0 gobject-2.0) were not met: |
| 21889 | | |
| 21890 | | $RGC_BASE_PKG_ERRORS |
| 21891 | | |
| 21892 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 21893 | | installed software in a non-standard prefix. |
| 21894 | | |
| 21895 | | Alternatively, you may set the environment variables RGC_BASE_CFLAGS |
| 21896 | | and RGC_BASE_LIBS to avoid the need to call pkg-config. |
| 21897 | | See the pkg-config man page for more details. |
| 21898 | | " >&2;} |
| 21899 | | { (exit 1); exit 1; }; } |
| 21900 | | elif test $pkg_failed = untried; then |
| 21901 | | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
| 21902 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 21903 | | path to pkg-config. |
| 21904 | | |
| 21905 | | Alternatively, you may set the environment variables RGC_BASE_CFLAGS |
| 21906 | | and RGC_BASE_LIBS to avoid the need to call pkg-config. |
| 21907 | | See the pkg-config man page for more details. |
| 21908 | | |
| 21909 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 21910 | | See \`config.log' for more details." >&5 |
| 21911 | | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
| 21912 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 21913 | | path to pkg-config. |
| 21914 | | |
| 21915 | | Alternatively, you may set the environment variables RGC_BASE_CFLAGS |
| 21916 | | and RGC_BASE_LIBS to avoid the need to call pkg-config. |
| 21917 | | See the pkg-config man page for more details. |
| 21918 | | |
| 21919 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 21920 | | See \`config.log' for more details." >&2;} |
| 21921 | | { (exit 1); exit 1; }; } |
| 21922 | | else |
| 21923 | | RGC_BASE_CFLAGS=$pkg_cv_RGC_BASE_CFLAGS |
| 21924 | | RGC_BASE_LIBS=$pkg_cv_RGC_BASE_LIBS |
| 21925 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21926 | | echo "${ECHO_T}yes" >&6; } |
| 21927 | | : |
| 21928 | | fi |
| 21929 | | |
| 21930 | | |
| 21931 | | { echo "$as_me:$LINENO: checking for mingw32" >&5 |
| 21932 | | echo $ECHO_N "checking for mingw32... $ECHO_C" >&6; } |
| 21933 | | if test "${ac_cv_mingw32+set}" = set; then |
| 21934 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21935 | | else |
| 21936 | | cat >conftest.$ac_ext <<_ACEOF |
| 21937 | | /* confdefs.h. */ |
| 21938 | | _ACEOF |
| 21939 | | cat confdefs.h >>conftest.$ac_ext |
| 21940 | | cat >>conftest.$ac_ext <<_ACEOF |
| 21941 | | /* end confdefs.h. */ |
| 21942 | | |
| 21943 | | int |
| 21944 | | main () |
| 21945 | | { |
| 21946 | | return __MINGW32__ |
| 21947 | | ; |
| 21948 | | return 0; |
| 21949 | | } |
| 21950 | | _ACEOF |
| 21951 | | rm -f conftest.$ac_objext |
| 21952 | | if { (ac_try="$ac_compile" |
| 21953 | | case "(($ac_try" in |
| 21954 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21955 | | *) ac_try_echo=$ac_try;; |
| 21956 | | esac |
| 21957 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21958 | | (eval "$ac_compile") 2>conftest.er1 |
| 21959 | | ac_status=$? |
| 21960 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 21961 | | rm -f conftest.er1 |
| 21962 | | cat conftest.err >&5 |
| 21963 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21964 | | (exit $ac_status); } && { |
| 21965 | | test -z "$ac_c_werror_flag" || |
| 21966 | | test ! -s conftest.err |
| 21967 | | } && test -s conftest.$ac_objext; then |
| 21968 | | ac_cv_mingw32="yes" |
| 21969 | | else |
| 21970 | | echo "$as_me: failed program was:" >&5 |
| 21971 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21972 | | |
| 21973 | | ac_cv_mingw32="no" |
| 21974 | | fi |
| 21975 | | |
| 21976 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21977 | | |
| 21978 | | fi |
| 21979 | | { echo "$as_me:$LINENO: result: $ac_cv_mingw32" >&5 |
| 21980 | | echo "${ECHO_T}$ac_cv_mingw32" >&6; } |
| 21981 | | |
| 21982 | | if test $ac_cv_mingw32 = yes;then |
| 21983 | | RGC_BASE_LIBS="$RGC_BASE_LIBS -lwsock32" |
| 21984 | | fi |
| 21985 | | |
| 21986 | | |
| 21987 | | RGC_SRC_LIBS="${RGC_BASE_LIBS}" |
| 21988 | | RGC_SRC_CFLAGS="${RGC_BASE_CFLAGS}" |
| 21989 | | |
| 21990 | | |
| 21991 | | |
| 21992 | | RGC_TEST_LIBS="${RGC_BASE_LIBS}" |
| 21993 | | RGC_TEST_CFLAGS="${RGC_BASE_CFLAGS}" |
| 21994 | | |
| 21995 | | |
| 21996 | | |
| 21997 | | |
| 21998 | | |
| 21999 | | |
| 22000 | | |
| 22001 | | |
| 22002 | | |
| 22003 | | |
| 22004 | | |
| 22005 | | |
| 22006 | | |
| 22007 | | |
| 22008 | | |
| 22009 | | |
| 22010 | | |
| 22011 | | |
| 22012 | | { echo "$as_me:$LINENO: checking if building for some Win32 platform" >&5 |
| 22013 | | echo $ECHO_N "checking if building for some Win32 platform... $ECHO_C" >&6; } |
| 22014 | | case "$host" in |
| 22015 | | *-*-mingw*|*-*-cygwin*) |
| 22016 | | platform_win32=yes |
| 22017 | | ;; |
| 22018 | | *) |
| 22019 | | platform_win32=no |
| 22020 | | ;; |
| 22021 | | esac |
| 22022 | | { echo "$as_me:$LINENO: result: $platform_win32" >&5 |
| 22023 | | echo "${ECHO_T}$platform_win32" >&6; } |
| 22024 | | if test x$platform_win32 = xyes; then |
| 22025 | | PLATFORM_WIN32_TRUE= |
| 22026 | | PLATFORM_WIN32_FALSE='#' |
| 22027 | | else |
| 22028 | | PLATFORM_WIN32_TRUE='#' |
| 22029 | | PLATFORM_WIN32_FALSE= |
| 22030 | | fi |
| 22031 | | |
| 22032 | | |
| 22033 | | |
| 22034 | | |
| 22035 | | GETTEXT_PACKAGE=rgc |
| 22036 | | |
| 22037 | | |
| 22038 | | cat >>confdefs.h <<_ACEOF |
| 22039 | | #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" |
| 22040 | | _ACEOF |
| 22041 | | |
| 22042 | | |
| 22043 | | |
| 22044 | | ALL_LINGUAS="" |
| 22045 | | |
| 22340 | | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5 |
| 22341 | | echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; } |
| 22342 | | if test "${ac_cv_gnu_library_2+set}" = set; then |
| 22343 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22344 | | else |
| 22345 | | cat >conftest.$ac_ext <<_ACEOF |
| 22346 | | /* confdefs.h. */ |
| 22347 | | _ACEOF |
| 22348 | | cat confdefs.h >>conftest.$ac_ext |
| 22349 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22350 | | /* end confdefs.h. */ |
| 22351 | | |
| 22352 | | #include <features.h> |
| 22353 | | #ifdef __GNU_LIBRARY__ |
| 22354 | | #if (__GLIBC__ >= 2) |
| 22355 | | Lucky GNU user |
| 22356 | | #endif |
| 22357 | | #endif |
| 22358 | | |
| 22359 | | _ACEOF |
| 22360 | | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22361 | | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
| 22362 | | ac_cv_gnu_library_2=yes |
| 22363 | | else |
| 22364 | | ac_cv_gnu_library_2=no |
| 22365 | | fi |
| 22366 | | rm -f conftest* |
| 22367 | | |
| 22368 | | |
| 22369 | | |
| 22370 | | fi |
| 22371 | | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5 |
| 22372 | | echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; } |
| 22373 | | |
| 22374 | | GLIBC2="$ac_cv_gnu_library_2" |
| 22375 | | |
| 22376 | | |
| 22377 | | if test -n "$ac_tool_prefix"; then |
| 22378 | | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 22379 | | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 22380 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 22381 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 22382 | | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 22383 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22384 | | else |
| 22385 | | if test -n "$RANLIB"; then |
| 22386 | | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 22387 | | else |
| 22388 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22389 | | for as_dir in $PATH |
| 22390 | | do |
| 22391 | | IFS=$as_save_IFS |
| 22392 | | test -z "$as_dir" && as_dir=. |
| 22393 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22394 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 22395 | | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 22396 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22397 | | break 2 |
| 22398 | | fi |
| 22399 | | done |
| 22400 | | done |
| 22401 | | IFS=$as_save_IFS |
| 22402 | | |
| 22403 | | fi |
| 22404 | | fi |
| 22405 | | RANLIB=$ac_cv_prog_RANLIB |
| 22406 | | if test -n "$RANLIB"; then |
| 22407 | | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 22408 | | echo "${ECHO_T}$RANLIB" >&6; } |
| 22409 | | else |
| 22410 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 22411 | | echo "${ECHO_T}no" >&6; } |
| 22412 | | fi |
| 22413 | | |
| 22414 | | |
| 22415 | | fi |
| 22416 | | if test -z "$ac_cv_prog_RANLIB"; then |
| 22417 | | ac_ct_RANLIB=$RANLIB |
| 22418 | | # Extract the first word of "ranlib", so it can be a program name with args. |
| 22419 | | set dummy ranlib; ac_word=$2 |
| 22420 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 22421 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 22422 | | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 22423 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22424 | | else |
| 22425 | | if test -n "$ac_ct_RANLIB"; then |
| 22426 | | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 22427 | | else |
| 22428 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22429 | | for as_dir in $PATH |
| 22430 | | do |
| 22431 | | IFS=$as_save_IFS |
| 22432 | | test -z "$as_dir" && as_dir=. |
| 22433 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22434 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 22435 | | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 22436 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22437 | | break 2 |
| 22438 | | fi |
| 22439 | | done |
| 22440 | | done |
| 22441 | | IFS=$as_save_IFS |
| 22442 | | |
| 22443 | | fi |
| 22444 | | fi |
| 22445 | | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 22446 | | if test -n "$ac_ct_RANLIB"; then |
| 22447 | | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 22448 | | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 22449 | | else |
| 22450 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 22451 | | echo "${ECHO_T}no" >&6; } |
| 22452 | | fi |
| 22453 | | |
| 22454 | | if test "x$ac_ct_RANLIB" = x; then |
| 22455 | | RANLIB=":" |
| 22456 | | else |
| 22457 | | case $cross_compiling:$ac_tool_warned in |
| 22458 | | yes:) |
| 22459 | | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 22460 | | whose name does not start with the host triplet. If you think this |
| 22461 | | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 22462 | | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 22463 | | whose name does not start with the host triplet. If you think this |
| 22464 | | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 22465 | | ac_tool_warned=yes ;; |
| 22466 | | esac |
| 22467 | | RANLIB=$ac_ct_RANLIB |
| 22468 | | fi |
| 22469 | | else |
| 22470 | | RANLIB="$ac_cv_prog_RANLIB" |
| 22471 | | fi |
| 22472 | | |
| 22473 | | |
| 22474 | | |
| 22475 | | CFLAG_VISIBILITY= |
| 22476 | | HAVE_VISIBILITY=0 |
| 22477 | | if test -n "$GCC"; then |
| 22478 | | { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5 |
| 22479 | | echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; } |
| 22480 | | if test "${gl_cv_cc_visibility+set}" = set; then |
| 22481 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22482 | | else |
| 22483 | | |
| 22484 | | gl_save_CFLAGS="$CFLAGS" |
| 22485 | | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 22486 | | cat >conftest.$ac_ext <<_ACEOF |
| 22487 | | /* confdefs.h. */ |
| 22488 | | _ACEOF |
| 22489 | | cat confdefs.h >>conftest.$ac_ext |
| 22490 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22491 | | /* end confdefs.h. */ |
| 22492 | | extern __attribute__((__visibility__("hidden"))) int hiddenvar; |
| 22493 | | extern __attribute__((__visibility__("default"))) int exportedvar; |
| 22494 | | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); |
| 22495 | | extern __attribute__((__visibility__("default"))) int exportedfunc (void); |
| 22496 | | int |
| 22497 | | main () |
| 22498 | | { |
| 22499 | | |
| 22500 | | ; |
| 22501 | | return 0; |
| 22502 | | } |
| 22503 | | _ACEOF |
| 22504 | | rm -f conftest.$ac_objext |
| 22505 | | if { (ac_try="$ac_compile" |
| 22506 | | case "(($ac_try" in |
| 22507 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22508 | | *) ac_try_echo=$ac_try;; |
| 22509 | | esac |
| 22510 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22511 | | (eval "$ac_compile") 2>conftest.er1 |
| 22512 | | ac_status=$? |
| 22513 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 22514 | | rm -f conftest.er1 |
| 22515 | | cat conftest.err >&5 |
| 22516 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22517 | | (exit $ac_status); } && { |
| 22518 | | test -z "$ac_c_werror_flag" || |
| 22519 | | test ! -s conftest.err |
| 22520 | | } && test -s conftest.$ac_objext; then |
| 22521 | | gl_cv_cc_visibility=yes |
| 22522 | | else |
| 22523 | | echo "$as_me: failed program was:" >&5 |
| 22524 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22525 | | |
| 22526 | | gl_cv_cc_visibility=no |
| 22527 | | fi |
| 22528 | | |
| 22529 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22530 | | CFLAGS="$gl_save_CFLAGS" |
| 22531 | | fi |
| 22532 | | |
| 22533 | | { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5 |
| 22534 | | echo "${ECHO_T}$gl_cv_cc_visibility" >&6; } |
| 22535 | | if test $gl_cv_cc_visibility = yes; then |
| 22536 | | CFLAG_VISIBILITY="-fvisibility=hidden" |
| 22537 | | HAVE_VISIBILITY=1 |
| 22538 | | fi |
| 22539 | | fi |
| 22540 | | |
| 22541 | | |
| 22542 | | |
| 22543 | | cat >>confdefs.h <<_ACEOF |
| 22544 | | #define HAVE_VISIBILITY $HAVE_VISIBILITY |
| 22545 | | _ACEOF |
| 22546 | | |
| 22547 | | |
| 22548 | | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 22549 | | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
| 22550 | | if test "${ac_cv_c_inline+set}" = set; then |
| 22551 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22552 | | else |
| 22553 | | ac_cv_c_inline=no |
| 22554 | | for ac_kw in inline __inline__ __inline; do |
| 22555 | | cat >conftest.$ac_ext <<_ACEOF |
| 22556 | | /* confdefs.h. */ |
| 22557 | | _ACEOF |
| 22558 | | cat confdefs.h >>conftest.$ac_ext |
| 22559 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22560 | | /* end confdefs.h. */ |
| 22561 | | #ifndef __cplusplus |
| 22562 | | typedef int foo_t; |
| 22563 | | static $ac_kw foo_t static_foo () {return 0; } |
| 22564 | | $ac_kw foo_t foo () {return 0; } |
| 22565 | | #endif |
| 22566 | | |
| 22567 | | _ACEOF |
| 22568 | | rm -f conftest.$ac_objext |
| 22569 | | if { (ac_try="$ac_compile" |
| 22570 | | case "(($ac_try" in |
| 22571 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22572 | | *) ac_try_echo=$ac_try;; |
| 22573 | | esac |
| 22574 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22575 | | (eval "$ac_compile") 2>conftest.er1 |
| 22576 | | ac_status=$? |
| 22577 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 22578 | | rm -f conftest.er1 |
| 22579 | | cat conftest.err >&5 |
| 22580 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22581 | | (exit $ac_status); } && { |
| 22582 | | test -z "$ac_c_werror_flag" || |
| 22583 | | test ! -s conftest.err |
| 22584 | | } && test -s conftest.$ac_objext; then |
| 22585 | | ac_cv_c_inline=$ac_kw |
| 22586 | | else |
| 22587 | | echo "$as_me: failed program was:" >&5 |
| 22588 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22589 | | |
| 22590 | | |
| 22591 | | fi |
| 22592 | | |
| 22593 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22594 | | test "$ac_cv_c_inline" != no && break |
| 22595 | | done |
| 22596 | | |
| 22597 | | fi |
| 22598 | | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 22599 | | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
| 22600 | | |
| 22601 | | |
| 22602 | | case $ac_cv_c_inline in |
| 22603 | | inline | yes) ;; |
| 22604 | | *) |
| 22605 | | case $ac_cv_c_inline in |
| 22606 | | no) ac_val=;; |
| 22607 | | *) ac_val=$ac_cv_c_inline;; |
| 22608 | | esac |
| 22609 | | cat >>confdefs.h <<_ACEOF |
| 22610 | | #ifndef __cplusplus |
| 22611 | | #define inline $ac_val |
| 22612 | | #endif |
| 22613 | | _ACEOF |
| 22614 | | ;; |
| 22615 | | esac |
| 22616 | | |
| 22617 | | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 22618 | | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 22619 | | if test "${ac_cv_type_size_t+set}" = set; then |
| 22620 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22621 | | else |
| 22622 | | cat >conftest.$ac_ext <<_ACEOF |
| 22623 | | /* confdefs.h. */ |
| 22624 | | _ACEOF |
| 22625 | | cat confdefs.h >>conftest.$ac_ext |
| 22626 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22627 | | /* end confdefs.h. */ |
| 22628 | | $ac_includes_default |
| 22629 | | typedef size_t ac__type_new_; |
| 22630 | | int |
| 22631 | | main () |
| 22632 | | { |
| 22633 | | if ((ac__type_new_ *) 0) |
| 22634 | | return 0; |
| 22635 | | if (sizeof (ac__type_new_)) |
| 22636 | | return 0; |
| 22637 | | ; |
| 22638 | | return 0; |
| 22639 | | } |
| 22640 | | _ACEOF |
| 22641 | | rm -f conftest.$ac_objext |
| 22642 | | if { (ac_try="$ac_compile" |
| 22643 | | case "(($ac_try" in |
| 22644 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22645 | | *) ac_try_echo=$ac_try;; |
| 22646 | | esac |
| 22647 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22648 | | (eval "$ac_compile") 2>conftest.er1 |
| 22649 | | ac_status=$? |
| 22650 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 22651 | | rm -f conftest.er1 |
| 22652 | | cat conftest.err >&5 |
| 22653 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22654 | | (exit $ac_status); } && { |
| 22655 | | test -z "$ac_c_werror_flag" || |
| 22656 | | test ! -s conftest.err |
| 22657 | | } && test -s conftest.$ac_objext; then |
| 22658 | | ac_cv_type_size_t=yes |
| 22659 | | else |
| 22660 | | echo "$as_me: failed program was:" >&5 |
| 22661 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22662 | | |
| 22663 | | ac_cv_type_size_t=no |
| 22664 | | fi |
| 22665 | | |
| 22666 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22667 | | fi |
| 22668 | | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 22669 | | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 22670 | | if test $ac_cv_type_size_t = yes; then |
| 22671 | | : |
| 22672 | | else |
| 22673 | | |
| 22674 | | cat >>confdefs.h <<_ACEOF |
| 22675 | | #define size_t unsigned int |
| 22676 | | _ACEOF |
| 22677 | | |
| 22678 | | fi |
| 22679 | | |
| 22680 | | |
| 22681 | | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 22682 | | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
| 22683 | | if test "${gl_cv_header_stdint_h+set}" = set; then |
| 22684 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22685 | | else |
| 22686 | | cat >conftest.$ac_ext <<_ACEOF |
| 22687 | | /* confdefs.h. */ |
| 22688 | | _ACEOF |
| 22689 | | cat confdefs.h >>conftest.$ac_ext |
| 22690 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22691 | | /* end confdefs.h. */ |
| 22692 | | #include <sys/types.h> |
| 22693 | | #include <stdint.h> |
| 22694 | | int |
| 22695 | | main () |
| 22696 | | { |
| 22697 | | uintmax_t i = (uintmax_t) -1; |
| 22698 | | ; |
| 22699 | | return 0; |
| 22700 | | } |
| 22701 | | _ACEOF |
| 22702 | | rm -f conftest.$ac_objext |
| 22703 | | if { (ac_try="$ac_compile" |
| 22704 | | case "(($ac_try" in |
| 22705 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22706 | | *) ac_try_echo=$ac_try;; |
| 22707 | | esac |
| 22708 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22709 | | (eval "$ac_compile") 2>conftest.er1 |
| 22710 | | ac_status=$? |
| 22711 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 22712 | | rm -f conftest.er1 |
| 22713 | | cat conftest.err >&5 |
| 22714 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22715 | | (exit $ac_status); } && { |
| 22716 | | test -z "$ac_c_werror_flag" || |
| 22717 | | test ! -s conftest.err |
| 22718 | | } && test -s conftest.$ac_objext; then |
| 22719 | | gl_cv_header_stdint_h=yes |
| 22720 | | else |
| 22721 | | echo "$as_me: failed program was:" >&5 |
| 22722 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22723 | | |
| 22724 | | gl_cv_header_stdint_h=no |
| 22725 | | fi |
| 22726 | | |
| 22727 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22728 | | fi |
| 22729 | | { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 |
| 22730 | | echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; } |
| 22731 | | if test $gl_cv_header_stdint_h = yes; then |
| 22732 | | |
| 22733 | | cat >>confdefs.h <<_ACEOF |
| 22734 | | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 22735 | | _ACEOF |
| 22736 | | |
| 22737 | | fi |
| 22738 | | |
| 22739 | | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 22740 | | # for constant arguments. Useless! |
| 22741 | | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 22742 | | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
| 22743 | | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 22744 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22745 | | else |
| 22746 | | cat >conftest.$ac_ext <<_ACEOF |
| 22747 | | /* confdefs.h. */ |
| 22748 | | _ACEOF |
| 22749 | | cat confdefs.h >>conftest.$ac_ext |
| 22750 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22751 | | /* end confdefs.h. */ |
| 22752 | | #include <alloca.h> |
| 22753 | | int |
| 22754 | | main () |
| 22755 | | { |
| 22756 | | char *p = (char *) alloca (2 * sizeof (int)); |
| 22757 | | if (p) return 0; |
| 22758 | | ; |
| 22759 | | return 0; |
| 22760 | | } |
| 22761 | | _ACEOF |
| 22762 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22763 | | if { (ac_try="$ac_link" |
| 22764 | | case "(($ac_try" in |
| 22765 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22766 | | *) ac_try_echo=$ac_try;; |
| 22767 | | esac |
| 22768 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22769 | | (eval "$ac_link") 2>conftest.er1 |
| 22770 | | ac_status=$? |
| 22771 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 22772 | | rm -f conftest.er1 |
| 22773 | | cat conftest.err >&5 |
| 22774 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22775 | | (exit $ac_status); } && { |
| 22776 | | test -z "$ac_c_werror_flag" || |
| 22777 | | test ! -s conftest.err |
| 22778 | | } && test -s conftest$ac_exeext && |
| 22779 | | $as_test_x conftest$ac_exeext; then |
| 22780 | | ac_cv_working_alloca_h=yes |
| 22781 | | else |
| 22782 | | echo "$as_me: failed program was:" >&5 |
| 22783 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22784 | | |
| 22785 | | ac_cv_working_alloca_h=no |
| 22786 | | fi |
| 22787 | | |
| 22788 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 22789 | | conftest$ac_exeext conftest.$ac_ext |
| 22790 | | fi |
| 22791 | | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 22792 | | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
| 22793 | | if test $ac_cv_working_alloca_h = yes; then |
| 22794 | | |
| 22795 | | cat >>confdefs.h <<\_ACEOF |
| 22796 | | #define HAVE_ALLOCA_H 1 |
| 22797 | | _ACEOF |
| 22798 | | |
| 22799 | | fi |
| 22800 | | |
| 22801 | | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 22802 | | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
| 22803 | | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 22804 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22805 | | else |
| 22806 | | cat >conftest.$ac_ext <<_ACEOF |
| 22807 | | /* confdefs.h. */ |
| 22808 | | _ACEOF |
| 22809 | | cat confdefs.h >>conftest.$ac_ext |
| 22810 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22811 | | /* end confdefs.h. */ |
| 22812 | | #ifdef __GNUC__ |
| 22813 | | # define alloca __builtin_alloca |
| 22814 | | #else |
| 22815 | | # ifdef _MSC_VER |
| 22816 | | # include <malloc.h> |
| 22817 | | # define alloca _alloca |
| 22818 | | # else |
| 22819 | | # ifdef HAVE_ALLOCA_H |
| 22820 | | # include <alloca.h> |
| 22821 | | # else |
| 22822 | | # ifdef _AIX |
| 22823 | | #pragma alloca |
| 22824 | | # else |
| 22825 | | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 22826 | | char *alloca (); |
| 22827 | | # endif |
| 22828 | | # endif |
| 22829 | | # endif |
| 22830 | | # endif |
| 22831 | | #endif |
| 22832 | | |
| 22833 | | int |
| 22834 | | main () |
| 22835 | | { |
| 22836 | | char *p = (char *) alloca (1); |
| 22837 | | if (p) return 0; |
| 22838 | | ; |
| 22839 | | return 0; |
| 22840 | | } |
| 22841 | | _ACEOF |
| 22842 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22843 | | if { (ac_try="$ac_link" |
| 22844 | | case "(($ac_try" in |
| 22845 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22846 | | *) ac_try_echo=$ac_try;; |
| 22847 | | esac |
| 22848 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22849 | | (eval "$ac_link") 2>conftest.er1 |
| 22850 | | ac_status=$? |
| 22851 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 22852 | | rm -f conftest.er1 |
| 22853 | | cat conftest.err >&5 |
| 22854 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22855 | | (exit $ac_status); } && { |
| 22856 | | test -z "$ac_c_werror_flag" || |
| 22857 | | test ! -s conftest.err |
| 22858 | | } && test -s conftest$ac_exeext && |
| 22859 | | $as_test_x conftest$ac_exeext; then |
| 22860 | | ac_cv_func_alloca_works=yes |
| 22861 | | else |
| 22862 | | echo "$as_me: failed program was:" >&5 |
| 22863 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22864 | | |
| 22865 | | ac_cv_func_alloca_works=no |
| 22866 | | fi |
| 22867 | | |
| 22868 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 22869 | | conftest$ac_exeext conftest.$ac_ext |
| 22870 | | fi |
| 22871 | | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 22872 | | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
| 22873 | | |
| 22874 | | if test $ac_cv_func_alloca_works = yes; then |
| 22875 | | |
| 22876 | | cat >>confdefs.h <<\_ACEOF |
| 22877 | | #define HAVE_ALLOCA 1 |
| 22878 | | _ACEOF |
| 22879 | | |
| 22880 | | else |
| 22881 | | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 22882 | | # that cause trouble. Some versions do not even contain alloca or |
| 22883 | | # contain a buggy version. If you still want to use their alloca, |
| 22884 | | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 22885 | | |
| 22886 | | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 22887 | | |
| 22888 | | cat >>confdefs.h <<\_ACEOF |
| 22889 | | #define C_ALLOCA 1 |
| 22890 | | _ACEOF |
| 22891 | | |
| 22892 | | |
| 22893 | | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 22894 | | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } |
| 22895 | | if test "${ac_cv_os_cray+set}" = set; then |
| 22896 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22897 | | else |
| 22898 | | cat >conftest.$ac_ext <<_ACEOF |
| 22899 | | /* confdefs.h. */ |
| 22900 | | _ACEOF |
| 22901 | | cat confdefs.h >>conftest.$ac_ext |
| 22902 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22903 | | /* end confdefs.h. */ |
| 22904 | | #if defined CRAY && ! defined CRAY2 |
| 22905 | | webecray |
| 22906 | | #else |
| 22907 | | wenotbecray |
| 22908 | | #endif |
| 22909 | | |
| 22910 | | _ACEOF |
| 22911 | | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22912 | | $EGREP "webecray" >/dev/null 2>&1; then |
| 22913 | | ac_cv_os_cray=yes |
| 22914 | | else |
| 22915 | | ac_cv_os_cray=no |
| 22916 | | fi |
| 22917 | | rm -f conftest* |
| 22918 | | |
| 22919 | | fi |
| 22920 | | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 22921 | | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
| 22922 | | if test $ac_cv_os_cray = yes; then |
| 22923 | | for ac_func in _getb67 GETB67 getb67; do |
| 22924 | | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22925 | | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22926 | | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 22927 | | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22928 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22929 | | else |
| 22930 | | cat >conftest.$ac_ext <<_ACEOF |
| 22931 | | /* confdefs.h. */ |
| 22932 | | _ACEOF |
| 22933 | | cat confdefs.h >>conftest.$ac_ext |
| 22934 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22935 | | /* end confdefs.h. */ |
| 22936 | | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22937 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22938 | | #define $ac_func innocuous_$ac_func |
| 22939 | | |
| 22940 | | /* System header to define __stub macros and hopefully few prototypes, |
| 22941 | | which can conflict with char $ac_func (); below. |
| 22942 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22943 | | <limits.h> exists even on freestanding compilers. */ |
| 22944 | | |
| 22945 | | #ifdef __STDC__ |
| 22946 | | # include <limits.h> |
| 22947 | | #else |
| 22948 | | # include <assert.h> |
| 22949 | | #endif |
| 22950 | | |
| 22951 | | #undef $ac_func |
| 22952 | | |
| 22953 | | /* Override any GCC internal prototype to avoid an error. |
| 22954 | | Use char because int might match the return type of a GCC |
| 22955 | | builtin and then its argument prototype would still apply. */ |
| 22956 | | #ifdef __cplusplus |
| 22957 | | extern "C" |
| 22958 | | #endif |
| 22959 | | char $ac_func (); |
| 22960 | | /* The GNU C library defines this for functions which it implements |
| 22961 | | to always fail with ENOSYS. Some functions are actually named |
| 22962 | | something starting with __ and the normal name is an alias. */ |
| 22963 | | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 22964 | | choke me |
| 22965 | | #endif |
| 22966 | | |
| 22967 | | int |
| 22968 | | main () |
| 22969 | | { |
| 22970 | | return $ac_func (); |
| 22971 | | ; |
| 22972 | | return 0; |
| 22973 | | } |
| 22974 | | _ACEOF |
| 22975 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22976 | | if { (ac_try="$ac_link" |
| 22977 | | case "(($ac_try" in |
| 22978 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22979 | | *) ac_try_echo=$ac_try;; |
| 22980 | | esac |
| 22981 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22982 | | (eval "$ac_link") 2>conftest.er1 |
| 22983 | | ac_status=$? |
| 22984 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 22985 | | rm -f conftest.er1 |
| 22986 | | cat conftest.err >&5 |
| 22987 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22988 | | (exit $ac_status); } && { |
| 22989 | | test -z "$ac_c_werror_flag" || |
| 22990 | | test ! -s conftest.err |
| 22991 | | } && test -s conftest$ac_exeext && |
| 22992 | | $as_test_x conftest$ac_exeext; then |
| 22993 | | eval "$as_ac_var=yes" |
| 22994 | | else |
| 22995 | | echo "$as_me: failed program was:" >&5 |
| 22996 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22997 | | |
| 22998 | | eval "$as_ac_var=no" |
| 22999 | | fi |
| 23000 | | |
| 23001 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23002 | | conftest$ac_exeext conftest.$ac_ext |
| 23003 | | fi |
| 23004 | | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23005 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23006 | | echo "${ECHO_T}$ac_res" >&6; } |
| 23007 | | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23008 | | |
| 23009 | | cat >>confdefs.h <<_ACEOF |
| 23010 | | #define CRAY_STACKSEG_END $ac_func |
| 23011 | | _ACEOF |
| 23012 | | |
| 23013 | | break |
| 23014 | | fi |
| 23015 | | |
| 23016 | | done |
| 23017 | | fi |
| 23018 | | |
| 23019 | | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 23020 | | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
| 23021 | | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 23022 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23023 | | else |
| 23024 | | if test "$cross_compiling" = yes; then |
| 23025 | | ac_cv_c_stack_direction=0 |
| 23026 | | else |
| 23027 | | cat >conftest.$ac_ext <<_ACEOF |
| 23028 | | /* confdefs.h. */ |
| 23029 | | _ACEOF |
| 23030 | | cat confdefs.h >>conftest.$ac_ext |
| 23031 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23032 | | /* end confdefs.h. */ |
| 23033 | | $ac_includes_default |
| 23034 | | int |
| 23035 | | find_stack_direction () |
| 23036 | | { |
| 23037 | | static char *addr = 0; |
| 23038 | | auto char dummy; |
| 23039 | | if (addr == 0) |
| 23040 | | { |
| 23041 | | addr = &dummy; |
| 23042 | | return find_stack_direction (); |
| 23043 | | } |
| 23044 | | else |
| 23045 | | return (&dummy > addr) ? 1 : -1; |
| 23046 | | } |
| 23047 | | |
| 23048 | | int |
| 23049 | | main () |
| 23050 | | { |
| 23051 | | return find_stack_direction () < 0; |
| 23052 | | } |
| 23053 | | _ACEOF |
| 23054 | | rm -f conftest$ac_exeext |
| 23055 | | if { (ac_try="$ac_link" |
| 23056 | | case "(($ac_try" in |
| 23057 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23058 | | *) ac_try_echo=$ac_try;; |
| 23059 | | esac |
| 23060 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23061 | | (eval "$ac_link") 2>&5 |
| 23062 | | ac_status=$? |
| 23063 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23064 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23065 | | { (case "(($ac_try" in |
| 23066 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23067 | | *) ac_try_echo=$ac_try;; |
| 23068 | | esac |
| 23069 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23070 | | (eval "$ac_try") 2>&5 |
| 23071 | | ac_status=$? |
| 23072 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23073 | | (exit $ac_status); }; }; then |
| 23074 | | ac_cv_c_stack_direction=1 |
| 23075 | | else |
| 23076 | | echo "$as_me: program exited with status $ac_status" >&5 |
| 23077 | | echo "$as_me: failed program was:" >&5 |
| 23078 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23079 | | |
| 23080 | | ( exit $ac_status ) |
| 23081 | | ac_cv_c_stack_direction=-1 |
| 23082 | | fi |
| 23083 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23084 | | fi |
| 23085 | | |
| 23086 | | |
| 23087 | | fi |
| 23088 | | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 23089 | | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
| 23090 | | |
| 23091 | | cat >>confdefs.h <<_ACEOF |
| 23092 | | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 23093 | | _ACEOF |
| 23094 | | |
| 23095 | | |
| 23096 | | fi |
| 23097 | | |
| 23098 | | |
| 23099 | | |
| 23100 | | for ac_header in stdlib.h unistd.h |
| 23101 | | do |
| 23102 | | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 23103 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 23104 | | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 23105 | | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 23106 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 23107 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23108 | | fi |
| 23109 | | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 23110 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23111 | | echo "${ECHO_T}$ac_res" >&6; } |
| 23112 | | else |
| 23113 | | # Is the header compilable? |
| 23114 | | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 23115 | | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 23116 | | cat >conftest.$ac_ext <<_ACEOF |
| 23117 | | /* confdefs.h. */ |
| 23118 | | _ACEOF |
| 23119 | | cat confdefs.h >>conftest.$ac_ext |
| 23120 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23121 | | /* end confdefs.h. */ |
| 23122 | | $ac_includes_default |
| 23123 | | #include <$ac_header> |
| 23124 | | _ACEOF |
| 23125 | | rm -f conftest.$ac_objext |
| 23126 | | if { (ac_try="$ac_compile" |
| 23127 | | case "(($ac_try" in |
| 23128 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23129 | | *) ac_try_echo=$ac_try;; |
| 23130 | | esac |
| 23131 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23132 | | (eval "$ac_compile") 2>conftest.er1 |
| 23133 | | ac_status=$? |
| 23134 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 23135 | | rm -f conftest.er1 |
| 23136 | | cat conftest.err >&5 |
| 23137 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23138 | | (exit $ac_status); } && { |
| 23139 | | test -z "$ac_c_werror_flag" || |
| 23140 | | test ! -s conftest.err |
| 23141 | | } && test -s conftest.$ac_objext; then |
| 23142 | | ac_header_compiler=yes |
| 23143 | | else |
| 23144 | | echo "$as_me: failed program was:" >&5 |
| 23145 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23146 | | |
| 23147 | | ac_header_compiler=no |
| 23148 | | fi |
| 23149 | | |
| 23150 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23151 | | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 23152 | | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 23153 | | |
| 23154 | | # Is the header present? |
| 23155 | | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 23156 | | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 23157 | | cat >conftest.$ac_ext <<_ACEOF |
| 23158 | | /* confdefs.h. */ |
| 23159 | | _ACEOF |
| 23160 | | cat confdefs.h >>conftest.$ac_ext |
| 23161 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23162 | | /* end confdefs.h. */ |
| 23163 | | #include <$ac_header> |
| 23164 | | _ACEOF |
| 23165 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23166 | | case "(($ac_try" in |
| 23167 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23168 | | *) ac_try_echo=$ac_try;; |
| 23169 | | esac |
| 23170 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23171 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 23172 | | ac_status=$? |
| 23173 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 23174 | | rm -f conftest.er1 |
| 23175 | | cat conftest.err >&5 |
| 23176 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23177 | | (exit $ac_status); } >/dev/null && { |
| 23178 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 23179 | | test ! -s conftest.err |
| 23180 | | }; then |
| 23181 | | ac_header_preproc=yes |
| 23182 | | else |
| 23183 | | echo "$as_me: failed program was:" >&5 |
| 23184 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23185 | | |
| 23186 | | ac_header_preproc=no |
| 23187 | | fi |
| 23188 | | |
| 23189 | | rm -f conftest.err conftest.$ac_ext |
| 23190 | | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 23191 | | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 23192 | | |
| 23193 | | # So? What about this header? |
| 23194 | | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 23195 | | yes:no: ) |
| 23196 | | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 23197 | | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 23198 | | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 23199 | | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 23200 | | ac_header_preproc=yes |
| 23201 | | ;; |
| 23202 | | no:yes:* ) |
| 23203 | | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 23204 | | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 23205 | | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 23206 | | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 23207 | | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 23208 | | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 23209 | | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 23210 | | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 23211 | | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 23212 | | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 23213 | | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 23214 | | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 23215 | | |
| 23216 | | ;; |
| 23217 | | esac |
| 23218 | | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 23219 | | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 23220 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 23221 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23222 | | else |
| 23223 | | eval "$as_ac_Header=\$ac_header_preproc" |
| 23224 | | fi |
| 23225 | | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 23226 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23227 | | echo "${ECHO_T}$ac_res" >&6; } |
| 23228 | | |
| 23229 | | fi |
| 23230 | | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 23231 | | cat >>confdefs.h <<_ACEOF |
| 23232 | | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 23233 | | _ACEOF |
| 23234 | | |
| 23235 | | fi |
| 23236 | | |
| 23237 | | done |
| 23238 | | |
| 23239 | | |
| 23240 | | for ac_func in getpagesize |
| 23241 | | do |
| 23242 | | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23243 | | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23244 | | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 23245 | | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 23246 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23247 | | else |
| 23248 | | cat >conftest.$ac_ext <<_ACEOF |
| 23249 | | /* confdefs.h. */ |
| 23250 | | _ACEOF |
| 23251 | | cat confdefs.h >>conftest.$ac_ext |
| 23252 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23253 | | /* end confdefs.h. */ |
| 23254 | | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23255 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23256 | | #define $ac_func innocuous_$ac_func |
| 23257 | | |
| 23258 | | /* System header to define __stub macros and hopefully few prototypes, |
| 23259 | | which can conflict with char $ac_func (); below. |
| 23260 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23261 | | <limits.h> exists even on freestanding compilers. */ |
| 23262 | | |
| 23263 | | #ifdef __STDC__ |
| 23264 | | # include <limits.h> |
| 23265 | | #else |
| 23266 | | # include <assert.h> |
| 23267 | | #endif |
| 23268 | | |
| 23269 | | #undef $ac_func |
| 23270 | | |
| 23271 | | /* Override any GCC internal prototype to avoid an error. |
| 23272 | | Use char because int might match the return type of a GCC |
| 23273 | | builtin and then its argument prototype would still apply. */ |
| 23274 | | #ifdef __cplusplus |
| 23275 | | extern "C" |
| 23276 | | #endif |
| 23277 | | char $ac_func (); |
| 23278 | | /* The GNU C library defines this for functions which it implements |
| 23279 | | to always fail with ENOSYS. Some functions are actually named |
| 23280 | | something starting with __ and the normal name is an alias. */ |
| 23281 | | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 23282 | | choke me |
| 23283 | | #endif |
| 23284 | | |
| 23285 | | int |
| 23286 | | main () |
| 23287 | | { |
| 23288 | | return $ac_func (); |
| 23289 | | ; |
| 23290 | | return 0; |
| 23291 | | } |
| 23292 | | _ACEOF |
| 23293 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23294 | | if { (ac_try="$ac_link" |
| 23295 | | case "(($ac_try" in |
| 23296 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23297 | | *) ac_try_echo=$ac_try;; |
| 23298 | | esac |
| 23299 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23300 | | (eval "$ac_link") 2>conftest.er1 |
| 23301 | | ac_status=$? |
| 23302 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 23303 | | rm -f conftest.er1 |
| 23304 | | cat conftest.err >&5 |
| 23305 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23306 | | (exit $ac_status); } && { |
| 23307 | | test -z "$ac_c_werror_flag" || |
| 23308 | | test ! -s conftest.err |
| 23309 | | } && test -s conftest$ac_exeext && |
| 23310 | | $as_test_x conftest$ac_exeext; then |
| 23311 | | eval "$as_ac_var=yes" |
| 23312 | | else |
| 23313 | | echo "$as_me: failed program was:" >&5 |
| 23314 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23315 | | |
| 23316 | | eval "$as_ac_var=no" |
| 23317 | | fi |
| 23318 | | |
| 23319 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23320 | | conftest$ac_exeext conftest.$ac_ext |
| 23321 | | fi |
| 23322 | | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23323 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23324 | | echo "${ECHO_T}$ac_res" >&6; } |
| 23325 | | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23326 | | cat >>confdefs.h <<_ACEOF |
| 23327 | | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23328 | | _ACEOF |
| 23329 | | |
| 23330 | | fi |
| 23331 | | done |
| 23332 | | |
| 23333 | | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 23334 | | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 23335 | | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 23336 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23337 | | else |
| 23338 | | if test "$cross_compiling" = yes; then |
| 23339 | | ac_cv_func_mmap_fixed_mapped=no |
| 23340 | | else |
| 23341 | | cat >conftest.$ac_ext <<_ACEOF |
| 23342 | | /* confdefs.h. */ |
| 23343 | | _ACEOF |
| 23344 | | cat confdefs.h >>conftest.$ac_ext |
| 23345 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23346 | | /* end confdefs.h. */ |
| 23347 | | $ac_includes_default |
| 23348 | | /* malloc might have been renamed as rpl_malloc. */ |
| 23349 | | #undef malloc |
| 23350 | | |
| 23351 | | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 23352 | | Here is a matrix of mmap possibilities: |
| 23353 | | mmap private not fixed |
| 23354 | | mmap private fixed at somewhere currently unmapped |
| 23355 | | mmap private fixed at somewhere already mapped |
| 23356 | | mmap shared not fixed |
| 23357 | | mmap shared fixed at somewhere currently unmapped |
| 23358 | | mmap shared fixed at somewhere already mapped |
| 23359 | | For private mappings, we should verify that changes cannot be read() |
| 23360 | | back from the file, nor mmap's back from the file at a different |
| 23361 | | address. (There have been systems where private was not correctly |
| 23362 | | implemented like the infamous i386 svr4.0, and systems where the |
| 23363 | | VM page cache was not coherent with the file system buffer cache |
| 23364 | | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 23365 | | For shared mappings, we should conversely verify that changes get |
| 23366 | | propagated back to all the places they're supposed to be. |
| 23367 | | |
| 23368 | | Grep wants private fixed already mapped. |
| 23369 | | The main things grep needs to know about mmap are: |
| 23370 | | * does it exist and is it safe to write into the mmap'd area |
| 23371 | | * how to use it (BSD variants) */ |
| 23372 | | |
| 23373 | | #include <fcntl.h> |
| 23374 | | #include <sys/mman.h> |
| 23375 | | |
| 23376 | | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
| 23377 | | char *malloc (); |
| 23378 | | #endif |
| 23379 | | |
| 23380 | | /* This mess was copied from the GNU getpagesize.h. */ |
| 23381 | | #ifndef HAVE_GETPAGESIZE |
| 23382 | | /* Assume that all systems that can run configure have sys/param.h. */ |
| 23383 | | # ifndef HAVE_SYS_PARAM_H |
| 23384 | | # define HAVE_SYS_PARAM_H 1 |
| 23385 | | # endif |
| 23386 | | |
| 23387 | | # ifdef _SC_PAGESIZE |
| 23388 | | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 23389 | | # else /* no _SC_PAGESIZE */ |
| 23390 | | # ifdef HAVE_SYS_PARAM_H |
| 23391 | | # include <sys/param.h> |
| 23392 | | # ifdef EXEC_PAGESIZE |
| 23393 | | # define getpagesize() EXEC_PAGESIZE |
| 23394 | | # else /* no EXEC_PAGESIZE */ |
| 23395 | | # ifdef NBPG |
| 23396 | | # define getpagesize() NBPG * CLSIZE |
| 23397 | | # ifndef CLSIZE |
| 23398 | | # define CLSIZE 1 |
| 23399 | | # endif /* no CLSIZE */ |
| 23400 | | # else /* no NBPG */ |
| 23401 | | # ifdef NBPC |
| 23402 | | # define getpagesize() NBPC |
| 23403 | | # else /* no NBPC */ |
| 23404 | | # ifdef PAGESIZE |
| 23405 | | # define getpagesize() PAGESIZE |
| 23406 | | # endif /* PAGESIZE */ |
| 23407 | | # endif /* no NBPC */ |
| 23408 | | # endif /* no NBPG */ |
| 23409 | | # endif /* no EXEC_PAGESIZE */ |
| 23410 | | # else /* no HAVE_SYS_PARAM_H */ |
| 23411 | | # define getpagesize() 8192 /* punt totally */ |
| 23412 | | # endif /* no HAVE_SYS_PARAM_H */ |
| 23413 | | # endif /* no _SC_PAGESIZE */ |
| 23414 | | |
| 23415 | | #endif /* no HAVE_GETPAGESIZE */ |
| 23416 | | |
| 23417 | | int |
| 23418 | | main () |
| 23419 | | { |
| 23420 | | char *data, *data2, *data3; |
| 23421 | | int i, pagesize; |
| 23422 | | int fd; |
| 23423 | | |
| 23424 | | pagesize = getpagesize (); |
| 23425 | | |
| 23426 | | /* First, make a file with some known garbage in it. */ |
| 23427 | | data = (char *) malloc (pagesize); |
| 23428 | | if (!data) |
| 23429 | | return 1; |
| 23430 | | for (i = 0; i < pagesize; ++i) |
| 23431 | | *(data + i) = rand (); |
| 23432 | | umask (0); |
| 23433 | | fd = creat ("conftest.mmap", 0600); |
| 23434 | | if (fd < 0) |
| 23435 | | return 1; |
| 23436 | | if (write (fd, data, pagesize) != pagesize) |
| 23437 | | return 1; |
| 23438 | | close (fd); |
| 23439 | | |
| 23440 | | /* Next, try to mmap the file at a fixed address which already has |
| 23441 | | something else allocated at it. If we can, also make sure that |
| 23442 | | we see the same garbage. */ |
| 23443 | | fd = open ("conftest.mmap", O_RDWR); |
| 23444 | | if (fd < 0) |
| 23445 | | return 1; |
| 23446 | | data2 = (char *) malloc (2 * pagesize); |
| 23447 | | if (!data2) |
| 23448 | | return 1; |
| 23449 | | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 23450 | | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 23451 | | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 23452 | | return 1; |
| 23453 | | for (i = 0; i < pagesize; ++i) |
| 23454 | | if (*(data + i) != *(data2 + i)) |
| 23455 | | return 1; |
| 23456 | | |
| 23457 | | /* Finally, make sure that changes to the mapped area do not |
| 23458 | | percolate back to the file as seen by read(). (This is a bug on |
| 23459 | | some variants of i386 svr4.0.) */ |
| 23460 | | for (i = 0; i < pagesize; ++i) |
| 23461 | | *(data2 + i) = *(data2 + i) + 1; |
| 23462 | | data3 = (char *) malloc (pagesize); |
| 23463 | | if (!data3) |
| 23464 | | return 1; |
| 23465 | | if (read (fd, data3, pagesize) != pagesize) |
| 23466 | | return 1; |
| 23467 | | for (i = 0; i < pagesize; ++i) |
| 23468 | | if (*(data + i) != *(data3 + i)) |
| 23469 | | return 1; |
| 23470 | | close (fd); |
| 23471 | | return 0; |
| 23472 | | } |
| 23473 | | _ACEOF |
| 23474 | | rm -f conftest$ac_exeext |
| 23475 | | if { (ac_try="$ac_link" |
| 23476 | | case "(($ac_try" in |
| 23477 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23478 | | *) ac_try_echo=$ac_try;; |
| 23479 | | esac |
| 23480 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23481 | | (eval "$ac_link") 2>&5 |
| 23482 | | ac_status=$? |
| 23483 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23484 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23485 | | { (case "(($ac_try" in |
| 23486 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23487 | | *) ac_try_echo=$ac_try;; |
| 23488 | | esac |
| 23489 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23490 | | (eval "$ac_try") 2>&5 |
| 23491 | | ac_status=$? |
| 23492 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23493 | | (exit $ac_status); }; }; then |
| 23494 | | ac_cv_func_mmap_fixed_mapped=yes |
| 23495 | | else |
| 23496 | | echo "$as_me: program exited with status $ac_status" >&5 |
| 23497 | | echo "$as_me: failed program was:" >&5 |
| 23498 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23499 | | |
| 23500 | | ( exit $ac_status ) |
| 23501 | | ac_cv_func_mmap_fixed_mapped=no |
| 23502 | | fi |
| 23503 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23504 | | fi |
| 23505 | | |
| 23506 | | |
| 23507 | | fi |
| 23508 | | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 23509 | | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 23510 | | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 23511 | | |
| 23512 | | cat >>confdefs.h <<\_ACEOF |
| 23513 | | #define HAVE_MMAP 1 |
| 23514 | | _ACEOF |
| 23515 | | |
| 23516 | | fi |
| 23517 | | rm -f conftest.mmap |
| 23518 | | |
| 23519 | | |
| 23520 | | |
| 23521 | | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 23522 | | echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } |
| 23523 | | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 23524 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23525 | | else |
| 23526 | | |
| 23527 | | if test "$cross_compiling" = yes; then |
| 23528 | | |
| 23529 | | # Guess based on the CPU. |
| 23530 | | case "$host_cpu" in |
| 23531 | | alpha* | i3456786 | m68k | s390*) |
| 23532 | | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 23533 | | *) |
| 23534 | | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 23535 | | esac |
| 23536 | | |
| 23537 | | else |
| 23538 | | cat >conftest.$ac_ext <<_ACEOF |
| 23539 | | /* confdefs.h. */ |
| 23540 | | _ACEOF |
| 23541 | | cat confdefs.h >>conftest.$ac_ext |
| 23542 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23543 | | /* end confdefs.h. */ |
| 23544 | | |
| 23545 | | #include <stdlib.h> |
| 23546 | | #include <signal.h> |
| 23547 | | |
| 23548 | | static void |
| 23549 | | #ifdef __cplusplus |
| 23550 | | sigfpe_handler (int sig) |
| 23551 | | #else |
| 23552 | | sigfpe_handler (sig) int sig; |
| 23553 | | #endif |
| 23554 | | { |
| 23555 | | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 23556 | | exit (sig != SIGFPE); |
| 23557 | | } |
| 23558 | | |
| 23559 | | int x = 1; |
| 23560 | | int y = 0; |
| 23561 | | int z; |
| 23562 | | int nan; |
| 23563 | | |
| 23564 | | int main () |
| 23565 | | { |
| 23566 | | signal (SIGFPE, sigfpe_handler); |
| 23567 | | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 23568 | | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 23569 | | signal (SIGTRAP, sigfpe_handler); |
| 23570 | | #endif |
| 23571 | | /* Linux/SPARC yields signal SIGILL. */ |
| 23572 | | #if defined (__sparc__) && defined (__linux__) |
| 23573 | | signal (SIGILL, sigfpe_handler); |
| 23574 | | #endif |
| 23575 | | |
| 23576 | | z = x / y; |
| 23577 | | nan = y / y; |
| 23578 | | exit (1); |
| 23579 | | } |
| 23580 | | |
| 23581 | | _ACEOF |
| 23582 | | rm -f conftest$ac_exeext |
| 23583 | | if { (ac_try="$ac_link" |
| 23584 | | case "(($ac_try" in |
| 23585 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23586 | | *) ac_try_echo=$ac_try;; |
| 23587 | | esac |
| 23588 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23589 | | (eval "$ac_link") 2>&5 |
| 23590 | | ac_status=$? |
| 23591 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23592 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23593 | | { (case "(($ac_try" in |
| 23594 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23595 | | *) ac_try_echo=$ac_try;; |
| 23596 | | esac |
| 23597 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23598 | | (eval "$ac_try") 2>&5 |
| 23599 | | ac_status=$? |
| 23600 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23601 | | (exit $ac_status); }; }; then |
| 23602 | | gt_cv_int_divbyzero_sigfpe=yes |
| 23603 | | else |
| 23604 | | echo "$as_me: program exited with status $ac_status" >&5 |
| 23605 | | echo "$as_me: failed program was:" >&5 |
| 23606 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23607 | | |
| 23608 | | ( exit $ac_status ) |
| 23609 | | gt_cv_int_divbyzero_sigfpe=no |
| 23610 | | fi |
| 23611 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23612 | | fi |
| 23613 | | |
| 23614 | | |
| 23615 | | |
| 23616 | | fi |
| 23617 | | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 23618 | | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
| 23619 | | case "$gt_cv_int_divbyzero_sigfpe" in |
| 23620 | | *yes) value=1;; |
| 23621 | | *) value=0;; |
| 23622 | | esac |
| 23623 | | |
| 23624 | | cat >>confdefs.h <<_ACEOF |
| 23625 | | #define INTDIV0_RAISES_SIGFPE $value |
| 23626 | | _ACEOF |
| 23627 | | |
| 23628 | | |
| 23629 | | |
| 23630 | | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 23631 | | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
| 23632 | | if test "${gl_cv_header_inttypes_h+set}" = set; then |
| 23633 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23634 | | else |
| 23635 | | cat >conftest.$ac_ext <<_ACEOF |
| 23636 | | /* confdefs.h. */ |
| 23637 | | _ACEOF |
| 23638 | | cat confdefs.h >>conftest.$ac_ext |
| 23639 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23640 | | /* end confdefs.h. */ |
| 23641 | | #include <sys/types.h> |
| 23642 | | #include <inttypes.h> |
| 23643 | | int |
| 23644 | | main () |
| 23645 | | { |
| 23646 | | uintmax_t i = (uintmax_t) -1; |
| 23647 | | ; |
| 23648 | | return 0; |
| 23649 | | } |
| 23650 | | _ACEOF |
| 23651 | | rm -f conftest.$ac_objext |
| 23652 | | if { (ac_try="$ac_compile" |
| 23653 | | case "(($ac_try" in |
| 23654 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23655 | | *) ac_try_echo=$ac_try;; |
| 23656 | | esac |
| 23657 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23658 | | (eval "$ac_compile") 2>conftest.er1 |
| 23659 | | ac_status=$? |
| 23660 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 23661 | | rm -f conftest.er1 |
| 23662 | | cat conftest.err >&5 |
| 23663 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23664 | | (exit $ac_status); } && { |
| 23665 | | test -z "$ac_c_werror_flag" || |
| 23666 | | test ! -s conftest.err |
| 23667 | | } && test -s conftest.$ac_objext; then |
| 23668 | | gl_cv_header_inttypes_h=yes |
| 23669 | | else |
| 23670 | | echo "$as_me: failed program was:" >&5 |
| 23671 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23672 | | |
| 23673 | | gl_cv_header_inttypes_h=no |
| 23674 | | fi |
| 23675 | | |
| 23676 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23677 | | fi |
| 23678 | | { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 |
| 23679 | | echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; } |
| 23680 | | if test $gl_cv_header_inttypes_h = yes; then |
| 23681 | | |
| 23682 | | cat >>confdefs.h <<_ACEOF |
| 23683 | | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 23684 | | _ACEOF |
| 23685 | | |
| 23686 | | fi |
| 23687 | | |
| 23688 | | |
| 23689 | | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 23690 | | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
| 23691 | | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 23692 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23693 | | else |
| 23694 | | cat >conftest.$ac_ext <<_ACEOF |
| 23695 | | /* confdefs.h. */ |
| 23696 | | _ACEOF |
| 23697 | | cat confdefs.h >>conftest.$ac_ext |
| 23698 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23699 | | /* end confdefs.h. */ |
| 23700 | | unsigned long long ull = 1ULL; int i = 63; |
| 23701 | | int |
| 23702 | | main () |
| 23703 | | { |
| 23704 | | unsigned long long ullmax = (unsigned long long) -1; |
| 23705 | | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 23706 | | ; |
| 23707 | | return 0; |
| 23708 | | } |
| 23709 | | _ACEOF |
| 23710 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23711 | | if { (ac_try="$ac_link" |
| 23712 | | case "(($ac_try" in |
| 23713 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23714 | | *) ac_try_echo=$ac_try;; |
| 23715 | | esac |
| 23716 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23717 | | (eval "$ac_link") 2>conftest.er1 |
| 23718 | | ac_status=$? |
| 23719 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 23720 | | rm -f conftest.er1 |
| 23721 | | cat conftest.err >&5 |
| 23722 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23723 | | (exit $ac_status); } && { |
| 23724 | | test -z "$ac_c_werror_flag" || |
| 23725 | | test ! -s conftest.err |
| 23726 | | } && test -s conftest$ac_exeext && |
| 23727 | | $as_test_x conftest$ac_exeext; then |
| 23728 | | ac_cv_type_unsigned_long_long=yes |
| 23729 | | else |
| 23730 | | echo "$as_me: failed program was:" >&5 |
| 23731 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23732 | | |
| 23733 | | ac_cv_type_unsigned_long_long=no |
| 23734 | | fi |
| 23735 | | |
| 23736 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23737 | | conftest$ac_exeext conftest.$ac_ext |
| 23738 | | fi |
| 23739 | | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 23740 | | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
| 23741 | | if test $ac_cv_type_unsigned_long_long = yes; then |
| 23742 | | |
| 23743 | | cat >>confdefs.h <<\_ACEOF |
| 23744 | | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 23745 | | _ACEOF |
| 23746 | | |
| 23747 | | fi |
| 23748 | | |
| 23749 | | |
| 23750 | | |
| 23751 | | |
| 23752 | | if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then |
| 23753 | | |
| 23754 | | test $ac_cv_type_unsigned_long_long = yes \ |
| 23755 | | && ac_type='unsigned long long' \ |
| 23756 | | || ac_type='unsigned long' |
| 23757 | | |
| 23758 | | cat >>confdefs.h <<_ACEOF |
| 23759 | | #define uintmax_t $ac_type |
| 23760 | | _ACEOF |
| 23761 | | |
| 23762 | | else |
| 23763 | | |
| 23764 | | cat >>confdefs.h <<\_ACEOF |
| 23765 | | #define HAVE_UINTMAX_T 1 |
| 23766 | | _ACEOF |
| 23767 | | |
| 23768 | | fi |
| 23769 | | |
| 23770 | | |
| 23771 | | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 23772 | | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
| 23773 | | if test "${gl_cv_header_inttypes_h+set}" = set; then |
| 23774 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23775 | | else |
| 23776 | | |
| 23777 | | cat >conftest.$ac_ext <<_ACEOF |
| 23778 | | /* confdefs.h. */ |
| 23779 | | _ACEOF |
| 23780 | | cat confdefs.h >>conftest.$ac_ext |
| 23781 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23782 | | /* end confdefs.h. */ |
| 23783 | | #include <sys/types.h> |
| 23784 | | #include <inttypes.h> |
| 23785 | | int |
| 23786 | | main () |
| 23787 | | { |
| 23788 | | |
| 23789 | | ; |
| 23790 | | return 0; |
| 23791 | | } |
| 23792 | | _ACEOF |
| 23793 | | rm -f conftest.$ac_objext |
| 23794 | | if { (ac_try="$ac_compile" |
| 23795 | | case "(($ac_try" in |
| 23796 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23797 | | *) ac_try_echo=$ac_try;; |
| 23798 | | esac |
| 23799 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23800 | | (eval "$ac_compile") 2>conftest.er1 |
| 23801 | | ac_status=$? |
| 23802 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 23803 | | rm -f conftest.er1 |
| 23804 | | cat conftest.err >&5 |
| 23805 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23806 | | (exit $ac_status); } && { |
| 23807 | | test -z "$ac_c_werror_flag" || |
| 23808 | | test ! -s conftest.err |
| 23809 | | } && test -s conftest.$ac_objext; then |
| 23810 | | gl_cv_header_inttypes_h=yes |
| 23811 | | else |
| 23812 | | echo "$as_me: failed program was:" >&5 |
| 23813 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23814 | | |
| 23815 | | gl_cv_header_inttypes_h=no |
| 23816 | | fi |
| 23817 | | |
| 23818 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23819 | | |
| 23820 | | fi |
| 23821 | | { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 |
| 23822 | | echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; } |
| 23823 | | if test $gl_cv_header_inttypes_h = yes; then |
| 23824 | | |
| 23825 | | cat >>confdefs.h <<_ACEOF |
| 23826 | | #define HAVE_INTTYPES_H 1 |
| 23827 | | _ACEOF |
| 23828 | | |
| 23829 | | fi |
| 23830 | | |
| 23831 | | |
| 23832 | | |
| 23833 | | if test $gl_cv_header_inttypes_h = yes; then |
| 23834 | | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 23835 | | echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } |
| 23836 | | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 23837 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23838 | | else |
| 23839 | | |
| 23840 | | cat >conftest.$ac_ext <<_ACEOF |
| 23841 | | /* confdefs.h. */ |
| 23842 | | _ACEOF |
| 23843 | | cat confdefs.h >>conftest.$ac_ext |
| 23844 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23845 | | /* end confdefs.h. */ |
| 23846 | | #include <inttypes.h> |
| 23847 | | #ifdef PRId32 |
| 23848 | | char *p = PRId32; |
| 23849 | | #endif |
| 23850 | | |
| 23851 | | int |
| 23852 | | main () |
| 23853 | | { |
| 23854 | | |
| 23855 | | ; |
| 23856 | | return 0; |
| 23857 | | } |
| 23858 | | _ACEOF |
| 23859 | | rm -f conftest.$ac_objext |
| 23860 | | if { (ac_try="$ac_compile" |
| 23861 | | case "(($ac_try" in |
| 23862 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23863 | | *) ac_try_echo=$ac_try;; |
| 23864 | | esac |
| 23865 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23866 | | (eval "$ac_compile") 2>conftest.er1 |
| 23867 | | ac_status=$? |
| 23868 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 23869 | | rm -f conftest.er1 |
| 23870 | | cat conftest.err >&5 |
| 23871 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23872 | | (exit $ac_status); } && { |
| 23873 | | test -z "$ac_c_werror_flag" || |
| 23874 | | test ! -s conftest.err |
| 23875 | | } && test -s conftest.$ac_objext; then |
| 23876 | | gt_cv_inttypes_pri_broken=no |
| 23877 | | else |
| 23878 | | echo "$as_me: failed program was:" >&5 |
| 23879 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23880 | | |
| 23881 | | gt_cv_inttypes_pri_broken=yes |
| 23882 | | fi |
| 23883 | | |
| 23884 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23885 | | |
| 23886 | | fi |
| 23887 | | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 23888 | | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
| 23889 | | fi |
| 23890 | | if test "$gt_cv_inttypes_pri_broken" = yes; then |
| 23891 | | |
| 23892 | | cat >>confdefs.h <<_ACEOF |
| 23893 | | #define PRI_MACROS_BROKEN 1 |
| 23894 | | _ACEOF |
| 23895 | | |
| 23896 | | fi |
| 23897 | | |
| 23898 | | |
| 24079 | | |
| 24080 | | |
| 24081 | | |
| 24082 | | |
| 24083 | | # Check whether --enable-threads was given. |
| 24084 | | if test "${enable_threads+set}" = set; then |
| 24085 | | enableval=$enable_threads; gl_use_threads=$enableval |
| 24086 | | else |
| 24087 | | gl_use_threads=yes |
| 24088 | | fi |
| 24089 | | |
| 24090 | | gl_threads_api=none |
| 24091 | | LIBTHREAD= |
| 24092 | | LTLIBTHREAD= |
| 24093 | | LIBMULTITHREAD= |
| 24094 | | LTLIBMULTITHREAD= |
| 24095 | | if test "$gl_use_threads" != no; then |
| 24096 | | { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5 |
| 24097 | | echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; } |
| 24098 | | gl_have_weak=no |
| 24099 | | cat >conftest.$ac_ext <<_ACEOF |
| 24100 | | /* confdefs.h. */ |
| 24101 | | _ACEOF |
| 24102 | | cat confdefs.h >>conftest.$ac_ext |
| 24103 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24104 | | /* end confdefs.h. */ |
| 24105 | | extern void xyzzy (); |
| 24106 | | #pragma weak xyzzy |
| 24107 | | int |
| 24108 | | main () |
| 24109 | | { |
| 24110 | | xyzzy(); |
| 24111 | | ; |
| 24112 | | return 0; |
| 24113 | | } |
| 24114 | | _ACEOF |
| 24115 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24116 | | if { (ac_try="$ac_link" |
| 24117 | | case "(($ac_try" in |
| 24118 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24119 | | *) ac_try_echo=$ac_try;; |
| 24120 | | esac |
| 24121 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24122 | | (eval "$ac_link") 2>conftest.er1 |
| 24123 | | ac_status=$? |
| 24124 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24125 | | rm -f conftest.er1 |
| 24126 | | cat conftest.err >&5 |
| 24127 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24128 | | (exit $ac_status); } && { |
| 24129 | | test -z "$ac_c_werror_flag" || |
| 24130 | | test ! -s conftest.err |
| 24131 | | } && test -s conftest$ac_exeext && |
| 24132 | | $as_test_x conftest$ac_exeext; then |
| 24133 | | gl_have_weak=yes |
| 24134 | | else |
| 24135 | | echo "$as_me: failed program was:" >&5 |
| 24136 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24137 | | |
| 24138 | | |
| 24139 | | fi |
| 24140 | | |
| 24141 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24142 | | conftest$ac_exeext conftest.$ac_ext |
| 24143 | | { echo "$as_me:$LINENO: result: $gl_have_weak" >&5 |
| 24144 | | echo "${ECHO_T}$gl_have_weak" >&6; } |
| 24145 | | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 24146 | | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that |
| 24147 | | # it groks <pthread.h>. |
| 24148 | | gl_save_CPPFLAGS="$CPPFLAGS" |
| 24149 | | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
| 24150 | | if test "${ac_cv_header_pthread_h+set}" = set; then |
| 24151 | | { echo "$as_me:$LINENO: checking for pthread.h" >&5 |
| 24152 | | echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } |
| 24153 | | if test "${ac_cv_header_pthread_h+set}" = set; then |
| 24154 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24155 | | fi |
| 24156 | | { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 |
| 24157 | | echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } |
| 24158 | | else |
| 24159 | | # Is the header compilable? |
| 24160 | | { echo "$as_me:$LINENO: checking pthread.h usability" >&5 |
| 24161 | | echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; } |
| 24162 | | cat >conftest.$ac_ext <<_ACEOF |
| 24163 | | /* confdefs.h. */ |
| 24164 | | _ACEOF |
| 24165 | | cat confdefs.h >>conftest.$ac_ext |
| 24166 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24167 | | /* end confdefs.h. */ |
| 24168 | | $ac_includes_default |
| 24169 | | #include <pthread.h> |
| 24170 | | _ACEOF |
| 24171 | | rm -f conftest.$ac_objext |
| 24172 | | if { (ac_try="$ac_compile" |
| 24173 | | case "(($ac_try" in |
| 24174 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24175 | | *) ac_try_echo=$ac_try;; |
| 24176 | | esac |
| 24177 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24178 | | (eval "$ac_compile") 2>conftest.er1 |
| 24179 | | ac_status=$? |
| 24180 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24181 | | rm -f conftest.er1 |
| 24182 | | cat conftest.err >&5 |
| 24183 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24184 | | (exit $ac_status); } && { |
| 24185 | | test -z "$ac_c_werror_flag" || |
| 24186 | | test ! -s conftest.err |
| 24187 | | } && test -s conftest.$ac_objext; then |
| 24188 | | ac_header_compiler=yes |
| 24189 | | else |
| 24190 | | echo "$as_me: failed program was:" >&5 |
| 24191 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24192 | | |
| 24193 | | ac_header_compiler=no |
| 24194 | | fi |
| 24195 | | |
| 24196 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24197 | | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24198 | | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 24199 | | |
| 24200 | | # Is the header present? |
| 24201 | | { echo "$as_me:$LINENO: checking pthread.h presence" >&5 |
| 24202 | | echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; } |
| 24203 | | cat >conftest.$ac_ext <<_ACEOF |
| 24204 | | /* confdefs.h. */ |
| 24205 | | _ACEOF |
| 24206 | | cat confdefs.h >>conftest.$ac_ext |
| 24207 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24208 | | /* end confdefs.h. */ |
| 24209 | | #include <pthread.h> |
| 24210 | | _ACEOF |
| 24211 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24212 | | case "(($ac_try" in |
| 24213 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24214 | | *) ac_try_echo=$ac_try;; |
| 24215 | | esac |
| 24216 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24217 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 24218 | | ac_status=$? |
| 24219 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24220 | | rm -f conftest.er1 |
| 24221 | | cat conftest.err >&5 |
| 24222 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24223 | | (exit $ac_status); } >/dev/null && { |
| 24224 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24225 | | test ! -s conftest.err |
| 24226 | | }; then |
| 24227 | | ac_header_preproc=yes |
| 24228 | | else |
| 24229 | | echo "$as_me: failed program was:" >&5 |
| 24230 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24231 | | |
| 24232 | | ac_header_preproc=no |
| 24233 | | fi |
| 24234 | | |
| 24235 | | rm -f conftest.err conftest.$ac_ext |
| 24236 | | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24237 | | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 24238 | | |
| 24239 | | # So? What about this header? |
| 24240 | | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 24241 | | yes:no: ) |
| 24242 | | { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24243 | | echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24244 | | { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5 |
| 24245 | | echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;} |
| 24246 | | ac_header_preproc=yes |
| 24247 | | ;; |
| 24248 | | no:yes:* ) |
| 24249 | | { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5 |
| 24250 | | echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;} |
| 24251 | | { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5 |
| 24252 | | echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;} |
| 24253 | | { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5 |
| 24254 | | echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;} |
| 24255 | | { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 24256 | | echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24257 | | { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5 |
| 24258 | | echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;} |
| 24259 | | { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5 |
| 24260 | | echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;} |
| 24261 | | |
| 24262 | | ;; |
| 24263 | | esac |
| 24264 | | { echo "$as_me:$LINENO: checking for pthread.h" >&5 |
| 24265 | | echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } |
| 24266 | | if test "${ac_cv_header_pthread_h+set}" = set; then |
| 24267 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24268 | | else |
| 24269 | | ac_cv_header_pthread_h=$ac_header_preproc |
| 24270 | | fi |
| 24271 | | { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 |
| 24272 | | echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } |
| 24273 | | |
| 24274 | | fi |
| 24275 | | if test $ac_cv_header_pthread_h = yes; then |
| 24276 | | gl_have_pthread_h=yes |
| 24277 | | else |
| 24278 | | gl_have_pthread_h=no |
| 24279 | | fi |
| 24280 | | |
| 24281 | | |
| 24282 | | CPPFLAGS="$gl_save_CPPFLAGS" |
| 24283 | | if test "$gl_have_pthread_h" = yes; then |
| 24284 | | # Other possible tests: |
| 24285 | | # -lpthreads (FSU threads, PCthreads) |
| 24286 | | # -lgthreads |
| 24287 | | case "$host_os" in |
| 24288 | | osf*) |
| 24289 | | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it |
| 24290 | | # groks <pthread.h>. cc also understands the flag -pthread, but |
| 24291 | | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, |
| 24292 | | # 2. putting a flag into CPPFLAGS that has an effect on the linker |
| 24293 | | # causes the AC_TRY_LINK test below to succeed unexpectedly, |
| 24294 | | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. |
| 24295 | | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
| 24296 | | ;; |
| 24297 | | esac |
| 24298 | | gl_have_pthread= |
| 24299 | | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist |
| 24300 | | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but |
| 24301 | | # the second one only in libpthread, and lock.c needs it. |
| 24302 | | cat >conftest.$ac_ext <<_ACEOF |
| 24303 | | /* confdefs.h. */ |
| 24304 | | _ACEOF |
| 24305 | | cat confdefs.h >>conftest.$ac_ext |
| 24306 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24307 | | /* end confdefs.h. */ |
| 24308 | | #include <pthread.h> |
| 24309 | | int |
| 24310 | | main () |
| 24311 | | { |
| 24312 | | pthread_mutex_lock((pthread_mutex_t*)0); |
| 24313 | | pthread_mutexattr_init((pthread_mutexattr_t*)0); |
| 24314 | | ; |
| 24315 | | return 0; |
| 24316 | | } |
| 24317 | | _ACEOF |
| 24318 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24319 | | if { (ac_try="$ac_link" |
| 24320 | | case "(($ac_try" in |
| 24321 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24322 | | *) ac_try_echo=$ac_try;; |
| 24323 | | esac |
| 24324 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24325 | | (eval "$ac_link") 2>conftest.er1 |
| 24326 | | ac_status=$? |
| 24327 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24328 | | rm -f conftest.er1 |
| 24329 | | cat conftest.err >&5 |
| 24330 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24331 | | (exit $ac_status); } && { |
| 24332 | | test -z "$ac_c_werror_flag" || |
| 24333 | | test ! -s conftest.err |
| 24334 | | } && test -s conftest$ac_exeext && |
| 24335 | | $as_test_x conftest$ac_exeext; then |
| 24336 | | gl_have_pthread=yes |
| 24337 | | else |
| 24338 | | echo "$as_me: failed program was:" >&5 |
| 24339 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24340 | | |
| 24341 | | |
| 24342 | | fi |
| 24343 | | |
| 24344 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24345 | | conftest$ac_exeext conftest.$ac_ext |
| 24346 | | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
| 24347 | | # since it is defined as a macro on OSF/1.) |
| 24348 | | if test -n "$gl_have_pthread"; then |
| 24349 | | # The program links fine without libpthread. But it may actually |
| 24350 | | # need to link with libpthread in order to create multiple threads. |
| 24351 | | { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5 |
| 24352 | | echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; } |
| 24353 | | if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then |
| 24354 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24355 | | else |
| 24356 | | ac_check_lib_save_LIBS=$LIBS |
| 24357 | | LIBS="-lpthread $LIBS" |
| 24358 | | cat >conftest.$ac_ext <<_ACEOF |
| 24359 | | /* confdefs.h. */ |
| 24360 | | _ACEOF |
| 24361 | | cat confdefs.h >>conftest.$ac_ext |
| 24362 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24363 | | /* end confdefs.h. */ |
| 24364 | | |
| 24365 | | /* Override any GCC internal prototype to avoid an error. |
| 24366 | | Use char because int might match the return type of a GCC |
| 24367 | | builtin and then its argument prototype would still apply. */ |
| 24368 | | #ifdef __cplusplus |
| 24369 | | extern "C" |
| 24370 | | #endif |
| 24371 | | char pthread_kill (); |
| 24372 | | int |
| 24373 | | main () |
| 24374 | | { |
| 24375 | | return pthread_kill (); |
| 24376 | | ; |
| 24377 | | return 0; |
| 24378 | | } |
| 24379 | | _ACEOF |
| 24380 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24381 | | if { (ac_try="$ac_link" |
| 24382 | | case "(($ac_try" in |
| 24383 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24384 | | *) ac_try_echo=$ac_try;; |
| 24385 | | esac |
| 24386 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24387 | | (eval "$ac_link") 2>conftest.er1 |
| 24388 | | ac_status=$? |
| 24389 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24390 | | rm -f conftest.er1 |
| 24391 | | cat conftest.err >&5 |
| 24392 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24393 | | (exit $ac_status); } && { |
| 24394 | | test -z "$ac_c_werror_flag" || |
| 24395 | | test ! -s conftest.err |
| 24396 | | } && test -s conftest$ac_exeext && |
| 24397 | | $as_test_x conftest$ac_exeext; then |
| 24398 | | ac_cv_lib_pthread_pthread_kill=yes |
| 24399 | | else |
| 24400 | | echo "$as_me: failed program was:" >&5 |
| 24401 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24402 | | |
| 24403 | | ac_cv_lib_pthread_pthread_kill=no |
| 24404 | | fi |
| 24405 | | |
| 24406 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24407 | | conftest$ac_exeext conftest.$ac_ext |
| 24408 | | LIBS=$ac_check_lib_save_LIBS |
| 24409 | | fi |
| 24410 | | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 24411 | | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 24412 | | if test $ac_cv_lib_pthread_pthread_kill = yes; then |
| 24413 | | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 24414 | | # On Solaris and HP-UX, most pthread functions exist also in libc. |
| 24415 | | # Therefore pthread_in_use() needs to actually try to create a |
| 24416 | | # thread: pthread_create from libc will fail, whereas |
| 24417 | | # pthread_create will actually create a thread. |
| 24418 | | case "$host_os" in |
| 24419 | | solaris* | hpux*) |
| 24420 | | |
| 24421 | | cat >>confdefs.h <<\_ACEOF |
| 24422 | | #define PTHREAD_IN_USE_DETECTION_HARD 1 |
| 24423 | | _ACEOF |
| 24424 | | |
| 24425 | | esac |
| 24426 | | |
| 24427 | | fi |
| 24428 | | |
| 24429 | | else |
| 24430 | | # Some library is needed. Try libpthread and libc_r. |
| 24431 | | { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5 |
| 24432 | | echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; } |
| 24433 | | if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then |
| 24434 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24435 | | else |
| 24436 | | ac_check_lib_save_LIBS=$LIBS |
| 24437 | | LIBS="-lpthread $LIBS" |
| 24438 | | cat >conftest.$ac_ext <<_ACEOF |
| 24439 | | /* confdefs.h. */ |
| 24440 | | _ACEOF |
| 24441 | | cat confdefs.h >>conftest.$ac_ext |
| 24442 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24443 | | /* end confdefs.h. */ |
| 24444 | | |
| 24445 | | /* Override any GCC internal prototype to avoid an error. |
| 24446 | | Use char because int might match the return type of a GCC |
| 24447 | | builtin and then its argument prototype would still apply. */ |
| 24448 | | #ifdef __cplusplus |
| 24449 | | extern "C" |
| 24450 | | #endif |
| 24451 | | char pthread_kill (); |
| 24452 | | int |
| 24453 | | main () |
| 24454 | | { |
| 24455 | | return pthread_kill (); |
| 24456 | | ; |
| 24457 | | return 0; |
| 24458 | | } |
| 24459 | | _ACEOF |
| 24460 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24461 | | if { (ac_try="$ac_link" |
| 24462 | | case "(($ac_try" in |
| 24463 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24464 | | *) ac_try_echo=$ac_try;; |
| 24465 | | esac |
| 24466 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24467 | | (eval "$ac_link") 2>conftest.er1 |
| 24468 | | ac_status=$? |
| 24469 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24470 | | rm -f conftest.er1 |
| 24471 | | cat conftest.err >&5 |
| 24472 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24473 | | (exit $ac_status); } && { |
| 24474 | | test -z "$ac_c_werror_flag" || |
| 24475 | | test ! -s conftest.err |
| 24476 | | } && test -s conftest$ac_exeext && |
| 24477 | | $as_test_x conftest$ac_exeext; then |
| 24478 | | ac_cv_lib_pthread_pthread_kill=yes |
| 24479 | | else |
| 24480 | | echo "$as_me: failed program was:" >&5 |
| 24481 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24482 | | |
| 24483 | | ac_cv_lib_pthread_pthread_kill=no |
| 24484 | | fi |
| 24485 | | |
| 24486 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24487 | | conftest$ac_exeext conftest.$ac_ext |
| 24488 | | LIBS=$ac_check_lib_save_LIBS |
| 24489 | | fi |
| 24490 | | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 24491 | | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 24492 | | if test $ac_cv_lib_pthread_pthread_kill = yes; then |
| 24493 | | gl_have_pthread=yes |
| 24494 | | LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread |
| 24495 | | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 24496 | | fi |
| 24497 | | |
| 24498 | | if test -z "$gl_have_pthread"; then |
| 24499 | | # For FreeBSD 4. |
| 24500 | | { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5 |
| 24501 | | echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; } |
| 24502 | | if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then |
| 24503 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24504 | | else |
| 24505 | | ac_check_lib_save_LIBS=$LIBS |
| 24506 | | LIBS="-lc_r $LIBS" |
| 24507 | | cat >conftest.$ac_ext <<_ACEOF |
| 24508 | | /* confdefs.h. */ |
| 24509 | | _ACEOF |
| 24510 | | cat confdefs.h >>conftest.$ac_ext |
| 24511 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24512 | | /* end confdefs.h. */ |
| 24513 | | |
| 24514 | | /* Override any GCC internal prototype to avoid an error. |
| 24515 | | Use char because int might match the return type of a GCC |
| 24516 | | builtin and then its argument prototype would still apply. */ |
| 24517 | | #ifdef __cplusplus |
| 24518 | | extern "C" |
| 24519 | | #endif |
| 24520 | | char pthread_kill (); |
| 24521 | | int |
| 24522 | | main () |
| 24523 | | { |
| 24524 | | return pthread_kill (); |
| 24525 | | ; |
| 24526 | | return 0; |
| 24527 | | } |
| 24528 | | _ACEOF |
| 24529 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24530 | | if { (ac_try="$ac_link" |
| 24531 | | case "(($ac_try" in |
| 24532 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24533 | | *) ac_try_echo=$ac_try;; |
| 24534 | | esac |
| 24535 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24536 | | (eval "$ac_link") 2>conftest.er1 |
| 24537 | | ac_status=$? |
| 24538 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24539 | | rm -f conftest.er1 |
| 24540 | | cat conftest.err >&5 |
| 24541 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24542 | | (exit $ac_status); } && { |
| 24543 | | test -z "$ac_c_werror_flag" || |
| 24544 | | test ! -s conftest.err |
| 24545 | | } && test -s conftest$ac_exeext && |
| 24546 | | $as_test_x conftest$ac_exeext; then |
| 24547 | | ac_cv_lib_c_r_pthread_kill=yes |
| 24548 | | else |
| 24549 | | echo "$as_me: failed program was:" >&5 |
| 24550 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24551 | | |
| 24552 | | ac_cv_lib_c_r_pthread_kill=no |
| 24553 | | fi |
| 24554 | | |
| 24555 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24556 | | conftest$ac_exeext conftest.$ac_ext |
| 24557 | | LIBS=$ac_check_lib_save_LIBS |
| 24558 | | fi |
| 24559 | | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5 |
| 24560 | | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; } |
| 24561 | | if test $ac_cv_lib_c_r_pthread_kill = yes; then |
| 24562 | | gl_have_pthread=yes |
| 24563 | | LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r |
| 24564 | | LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r |
| 24565 | | fi |
| 24566 | | |
| 24567 | | fi |
| 24568 | | fi |
| 24569 | | if test -n "$gl_have_pthread"; then |
| 24570 | | gl_threads_api=posix |
| 24571 | | |
| 24572 | | cat >>confdefs.h <<\_ACEOF |
| 24573 | | #define USE_POSIX_THREADS 1 |
| 24574 | | _ACEOF |
| 24575 | | |
| 24576 | | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 24577 | | if test $gl_have_weak = yes; then |
| 24578 | | |
| 24579 | | cat >>confdefs.h <<\_ACEOF |
| 24580 | | #define USE_POSIX_THREADS_WEAK 1 |
| 24581 | | _ACEOF |
| 24582 | | |
| 24583 | | LIBTHREAD= |
| 24584 | | LTLIBTHREAD= |
| 24585 | | fi |
| 24586 | | fi |
| 24587 | | # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the |
| 24588 | | # pthread_rwlock_* functions. |
| 24589 | | { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 |
| 24590 | | echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; } |
| 24591 | | if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then |
| 24592 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24593 | | else |
| 24594 | | cat >conftest.$ac_ext <<_ACEOF |
| 24595 | | /* confdefs.h. */ |
| 24596 | | _ACEOF |
| 24597 | | cat confdefs.h >>conftest.$ac_ext |
| 24598 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24599 | | /* end confdefs.h. */ |
| 24600 | | #include <pthread.h> |
| 24601 | | |
| 24602 | | typedef pthread_rwlock_t ac__type_new_; |
| 24603 | | int |
| 24604 | | main () |
| 24605 | | { |
| 24606 | | if ((ac__type_new_ *) 0) |
| 24607 | | return 0; |
| 24608 | | if (sizeof (ac__type_new_)) |
| 24609 | | return 0; |
| 24610 | | ; |
| 24611 | | return 0; |
| 24612 | | } |
| 24613 | | _ACEOF |
| 24614 | | rm -f conftest.$ac_objext |
| 24615 | | if { (ac_try="$ac_compile" |
| 24616 | | case "(($ac_try" in |
| 24617 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24618 | | *) ac_try_echo=$ac_try;; |
| 24619 | | esac |
| 24620 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24621 | | (eval "$ac_compile") 2>conftest.er1 |
| 24622 | | ac_status=$? |
| 24623 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24624 | | rm -f conftest.er1 |
| 24625 | | cat conftest.err >&5 |
| 24626 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24627 | | (exit $ac_status); } && { |
| 24628 | | test -z "$ac_c_werror_flag" || |
| 24629 | | test ! -s conftest.err |
| 24630 | | } && test -s conftest.$ac_objext; then |
| 24631 | | ac_cv_type_pthread_rwlock_t=yes |
| 24632 | | else |
| 24633 | | echo "$as_me: failed program was:" >&5 |
| 24634 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24635 | | |
| 24636 | | ac_cv_type_pthread_rwlock_t=no |
| 24637 | | fi |
| 24638 | | |
| 24639 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24640 | | fi |
| 24641 | | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 |
| 24642 | | echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; } |
| 24643 | | if test $ac_cv_type_pthread_rwlock_t = yes; then |
| 24644 | | |
| 24645 | | cat >>confdefs.h <<\_ACEOF |
| 24646 | | #define HAVE_PTHREAD_RWLOCK 1 |
| 24647 | | _ACEOF |
| 24648 | | |
| 24649 | | fi |
| 24650 | | |
| 24651 | | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. |
| 24652 | | cat >conftest.$ac_ext <<_ACEOF |
| 24653 | | /* confdefs.h. */ |
| 24654 | | _ACEOF |
| 24655 | | cat confdefs.h >>conftest.$ac_ext |
| 24656 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24657 | | /* end confdefs.h. */ |
| 24658 | | #include <pthread.h> |
| 24659 | | int |
| 24660 | | main () |
| 24661 | | { |
| 24662 | | #if __FreeBSD__ == 4 |
| 24663 | | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." |
| 24664 | | #else |
| 24665 | | int x = (int)PTHREAD_MUTEX_RECURSIVE; |
| 24666 | | #endif |
| 24667 | | ; |
| 24668 | | return 0; |
| 24669 | | } |
| 24670 | | _ACEOF |
| 24671 | | rm -f conftest.$ac_objext |
| 24672 | | if { (ac_try="$ac_compile" |
| 24673 | | case "(($ac_try" in |
| 24674 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24675 | | *) ac_try_echo=$ac_try;; |
| 24676 | | esac |
| 24677 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24678 | | (eval "$ac_compile") 2>conftest.er1 |
| 24679 | | ac_status=$? |
| 24680 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24681 | | rm -f conftest.er1 |
| 24682 | | cat conftest.err >&5 |
| 24683 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24684 | | (exit $ac_status); } && { |
| 24685 | | test -z "$ac_c_werror_flag" || |
| 24686 | | test ! -s conftest.err |
| 24687 | | } && test -s conftest.$ac_objext; then |
| 24688 | | |
| 24689 | | cat >>confdefs.h <<\_ACEOF |
| 24690 | | #define HAVE_PTHREAD_MUTEX_RECURSIVE 1 |
| 24691 | | _ACEOF |
| 24692 | | |
| 24693 | | else |
| 24694 | | echo "$as_me: failed program was:" >&5 |
| 24695 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24696 | | |
| 24697 | | |
| 24698 | | fi |
| 24699 | | |
| 24700 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24701 | | # Some systems optimize for single-threaded programs by default, and |
| 24702 | | # need special flags to disable these optimizations. For example, the |
| 24703 | | # definition of 'errno' in <errno.h>. |
| 24704 | | case "$host_os" in |
| 24705 | | aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; |
| 24706 | | solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; |
| 24707 | | esac |
| 24708 | | fi |
| 24709 | | fi |
| 24710 | | fi |
| 24711 | | if test -z "$gl_have_pthread"; then |
| 24712 | | if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then |
| 24713 | | gl_have_solaristhread= |
| 24714 | | gl_save_LIBS="$LIBS" |
| 24715 | | LIBS="$LIBS -lthread" |
| 24716 | | cat >conftest.$ac_ext <<_ACEOF |
| 24717 | | /* confdefs.h. */ |
| 24718 | | _ACEOF |
| 24719 | | cat confdefs.h >>conftest.$ac_ext |
| 24720 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24721 | | /* end confdefs.h. */ |
| 24722 | | #include <thread.h> |
| 24723 | | #include <synch.h> |
| 24724 | | int |
| 24725 | | main () |
| 24726 | | { |
| 24727 | | thr_self(); |
| 24728 | | ; |
| 24729 | | return 0; |
| 24730 | | } |
| 24731 | | _ACEOF |
| 24732 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24733 | | if { (ac_try="$ac_link" |
| 24734 | | case "(($ac_try" in |
| 24735 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24736 | | *) ac_try_echo=$ac_try;; |
| 24737 | | esac |
| 24738 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24739 | | (eval "$ac_link") 2>conftest.er1 |
| 24740 | | ac_status=$? |
| 24741 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24742 | | rm -f conftest.er1 |
| 24743 | | cat conftest.err >&5 |
| 24744 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24745 | | (exit $ac_status); } && { |
| 24746 | | test -z "$ac_c_werror_flag" || |
| 24747 | | test ! -s conftest.err |
| 24748 | | } && test -s conftest$ac_exeext && |
| 24749 | | $as_test_x conftest$ac_exeext; then |
| 24750 | | gl_have_solaristhread=yes |
| 24751 | | else |
| 24752 | | echo "$as_me: failed program was:" >&5 |
| 24753 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24754 | | |
| 24755 | | |
| 24756 | | fi |
| 24757 | | |
| 24758 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24759 | | conftest$ac_exeext conftest.$ac_ext |
| 24760 | | LIBS="$gl_save_LIBS" |
| 24761 | | if test -n "$gl_have_solaristhread"; then |
| 24762 | | gl_threads_api=solaris |
| 24763 | | LIBTHREAD=-lthread |
| 24764 | | LTLIBTHREAD=-lthread |
| 24765 | | LIBMULTITHREAD="$LIBTHREAD" |
| 24766 | | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 24767 | | |
| 24768 | | cat >>confdefs.h <<\_ACEOF |
| 24769 | | #define USE_SOLARIS_THREADS 1 |
| 24770 | | _ACEOF |
| 24771 | | |
| 24772 | | if test $gl_have_weak = yes; then |
| 24773 | | |
| 24774 | | cat >>confdefs.h <<\_ACEOF |
| 24775 | | #define USE_SOLARIS_THREADS_WEAK 1 |
| 24776 | | _ACEOF |
| 24777 | | |
| 24778 | | LIBTHREAD= |
| 24779 | | LTLIBTHREAD= |
| 24780 | | fi |
| 24781 | | fi |
| 24782 | | fi |
| 24783 | | fi |
| 24784 | | if test "$gl_use_threads" = pth; then |
| 24785 | | gl_save_CPPFLAGS="$CPPFLAGS" |
| 24786 | | |
| 24787 | | |
| 24788 | | |
| 24789 | | |
| 24790 | | |
| 24791 | | { echo "$as_me:$LINENO: checking how to link with libpth" >&5 |
| 24792 | | echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; } |
| 24793 | | if test "${ac_cv_libpth_libs+set}" = set; then |
| 24794 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24795 | | else |
| 24796 | | |
| 24797 | | |
| 24798 | | |
| 24799 | | |
| 24800 | | use_additional=yes |
| 24801 | | |
| 24802 | | acl_save_prefix="$prefix" |
| 24803 | | prefix="$acl_final_prefix" |
| 24804 | | acl_save_exec_prefix="$exec_prefix" |
| 24805 | | exec_prefix="$acl_final_exec_prefix" |
| 24806 | | |
| 24807 | | eval additional_includedir=\"$includedir\" |
| 24808 | | eval additional_libdir=\"$libdir\" |
| 24809 | | |
| 24810 | | exec_prefix="$acl_save_exec_prefix" |
| 24811 | | prefix="$acl_save_prefix" |
| 24812 | | |
| 24813 | | |
| 24814 | | # Check whether --with-libpth-prefix was given. |
| 24815 | | if test "${with_libpth_prefix+set}" = set; then |
| 24816 | | withval=$with_libpth_prefix; |
| 24817 | | if test "X$withval" = "Xno"; then |
| 24818 | | use_additional=no |
| 24819 | | else |
| 24820 | | if test "X$withval" = "X"; then |
| 24821 | | |
| 24822 | | acl_save_prefix="$prefix" |
| 24823 | | prefix="$acl_final_prefix" |
| 24824 | | acl_save_exec_prefix="$exec_prefix" |
| 24825 | | exec_prefix="$acl_final_exec_prefix" |
| 24826 | | |
| 24827 | | eval additional_includedir=\"$includedir\" |
| 24828 | | eval additional_libdir=\"$libdir\" |
| 24829 | | |
| 24830 | | exec_prefix="$acl_save_exec_prefix" |
| 24831 | | prefix="$acl_save_prefix" |
| 24832 | | |
| 24833 | | else |
| 24834 | | additional_includedir="$withval/include" |
| 24835 | | additional_libdir="$withval/$acl_libdirstem" |
| 24836 | | fi |
| 24837 | | fi |
| 24838 | | |
| 24839 | | fi |
| 24840 | | |
| 24841 | | LIBPTH= |
| 24842 | | LTLIBPTH= |
| 24843 | | INCPTH= |
| 24844 | | rpathdirs= |
| 24845 | | ltrpathdirs= |
| 24846 | | names_already_handled= |
| 24847 | | names_next_round='pth ' |
| 24848 | | while test -n "$names_next_round"; do |
| 24849 | | names_this_round="$names_next_round" |
| 24850 | | names_next_round= |
| 24851 | | for name in $names_this_round; do |
| 24852 | | already_handled= |
| 24853 | | for n in $names_already_handled; do |
| 24854 | | if test "$n" = "$name"; then |
| 24855 | | already_handled=yes |
| 24856 | | break |
| 24857 | | fi |
| 24858 | | done |
| 24859 | | if test -z "$already_handled"; then |
| 24860 | | names_already_handled="$names_already_handled $name" |
| 24861 | | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 24862 | | eval value=\"\$HAVE_LIB$uppername\" |
| 24863 | | if test -n "$value"; then |
| 24864 | | if test "$value" = yes; then |
| 24865 | | eval value=\"\$LIB$uppername\" |
| 24866 | | test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" |
| 24867 | | eval value=\"\$LTLIB$uppername\" |
| 24868 | | test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" |
| 24869 | | else |
| 24870 | | : |
| 24871 | | fi |
| 24872 | | else |
| 24873 | | found_dir= |
| 24874 | | found_la= |
| 24875 | | found_so= |
| 24876 | | found_a= |
| 24877 | | if test $use_additional = yes; then |
| 24878 | | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 24879 | | found_dir="$additional_libdir" |
| 24880 | | found_so="$additional_libdir/lib$name.$shlibext" |
| 24881 | | if test -f "$additional_libdir/lib$name.la"; then |
| 24882 | | found_la="$additional_libdir/lib$name.la" |
| 24883 | | fi |
| 24884 | | else |
| 24885 | | if test -f "$additional_libdir/lib$name.$libext"; then |
| 24886 | | found_dir="$additional_libdir" |
| 24887 | | found_a="$additional_libdir/lib$name.$libext" |
| 24888 | | if test -f "$additional_libdir/lib$name.la"; then |
| 24889 | | found_la="$additional_libdir/lib$name.la" |
| 24890 | | fi |
| 24891 | | fi |
| 24892 | | fi |
| 24893 | | fi |
| 24894 | | if test "X$found_dir" = "X"; then |
| 24895 | | for x in $LDFLAGS $LTLIBPTH; do |
| 24896 | | |
| 24897 | | acl_save_prefix="$prefix" |
| 24898 | | prefix="$acl_final_prefix" |
| 24899 | | acl_save_exec_prefix="$exec_prefix" |
| 24900 | | exec_prefix="$acl_final_exec_prefix" |
| 24901 | | eval x=\"$x\" |
| 24902 | | exec_prefix="$acl_save_exec_prefix" |
| 24903 | | prefix="$acl_save_prefix" |
| 24904 | | |
| 24905 | | case "$x" in |
| 24906 | | -L*) |
| 24907 | | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 24908 | | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 24909 | | found_dir="$dir" |
| 24910 | | found_so="$dir/lib$name.$shlibext" |
| 24911 | | if test -f "$dir/lib$name.la"; then |
| 24912 | | found_la="$dir/lib$name.la" |
| 24913 | | fi |
| 24914 | | else |
| 24915 | | if test -f "$dir/lib$name.$libext"; then |
| 24916 | | found_dir="$dir" |
| 24917 | | found_a="$dir/lib$name.$libext" |
| 24918 | | if test -f "$dir/lib$name.la"; then |
| 24919 | | found_la="$dir/lib$name.la" |
| 24920 | | fi |
| 24921 | | fi |
| 24922 | | fi |
| 24923 | | ;; |
| 24924 | | esac |
| 24925 | | if test "X$found_dir" != "X"; then |
| 24926 | | break |
| 24927 | | fi |
| 24928 | | done |
| 24929 | | fi |
| 24930 | | if test "X$found_dir" != "X"; then |
| 24931 | | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" |
| 24932 | | if test "X$found_so" != "X"; then |
| 24933 | | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then |
| 24934 | | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 24935 | | else |
| 24936 | | haveit= |
| 24937 | | for x in $ltrpathdirs; do |
| 24938 | | if test "X$x" = "X$found_dir"; then |
| 24939 | | haveit=yes |
| 24940 | | break |
| 24941 | | fi |
| 24942 | | done |
| 24943 | | if test -z "$haveit"; then |
| 24944 | | ltrpathdirs="$ltrpathdirs $found_dir" |
| 24945 | | fi |
| 24946 | | if test "$hardcode_direct" = yes; then |
| 24947 | | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 24948 | | else |
| 24949 | | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 24950 | | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 24951 | | haveit= |
| 24952 | | for x in $rpathdirs; do |
| 24953 | | if test "X$x" = "X$found_dir"; then |
| 24954 | | haveit=yes |
| 24955 | | break |
| 24956 | | fi |
| 24957 | | done |
| 24958 | | if test -z "$haveit"; then |
| 24959 | | rpathdirs="$rpathdirs $found_dir" |
| 24960 | | fi |
| 24961 | | else |
| 24962 | | haveit= |
| 24963 | | for x in $LDFLAGS $LIBPTH; do |
| 24964 | | |
| 24965 | | acl_save_prefix="$prefix" |
| 24966 | | prefix="$acl_final_prefix" |
| 24967 | | acl_save_exec_prefix="$exec_prefix" |
| 24968 | | exec_prefix="$acl_final_exec_prefix" |
| 24969 | | eval x=\"$x\" |
| 24970 | | exec_prefix="$acl_save_exec_prefix" |
| 24971 | | prefix="$acl_save_prefix" |
| 24972 | | |
| 24973 | | if test "X$x" = "X-L$found_dir"; then |
| 24974 | | haveit=yes |
| 24975 | | break |
| 24976 | | fi |
| 24977 | | done |
| 24978 | | if test -z "$haveit"; then |
| 24979 | | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" |
| 24980 | | fi |
| 24981 | | if test "$hardcode_minus_L" != no; then |
| 24982 | | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 24983 | | else |
| 24984 | | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 24985 | | fi |
| 24986 | | fi |
| 24987 | | fi |
| 24988 | | fi |
| 24989 | | else |
| 24990 | | if test "X$found_a" != "X"; then |
| 24991 | | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" |
| 24992 | | else |
| 24993 | | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" |
| 24994 | | fi |
| 24995 | | fi |
| 24996 | | additional_includedir= |
| 24997 | | case "$found_dir" in |
| 24998 | | */$acl_libdirstem | */$acl_libdirstem/) |
| 24999 | | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 25000 | | additional_includedir="$basedir/include" |
| 25001 | | ;; |
| 25002 | | esac |
| 25003 | | if test "X$additional_includedir" != "X"; then |
| 25004 | | if test "X$additional_includedir" != "X/usr/include"; then |
| 25005 | | haveit= |
| 25006 | | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 25007 | | if test -n "$GCC"; then |
| 25008 | | case $host_os in |
| 25009 | | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 25010 | | esac |
| 25011 | | fi |
| 25012 | | fi |
| 25013 | | if test -z "$haveit"; then |
| 25014 | | for x in $CPPFLAGS $INCPTH; do |
| 25015 | | |
| 25016 | | acl_save_prefix="$prefix" |
| 25017 | | prefix="$acl_final_prefix" |
| 25018 | | acl_save_exec_prefix="$exec_prefix" |
| 25019 | | exec_prefix="$acl_final_exec_prefix" |
| 25020 | | eval x=\"$x\" |
| 25021 | | exec_prefix="$acl_save_exec_prefix" |
| 25022 | | prefix="$acl_save_prefix" |
| 25023 | | |
| 25024 | | if test "X$x" = "X-I$additional_includedir"; then |
| 25025 | | haveit=yes |
| 25026 | | break |
| 25027 | | fi |
| 25028 | | done |
| 25029 | | if test -z "$haveit"; then |
| 25030 | | if test -d "$additional_includedir"; then |
| 25031 | | INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" |
| 25032 | | fi |
| 25033 | | fi |
| 25034 | | fi |
| 25035 | | fi |
| 25036 | | fi |
| 25037 | | if test -n "$found_la"; then |
| 25038 | | save_libdir="$libdir" |
| 25039 | | case "$found_la" in |
| 25040 | | */* | *\\*) . "$found_la" ;; |
| 25041 | | *) . "./$found_la" ;; |
| 25042 | | esac |
| 25043 | | libdir="$save_libdir" |
| 25044 | | for dep in $dependency_libs; do |
| 25045 | | case "$dep" in |
| 25046 | | -L*) |
| 25047 | | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 25048 | | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then |
| 25049 | | haveit= |
| 25050 | | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then |
| 25051 | | if test -n "$GCC"; then |
| 25052 | | case $host_os in |
| 25053 | | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 25054 | | esac |
| 25055 | | fi |
| 25056 | | fi |
| 25057 | | if test -z "$haveit"; then |
| 25058 | | haveit= |
| 25059 | | for x in $LDFLAGS $LIBPTH; do |
| 25060 | | |
| 25061 | | acl_save_prefix="$prefix" |
| 25062 | | prefix="$acl_final_prefix" |
| 25063 | | acl_save_exec_prefix="$exec_prefix" |
| 25064 | | exec_prefix="$acl_final_exec_prefix" |
| 25065 | | eval x=\"$x\" |
| 25066 | | exec_prefix="$acl_save_exec_prefix" |
| 25067 | | prefix="$acl_save_prefix" |
| 25068 | | |
| 25069 | | if test "X$x" = "X-L$additional_libdir"; then |
| 25070 | | haveit=yes |
| 25071 | | break |
| 25072 | | fi |
| 25073 | | done |
| 25074 | | if test -z "$haveit"; then |
| 25075 | | if test -d "$additional_libdir"; then |
| 25076 | | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" |
| 25077 | | fi |
| 25078 | | fi |
| 25079 | | haveit= |
| 25080 | | for x in $LDFLAGS $LTLIBPTH; do |
| 25081 | | |
| 25082 | | acl_save_prefix="$prefix" |
| 25083 | | prefix="$acl_final_prefix" |
| 25084 | | acl_save_exec_prefix="$exec_prefix" |
| 25085 | | exec_prefix="$acl_final_exec_prefix" |
| 25086 | | eval x=\"$x\" |
| 25087 | | exec_prefix="$acl_save_exec_prefix" |
| 25088 | | prefix="$acl_save_prefix" |
| 25089 | | |
| 25090 | | if test "X$x" = "X-L$additional_libdir"; then |
| 25091 | | haveit=yes |
| 25092 | | break |
| 25093 | | fi |
| 25094 | | done |
| 25095 | | if test -z "$haveit"; then |
| 25096 | | if test -d "$additional_libdir"; then |
| 25097 | | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" |
| 25098 | | fi |
| 25099 | | fi |
| 25100 | | fi |
| 25101 | | fi |
| 25102 | | ;; |
| 25103 | | -R*) |
| 25104 | | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 25105 | | if test "$enable_rpath" != no; then |
| 25106 | | haveit= |
| 25107 | | for x in $rpathdirs; do |
| 25108 | | if test "X$x" = "X$dir"; then |
| 25109 | | haveit=yes |
| 25110 | | break |
| 25111 | | fi |
| 25112 | | done |
| 25113 | | if test -z "$haveit"; then |
| 25114 | | rpathdirs="$rpathdirs $dir" |
| 25115 | | fi |
| 25116 | | haveit= |
| 25117 | | for x in $ltrpathdirs; do |
| 25118 | | if test "X$x" = "X$dir"; then |
| 25119 | | haveit=yes |
| 25120 | | break |
| 25121 | | fi |
| 25122 | | done |
| 25123 | | if test -z "$haveit"; then |
| 25124 | | ltrpathdirs="$ltrpathdirs $dir" |
| 25125 | | fi |
| 25126 | | fi |
| 25127 | | ;; |
| 25128 | | -l*) |
| 25129 | | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 25130 | | ;; |
| 25131 | | *.la) |
| 25132 | | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 25133 | | ;; |
| 25134 | | *) |
| 25135 | | LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" |
| 25136 | | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" |
| 25137 | | ;; |
| 25138 | | esac |
| 25139 | | done |
| 25140 | | fi |
| 25141 | | else |
| 25142 | | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 25143 | | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" |
| 25144 | | fi |
| 25145 | | fi |
| 25146 | | fi |
| 25147 | | done |
| 25148 | | done |
| 25149 | | if test "X$rpathdirs" != "X"; then |
| 25150 | | if test -n "$hardcode_libdir_separator"; then |
| 25151 | | alldirs= |
| 25152 | | for found_dir in $rpathdirs; do |
| 25153 | | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 25154 | | done |
| 25155 | | acl_save_libdir="$libdir" |
| 25156 | | libdir="$alldirs" |
| 25157 | | eval flag=\"$hardcode_libdir_flag_spec\" |
| 25158 | | libdir="$acl_save_libdir" |
| 25159 | | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 25160 | | else |
| 25161 | | for found_dir in $rpathdirs; do |
| 25162 | | acl_save_libdir="$libdir" |
| 25163 | | libdir="$found_dir" |
| 25164 | | eval flag=\"$hardcode_libdir_flag_spec\" |
| 25165 | | libdir="$acl_save_libdir" |
| 25166 | | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 25167 | | done |
| 25168 | | fi |
| 25169 | | fi |
| 25170 | | if test "X$ltrpathdirs" != "X"; then |
| 25171 | | for found_dir in $ltrpathdirs; do |
| 25172 | | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" |
| 25173 | | done |
| 25174 | | fi |
| 25175 | | |
| 25176 | | ac_cv_libpth_libs="$LIBPTH" |
| 25177 | | ac_cv_libpth_ltlibs="$LTLIBPTH" |
| 25178 | | ac_cv_libpth_cppflags="$INCPTH" |
| 25179 | | |
| 25180 | | fi |
| 25181 | | { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5 |
| 25182 | | echo "${ECHO_T}$ac_cv_libpth_libs" >&6; } |
| 25183 | | LIBPTH="$ac_cv_libpth_libs" |
| 25184 | | LTLIBPTH="$ac_cv_libpth_ltlibs" |
| 25185 | | INCPTH="$ac_cv_libpth_cppflags" |
| 25186 | | |
| 25187 | | for element in $INCPTH; do |
| 25188 | | haveit= |
| 25189 | | for x in $CPPFLAGS; do |
| 25190 | | |
| 25191 | | acl_save_prefix="$prefix" |
| 25192 | | prefix="$acl_final_prefix" |
| 25193 | | acl_save_exec_prefix="$exec_prefix" |
| 25194 | | exec_prefix="$acl_final_exec_prefix" |
| 25195 | | eval x=\"$x\" |
| 25196 | | exec_prefix="$acl_save_exec_prefix" |
| 25197 | | prefix="$acl_save_prefix" |
| 25198 | | |
| 25199 | | if test "X$x" = "X$element"; then |
| 25200 | | haveit=yes |
| 25201 | | break |
| 25202 | | fi |
| 25203 | | done |
| 25204 | | if test -z "$haveit"; then |
| 25205 | | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 25206 | | fi |
| 25207 | | done |
| 25208 | | |
| 25209 | | |
| 25210 | | |
| 25211 | | HAVE_LIBPTH=yes |
| 25212 | | |
| 25213 | | |
| 25214 | | |
| 25215 | | gl_have_pth= |
| 25216 | | gl_save_LIBS="$LIBS" |
| 25217 | | LIBS="$LIBS -lpth" |
| 25218 | | cat >conftest.$ac_ext <<_ACEOF |
| 25219 | | /* confdefs.h. */ |
| 25220 | | _ACEOF |
| 25221 | | cat confdefs.h >>conftest.$ac_ext |
| 25222 | | cat >>conftest.$ac_ext <<_ACEOF |
| 25223 | | /* end confdefs.h. */ |
| 25224 | | #include <pth.h> |
| 25225 | | int |
| 25226 | | main () |
| 25227 | | { |
| 25228 | | pth_self(); |
| 25229 | | ; |
| 25230 | | return 0; |
| 25231 | | } |
| 25232 | | _ACEOF |
| 25233 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25234 | | if { (ac_try="$ac_link" |
| 25235 | | case "(($ac_try" in |
| 25236 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25237 | | *) ac_try_echo=$ac_try;; |
| 25238 | | esac |
| 25239 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25240 | | (eval "$ac_link") 2>conftest.er1 |
| 25241 | | ac_status=$? |
| 25242 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 25243 | | rm -f conftest.er1 |
| 25244 | | cat conftest.err >&5 |
| 25245 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25246 | | (exit $ac_status); } && { |
| 25247 | | test -z "$ac_c_werror_flag" || |
| 25248 | | test ! -s conftest.err |
| 25249 | | } && test -s conftest$ac_exeext && |
| 25250 | | $as_test_x conftest$ac_exeext; then |
| 25251 | | gl_have_pth=yes |
| 25252 | | else |
| 25253 | | echo "$as_me: failed program was:" >&5 |
| 25254 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25255 | | |
| 25256 | | |
| 25257 | | fi |
| 25258 | | |
| 25259 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 25260 | | conftest$ac_exeext conftest.$ac_ext |
| 25261 | | LIBS="$gl_save_LIBS" |
| 25262 | | if test -n "$gl_have_pth"; then |
| 25263 | | gl_threads_api=pth |
| 25264 | | LIBTHREAD="$LIBPTH" |
| 25265 | | LTLIBTHREAD="$LTLIBPTH" |
| 25266 | | LIBMULTITHREAD="$LIBTHREAD" |
| 25267 | | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 25268 | | |
| 25269 | | cat >>confdefs.h <<\_ACEOF |
| 25270 | | #define USE_PTH_THREADS 1 |
| 25271 | | _ACEOF |
| 25272 | | |
| 25273 | | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 25274 | | if test $gl_have_weak = yes; then |
| 25275 | | |
| 25276 | | cat >>confdefs.h <<\_ACEOF |
| 25277 | | #define USE_PTH_THREADS_WEAK 1 |
| 25278 | | _ACEOF |
| 25279 | | |
| 25280 | | LIBTHREAD= |
| 25281 | | LTLIBTHREAD= |
| 25282 | | fi |
| 25283 | | fi |
| 25284 | | else |
| 25285 | | CPPFLAGS="$gl_save_CPPFLAGS" |
| 25286 | | fi |
| 25287 | | fi |
| 25288 | | if test -z "$gl_have_pthread"; then |
| 25289 | | if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then |
| 25290 | | if { case "$host_os" in |
| 25291 | | mingw*) true;; |
| 25292 | | *) false;; |
| 25293 | | esac |
| 25294 | | }; then |
| 25295 | | gl_threads_api=win32 |
| 25296 | | |
| 25297 | | cat >>confdefs.h <<\_ACEOF |
| 25298 | | #define USE_WIN32_THREADS 1 |
| 25299 | | _ACEOF |
| 25300 | | |
| 25301 | | fi |
| 25302 | | fi |
| 25303 | | fi |
| 25304 | | fi |
| 25305 | | { echo "$as_me:$LINENO: checking for multithread API to use" >&5 |
| 25306 | | echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; } |
| 25307 | | { echo "$as_me:$LINENO: result: $gl_threads_api" >&5 |
| 25308 | | echo "${ECHO_T}$gl_threads_api" >&6; } |
| 25309 | | |
| 25310 | | |
| 25311 | | |
| 25312 | | |
| 25313 | | |
| 25314 | | |
| 25315 | | |
| 25316 | | |
| 25317 | | |
| 25318 | | |
| 26301 | | if test "$am_cv_func_iconv" = yes; then |
| 26302 | | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 26303 | | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
| 26304 | | if test "${am_cv_proto_iconv+set}" = set; then |
| 26305 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26306 | | else |
| 26307 | | |
| 26308 | | cat >conftest.$ac_ext <<_ACEOF |
| 26309 | | /* confdefs.h. */ |
| 26310 | | _ACEOF |
| 26311 | | cat confdefs.h >>conftest.$ac_ext |
| 26312 | | cat >>conftest.$ac_ext <<_ACEOF |
| 26313 | | /* end confdefs.h. */ |
| 26314 | | |
| 26315 | | #include <stdlib.h> |
| 26316 | | #include <iconv.h> |
| 26317 | | extern |
| 26318 | | #ifdef __cplusplus |
| 26319 | | "C" |
| 26320 | | #endif |
| 26321 | | #if defined(__STDC__) || defined(__cplusplus) |
| 26322 | | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 26323 | | #else |
| 26324 | | size_t iconv(); |
| 26325 | | #endif |
| 26326 | | |
| 26327 | | int |
| 26328 | | main () |
| 26329 | | { |
| 26330 | | |
| 26331 | | ; |
| 26332 | | return 0; |
| 26333 | | } |
| 26334 | | _ACEOF |
| 26335 | | rm -f conftest.$ac_objext |
| 26336 | | if { (ac_try="$ac_compile" |
| 26337 | | case "(($ac_try" in |
| 26338 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26339 | | *) ac_try_echo=$ac_try;; |
| 26340 | | esac |
| 26341 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26342 | | (eval "$ac_compile") 2>conftest.er1 |
| 26343 | | ac_status=$? |
| 26344 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 26345 | | rm -f conftest.er1 |
| 26346 | | cat conftest.err >&5 |
| 26347 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26348 | | (exit $ac_status); } && { |
| 26349 | | test -z "$ac_c_werror_flag" || |
| 26350 | | test ! -s conftest.err |
| 26351 | | } && test -s conftest.$ac_objext; then |
| 26352 | | am_cv_proto_iconv_arg1="" |
| 26353 | | else |
| 26354 | | echo "$as_me: failed program was:" >&5 |
| 26355 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26356 | | |
| 26357 | | am_cv_proto_iconv_arg1="const" |
| 26358 | | fi |
| 26359 | | |
| 26360 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26361 | | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
| 26362 | | fi |
| 26363 | | |
| 26364 | | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
| 26365 | | { echo "$as_me:$LINENO: result: ${ac_t:- |
| 26366 | | }$am_cv_proto_iconv" >&5 |
| 26367 | | echo "${ECHO_T}${ac_t:- |
| 26368 | | }$am_cv_proto_iconv" >&6; } |
| 26369 | | |
| 26370 | | cat >>confdefs.h <<_ACEOF |
| 26371 | | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
| 26372 | | _ACEOF |
| 26373 | | |
| 26374 | | fi |
| 26375 | | |
| 26376 | | |
| 26377 | | { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5 |
| 26378 | | echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; } |
| 26379 | | if test "${gt_cv_nl_locale_name+set}" = set; then |
| 26380 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26381 | | else |
| 26382 | | cat >conftest.$ac_ext <<_ACEOF |
| 26383 | | /* confdefs.h. */ |
| 26384 | | _ACEOF |
| 26385 | | cat confdefs.h >>conftest.$ac_ext |
| 26386 | | cat >>conftest.$ac_ext <<_ACEOF |
| 26387 | | /* end confdefs.h. */ |
| 26388 | | #include <langinfo.h> |
| 26389 | | #include <locale.h> |
| 26390 | | int |
| 26391 | | main () |
| 26392 | | { |
| 26393 | | char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES)); |
| 26394 | | ; |
| 26395 | | return 0; |
| 26396 | | } |
| 26397 | | _ACEOF |
| 26398 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26399 | | if { (ac_try="$ac_link" |
| 26400 | | case "(($ac_try" in |
| 26401 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26402 | | *) ac_try_echo=$ac_try;; |
| 26403 | | esac |
| 26404 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26405 | | (eval "$ac_link") 2>conftest.er1 |
| 26406 | | ac_status=$? |
| 26407 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 26408 | | rm -f conftest.er1 |
| 26409 | | cat conftest.err >&5 |
| 26410 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26411 | | (exit $ac_status); } && { |
| 26412 | | test -z "$ac_c_werror_flag" || |
| 26413 | | test ! -s conftest.err |
| 26414 | | } && test -s conftest$ac_exeext && |
| 26415 | | $as_test_x conftest$ac_exeext; then |
| 26416 | | gt_cv_nl_locale_name=yes |
| 26417 | | else |
| 26418 | | echo "$as_me: failed program was:" >&5 |
| 26419 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26420 | | |
| 26421 | | gt_cv_nl_locale_name=no |
| 26422 | | fi |
| 26423 | | |
| 26424 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 26425 | | conftest$ac_exeext conftest.$ac_ext |
| 26426 | | |
| 26427 | | fi |
| 26428 | | { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5 |
| 26429 | | echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; } |
| 26430 | | if test $gt_cv_nl_locale_name = yes; then |
| 26431 | | |
| 26432 | | cat >>confdefs.h <<\_ACEOF |
| 26433 | | #define HAVE_NL_LOCALE_NAME 1 |
| 26434 | | _ACEOF |
| 26435 | | |
| 26436 | | fi |
| 26437 | | |
| 26438 | | for ac_prog in bison |
| 26439 | | do |
| 26440 | | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 26441 | | set dummy $ac_prog; ac_word=$2 |
| 26442 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26443 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 26444 | | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 26445 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26446 | | else |
| 26447 | | if test -n "$INTLBISON"; then |
| 26448 | | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 26449 | | else |
| 26450 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26451 | | for as_dir in $PATH |
| 26452 | | do |
| 26453 | | IFS=$as_save_IFS |
| 26454 | | test -z "$as_dir" && as_dir=. |
| 26455 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 26456 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 26457 | | ac_cv_prog_INTLBISON="$ac_prog" |
| 26458 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26459 | | break 2 |
| 26460 | | fi |
| 26461 | | done |
| 26462 | | done |
| 26463 | | IFS=$as_save_IFS |
| 26464 | | |
| 26465 | | fi |
| 26466 | | fi |
| 26467 | | INTLBISON=$ac_cv_prog_INTLBISON |
| 26468 | | if test -n "$INTLBISON"; then |
| 26469 | | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 26470 | | echo "${ECHO_T}$INTLBISON" >&6; } |
| 26471 | | else |
| 26472 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 26473 | | echo "${ECHO_T}no" >&6; } |
| 26474 | | fi |
| 26475 | | |
| 26476 | | |
| 26477 | | test -n "$INTLBISON" && break |
| 26478 | | done |
| 26479 | | |
| 26480 | | if test -z "$INTLBISON"; then |
| 26481 | | ac_verc_fail=yes |
| 26482 | | else |
| 26483 | | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 26484 | | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
| 26485 | | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 26486 | | case $ac_prog_version in |
| 26487 | | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 26488 | | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 26489 | | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 26490 | | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 26491 | | esac |
| 26492 | | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 26493 | | echo "${ECHO_T}$ac_prog_version" >&6; } |
| 26494 | | fi |
| 26495 | | if test $ac_verc_fail = yes; then |
| 26496 | | INTLBISON=: |
| 26497 | | fi |
| 26498 | | |
| 26499 | | |
| 26500 | | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 26501 | | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
| 26502 | | if test "${bh_cv_c_signed+set}" = set; then |
| 26503 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26504 | | else |
| 26505 | | cat >conftest.$ac_ext <<_ACEOF |
| 26506 | | /* confdefs.h. */ |
| 26507 | | _ACEOF |
| 26508 | | cat confdefs.h >>conftest.$ac_ext |
| 26509 | | cat >>conftest.$ac_ext <<_ACEOF |
| 26510 | | /* end confdefs.h. */ |
| 26511 | | |
| 26512 | | int |
| 26513 | | main () |
| 26514 | | { |
| 26515 | | signed char x; |
| 26516 | | ; |
| 26517 | | return 0; |
| 26518 | | } |
| 26519 | | _ACEOF |
| 26520 | | rm -f conftest.$ac_objext |
| 26521 | | if { (ac_try="$ac_compile" |
| 26522 | | case "(($ac_try" in |
| 26523 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26524 | | *) ac_try_echo=$ac_try;; |
| 26525 | | esac |
| 26526 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26527 | | (eval "$ac_compile") 2>conftest.er1 |
| 26528 | | ac_status=$? |
| 26529 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 26530 | | rm -f conftest.er1 |
| 26531 | | cat conftest.err >&5 |
| 26532 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26533 | | (exit $ac_status); } && { |
| 26534 | | test -z "$ac_c_werror_flag" || |
| 26535 | | test ! -s conftest.err |
| 26536 | | } && test -s conftest.$ac_objext; then |
| 26537 | | bh_cv_c_signed=yes |
| 26538 | | else |
| 26539 | | echo "$as_me: failed program was:" >&5 |
| 26540 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26541 | | |
| 26542 | | bh_cv_c_signed=no |
| 26543 | | fi |
| 26544 | | |
| 26545 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26546 | | fi |
| 26547 | | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 26548 | | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
| 26549 | | if test $bh_cv_c_signed = no; then |
| 26550 | | |
| 26551 | | cat >>confdefs.h <<\_ACEOF |
| 26552 | | #define signed |
| 26553 | | _ACEOF |
| 26554 | | |
| 26555 | | fi |
| 26556 | | |
| 26557 | | |
| 26558 | | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 26559 | | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 26560 | | if test "${ac_cv_type_long_long+set}" = set; then |
| 26561 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26562 | | else |
| 26563 | | cat >conftest.$ac_ext <<_ACEOF |
| 26564 | | /* confdefs.h. */ |
| 26565 | | _ACEOF |
| 26566 | | cat confdefs.h >>conftest.$ac_ext |
| 26567 | | cat >>conftest.$ac_ext <<_ACEOF |
| 26568 | | /* end confdefs.h. */ |
| 26569 | | long long ll = 1LL; int i = 63; |
| 26570 | | int |
| 26571 | | main () |
| 26572 | | { |
| 26573 | | long long llmax = (long long) -1; |
| 26574 | | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 26575 | | ; |
| 26576 | | return 0; |
| 26577 | | } |
| 26578 | | _ACEOF |
| 26579 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26580 | | if { (ac_try="$ac_link" |
| 26581 | | case "(($ac_try" in |
| 26582 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26583 | | *) ac_try_echo=$ac_try;; |
| 26584 | | esac |
| 26585 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26586 | | (eval "$ac_link") 2>conftest.er1 |
| 26587 | | ac_status=$? |
| 26588 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 26589 | | rm -f conftest.er1 |
| 26590 | | cat conftest.err >&5 |
| 26591 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26592 | | (exit $ac_status); } && { |
| 26593 | | test -z "$ac_c_werror_flag" || |
| 26594 | | test ! -s conftest.err |
| 26595 | | } && test -s conftest$ac_exeext && |
| 26596 | | $as_test_x conftest$ac_exeext; then |
| 26597 | | ac_cv_type_long_long=yes |
| 26598 | | else |
| 26599 | | echo "$as_me: failed program was:" >&5 |
| 26600 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26601 | | |
| 26602 | | ac_cv_type_long_long=no |
| 26603 | | fi |
| 26604 | | |
| 26605 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 26606 | | conftest$ac_exeext conftest.$ac_ext |
| 26607 | | fi |
| 26608 | | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 26609 | | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 26610 | | if test $ac_cv_type_long_long = yes; then |
| 26611 | | |
| 26612 | | cat >>confdefs.h <<\_ACEOF |
| 26613 | | #define HAVE_LONG_LONG 1 |
| 26614 | | _ACEOF |
| 26615 | | |
| 26616 | | fi |
| 26617 | | |
| 26618 | | |
| 26619 | | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 26620 | | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 26621 | | if test "${gt_cv_c_long_double+set}" = set; then |
| 26622 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26623 | | else |
| 26624 | | if test "$GCC" = yes; then |
| 26625 | | gt_cv_c_long_double=yes |
| 26626 | | else |
| 26627 | | cat >conftest.$ac_ext <<_ACEOF |
| 26628 | | /* confdefs.h. */ |
| 26629 | | _ACEOF |
| 26630 | | cat confdefs.h >>conftest.$ac_ext |
| 26631 | | cat >>conftest.$ac_ext <<_ACEOF |
| 26632 | | /* end confdefs.h. */ |
| 26633 | | |
| 26634 | | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 26635 | | long double foo = 0.0; |
| 26636 | | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 26637 | | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 26638 | | |
| 26639 | | int |
| 26640 | | main () |
| 26641 | | { |
| 26642 | | |
| 26643 | | ; |
| 26644 | | return 0; |
| 26645 | | } |
| 26646 | | _ACEOF |
| 26647 | | rm -f conftest.$ac_objext |
| 26648 | | if { (ac_try="$ac_compile" |
| 26649 | | case "(($ac_try" in |
| 26650 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26651 | | *) ac_try_echo=$ac_try;; |
| 26652 | | esac |
| 26653 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26654 | | (eval "$ac_compile") 2>conftest.er1 |
| 26655 | | ac_status=$? |
| 26656 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 26657 | | rm -f conftest.er1 |
| 26658 | | cat conftest.err >&5 |
| 26659 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26660 | | (exit $ac_status); } && { |
| 26661 | | test -z "$ac_c_werror_flag" || |
| 26662 | | test ! -s conftest.err |
| 26663 | | } && test -s conftest.$ac_objext; then |
| 26664 | | gt_cv_c_long_double=yes |
| 26665 | | else |
| 26666 | | echo "$as_me: failed program was:" >&5 |
| 26667 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26668 | | |
| 26669 | | gt_cv_c_long_double=no |
| 26670 | | fi |
| 26671 | | |
| 26672 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26673 | | fi |
| 26674 | | fi |
| 26675 | | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 26676 | | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
| 26677 | | if test $gt_cv_c_long_double = yes; then |
| 26678 | | |
| 26679 | | cat >>confdefs.h <<\_ACEOF |
| 26680 | | #define HAVE_LONG_DOUBLE 1 |
| 26681 | | _ACEOF |
| 26682 | | |
| 26683 | | fi |
| 26684 | | |
| 26685 | | |
| 26686 | | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 26687 | | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 26688 | | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 26689 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26690 | | else |
| 26691 | | cat >conftest.$ac_ext <<_ACEOF |
| 26692 | | /* confdefs.h. */ |
| 26693 | | _ACEOF |
| 26694 | | cat confdefs.h >>conftest.$ac_ext |
| 26695 | | cat >>conftest.$ac_ext <<_ACEOF |
| 26696 | | /* end confdefs.h. */ |
| 26697 | | #include <stddef.h> |
| 26698 | | wchar_t foo = (wchar_t)'\0'; |
| 26699 | | int |
| 26700 | | main () |
| 26701 | | { |
| 26702 | | |
| 26703 | | ; |
| 26704 | | return 0; |
| 26705 | | } |
| 26706 | | _ACEOF |
| 26707 | | rm -f conftest.$ac_objext |
| 26708 | | if { (ac_try="$ac_compile" |
| 26709 | | case "(($ac_try" in |
| 26710 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26711 | | *) ac_try_echo=$ac_try;; |
| 26712 | | esac |
| 26713 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26714 | | (eval "$ac_compile") 2>conftest.er1 |
| 26715 | | ac_status=$? |
| 26716 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 26717 | | rm -f conftest.er1 |
| 26718 | | cat conftest.err >&5 |
| 26719 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26720 | | (exit $ac_status); } && { |
| 26721 | | test -z "$ac_c_werror_flag" || |
| 26722 | | test ! -s conftest.err |
| 26723 | | } && test -s conftest.$ac_objext; then |
| 26724 | | gt_cv_c_wchar_t=yes |
| 26725 | | else |
| 26726 | | echo "$as_me: failed program was:" >&5 |
| 26727 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26728 | | |
| 26729 | | gt_cv_c_wchar_t=no |
| 26730 | | fi |
| 26731 | | |
| 26732 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26733 | | fi |
| 26734 | | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 26735 | | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
| 26736 | | if test $gt_cv_c_wchar_t = yes; then |
| 26737 | | |
| 26738 | | cat >>confdefs.h <<\_ACEOF |
| 26739 | | #define HAVE_WCHAR_T 1 |
| 26740 | | _ACEOF |
| 26741 | | |
| 26742 | | fi |
| 26743 | | |
| 26744 | | |
| 26745 | | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 26746 | | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
| 26747 | | if test "${gt_cv_c_wint_t+set}" = set; then |
| 26748 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26749 | | else |
| 26750 | | cat >conftest.$ac_ext <<_ACEOF |
| 26751 | | /* confdefs.h. */ |
| 26752 | | _ACEOF |
| 26753 | | cat confdefs.h >>conftest.$ac_ext |
| 26754 | | cat >>conftest.$ac_ext <<_ACEOF |
| 26755 | | /* end confdefs.h. */ |
| 26756 | | #include <wchar.h> |
| 26757 | | wint_t foo = (wchar_t)'\0'; |
| 26758 | | int |
| 26759 | | main () |
| 26760 | | { |
| 26761 | | |
| 26762 | | ; |
| 26763 | | return 0; |
| 26764 | | } |
| 26765 | | _ACEOF |
| 26766 | | rm -f conftest.$ac_objext |
| 26767 | | if { (ac_try="$ac_compile" |
| 26768 | | case "(($ac_try" in |
| 26769 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26770 | | *) ac_try_echo=$ac_try;; |
| 26771 | | esac |
| 26772 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26773 | | (eval "$ac_compile") 2>conftest.er1 |
| 26774 | | ac_status=$? |
| 26775 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 26776 | | rm -f conftest.er1 |
| 26777 | | cat conftest.err >&5 |
| 26778 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26779 | | (exit $ac_status); } && { |
| 26780 | | test -z "$ac_c_werror_flag" || |
| 26781 | | test ! -s conftest.err |
| 26782 | | } && test -s conftest.$ac_objext; then |
| 26783 | | gt_cv_c_wint_t=yes |
| 26784 | | else |
| 26785 | | echo "$as_me: failed program was:" >&5 |
| 26786 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26787 | | |
| 26788 | | gt_cv_c_wint_t=no |
| 26789 | | fi |
| 26790 | | |
| 26791 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26792 | | fi |
| 26793 | | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 26794 | | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
| 26795 | | if test $gt_cv_c_wint_t = yes; then |
| 26796 | | |
| 26797 | | cat >>confdefs.h <<\_ACEOF |
| 26798 | | #define HAVE_WINT_T 1 |
| 26799 | | _ACEOF |
| 26800 | | |
| 26801 | | fi |
| 26802 | | |
| 26803 | | |
| 26804 | | |
| 26805 | | |
| 26806 | | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 26807 | | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
| 26808 | | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 26809 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26810 | | else |
| 26811 | | cat >conftest.$ac_ext <<_ACEOF |
| 26812 | | /* confdefs.h. */ |
| 26813 | | _ACEOF |
| 26814 | | cat confdefs.h >>conftest.$ac_ext |
| 26815 | | cat >>conftest.$ac_ext <<_ACEOF |
| 26816 | | /* end confdefs.h. */ |
| 26817 | | |
| 26818 | | #include <stddef.h> |
| 26819 | | #include <stdlib.h> |
| 26820 | | #if HAVE_STDINT_H_WITH_UINTMAX |
| 26821 | | #include <stdint.h> |
| 26822 | | #endif |
| 26823 | | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 26824 | | #include <inttypes.h> |
| 26825 | | #endif |
| 26826 | | |
| 26827 | | int |
| 26828 | | main () |
| 26829 | | { |
| 26830 | | intmax_t x = -1; |
| 26831 | | ; |
| 26832 | | return 0; |
| 26833 | | } |
| 26834 | | _ACEOF |
| 26835 | | rm -f conftest.$ac_objext |
| 26836 | | if { (ac_try="$ac_compile" |
| 26837 | | case "(($ac_try" in |
| 26838 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26839 | | *) ac_try_echo=$ac_try;; |
| 26840 | | esac |
| 26841 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26842 | | (eval "$ac_compile") 2>conftest.er1 |
| 26843 | | ac_status=$? |
| 26844 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 26845 | | rm -f conftest.er1 |
| 26846 | | cat conftest.err >&5 |
| 26847 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26848 | | (exit $ac_status); } && { |
| 26849 | | test -z "$ac_c_werror_flag" || |
| 26850 | | test ! -s conftest.err |
| 26851 | | } && test -s conftest.$ac_objext; then |
| 26852 | | gt_cv_c_intmax_t=yes |
| 26853 | | else |
| 26854 | | echo "$as_me: failed program was:" >&5 |
| 26855 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26856 | | |
| 26857 | | gt_cv_c_intmax_t=no |
| 26858 | | fi |
| 26859 | | |
| 26860 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26861 | | fi |
| 26862 | | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 26863 | | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
| 26864 | | if test $gt_cv_c_intmax_t = yes; then |
| 26865 | | |
| 26866 | | cat >>confdefs.h <<\_ACEOF |
| 26867 | | #define HAVE_INTMAX_T 1 |
| 26868 | | _ACEOF |
| 26869 | | |
| 26870 | | fi |
| 26871 | | |
| 26872 | | |
| 26873 | | |
| 26874 | | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 26875 | | echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } |
| 26876 | | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 26877 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26878 | | else |
| 26879 | | |
| 26880 | | if test "$cross_compiling" = yes; then |
| 26881 | | |
| 26882 | | cat >conftest.$ac_ext <<_ACEOF |
| 26883 | | /* confdefs.h. */ |
| 26884 | | _ACEOF |
| 26885 | | cat confdefs.h >>conftest.$ac_ext |
| 26886 | | cat >>conftest.$ac_ext <<_ACEOF |
| 26887 | | /* end confdefs.h. */ |
| 26888 | | |
| 26889 | | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 26890 | | notposix |
| 26891 | | #endif |
| 26892 | | |
| 26893 | | _ACEOF |
| 26894 | | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26895 | | $EGREP "notposix" >/dev/null 2>&1; then |
| 26896 | | gt_cv_func_printf_posix="guessing no" |
| 26897 | | else |
| 26898 | | gt_cv_func_printf_posix="guessing yes" |
| 26899 | | fi |
| 26900 | | rm -f conftest* |
| 26901 | | |
| 26902 | | |
| 26903 | | else |
| 26904 | | cat >conftest.$ac_ext <<_ACEOF |
| 26905 | | /* confdefs.h. */ |
| 26906 | | _ACEOF |
| 26907 | | cat confdefs.h >>conftest.$ac_ext |
| 26908 | | cat >>conftest.$ac_ext <<_ACEOF |
| 26909 | | /* end confdefs.h. */ |
| 26910 | | |
| 26911 | | #include <stdio.h> |
| 26912 | | #include <string.h> |
| 26913 | | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 26914 | | dollar expansion (possibly an autoconf bug). */ |
| 26915 | | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 26916 | | static char buf[100]; |
| 26917 | | int main () |
| 26918 | | { |
| 26919 | | sprintf (buf, format, 33, 55); |
| 26920 | | return (strcmp (buf, "55 33") != 0); |
| 26921 | | } |
| 26922 | | _ACEOF |
| 26923 | | rm -f conftest$ac_exeext |
| 26924 | | if { (ac_try="$ac_link" |
| 26925 | | case "(($ac_try" in |
| 26926 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26927 | | *) ac_try_echo=$ac_try;; |
| 26928 | | esac |
| 26929 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26930 | | (eval "$ac_link") 2>&5 |
| 26931 | | ac_status=$? |
| 26932 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26933 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26934 | | { (case "(($ac_try" in |
| 26935 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26936 | | *) ac_try_echo=$ac_try;; |
| 26937 | | esac |
| 26938 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26939 | | (eval "$ac_try") 2>&5 |
| 26940 | | ac_status=$? |
| 26941 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26942 | | (exit $ac_status); }; }; then |
| 26943 | | gt_cv_func_printf_posix=yes |
| 26944 | | else |
| 26945 | | echo "$as_me: program exited with status $ac_status" >&5 |
| 26946 | | echo "$as_me: failed program was:" >&5 |
| 26947 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26948 | | |
| 26949 | | ( exit $ac_status ) |
| 26950 | | gt_cv_func_printf_posix=no |
| 26951 | | fi |
| 26952 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 26953 | | fi |
| 26954 | | |
| 26955 | | |
| 26956 | | |
| 26957 | | fi |
| 26958 | | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 26959 | | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
| 26960 | | case $gt_cv_func_printf_posix in |
| 26961 | | *yes) |
| 26962 | | |
| 26963 | | cat >>confdefs.h <<\_ACEOF |
| 26964 | | #define HAVE_POSIX_PRINTF 1 |
| 26965 | | _ACEOF |
| 26966 | | |
| 26967 | | ;; |
| 26968 | | esac |
| 26969 | | |
| 26970 | | |
| 26971 | | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 26972 | | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } |
| 26973 | | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 26974 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26975 | | else |
| 26976 | | cat >conftest.$ac_ext <<_ACEOF |
| 26977 | | /* confdefs.h. */ |
| 26978 | | _ACEOF |
| 26979 | | cat confdefs.h >>conftest.$ac_ext |
| 26980 | | cat >>conftest.$ac_ext <<_ACEOF |
| 26981 | | /* end confdefs.h. */ |
| 26982 | | |
| 26983 | | #include <features.h> |
| 26984 | | #ifdef __GNU_LIBRARY__ |
| 26985 | | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 26986 | | Lucky GNU user |
| 26987 | | #endif |
| 26988 | | #endif |
| 26989 | | |
| 26990 | | _ACEOF |
| 26991 | | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26992 | | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
| 26993 | | ac_cv_gnu_library_2_1=yes |
| 26994 | | else |
| 26995 | | ac_cv_gnu_library_2_1=no |
| 26996 | | fi |
| 26997 | | rm -f conftest* |
| 26998 | | |
| 26999 | | |
| 27000 | | |
| 27001 | | fi |
| 27002 | | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 27003 | | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
| 27004 | | |
| 27005 | | GLIBC21="$ac_cv_gnu_library_2_1" |
| 27006 | | |
| 27007 | | |
| 27008 | | |
| 27009 | | |
| 27010 | | for ac_header in stdint.h |
| 27011 | | do |
| 27012 | | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 27013 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27014 | | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27015 | | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27016 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27017 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27018 | | fi |
| 27019 | | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27020 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27021 | | echo "${ECHO_T}$ac_res" >&6; } |
| 27022 | | else |
| 27023 | | # Is the header compilable? |
| 27024 | | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27025 | | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 27026 | | cat >conftest.$ac_ext <<_ACEOF |
| 27027 | | /* confdefs.h. */ |
| 27028 | | _ACEOF |
| 27029 | | cat confdefs.h >>conftest.$ac_ext |
| 27030 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27031 | | /* end confdefs.h. */ |
| 27032 | | $ac_includes_default |
| 27033 | | #include <$ac_header> |
| 27034 | | _ACEOF |
| 27035 | | rm -f conftest.$ac_objext |
| 27036 | | if { (ac_try="$ac_compile" |
| 27037 | | case "(($ac_try" in |
| 27038 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27039 | | *) ac_try_echo=$ac_try;; |
| 27040 | | esac |
| 27041 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27042 | | (eval "$ac_compile") 2>conftest.er1 |
| 27043 | | ac_status=$? |
| 27044 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27045 | | rm -f conftest.er1 |
| 27046 | | cat conftest.err >&5 |
| 27047 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27048 | | (exit $ac_status); } && { |
| 27049 | | test -z "$ac_c_werror_flag" || |
| 27050 | | test ! -s conftest.err |
| 27051 | | } && test -s conftest.$ac_objext; then |
| 27052 | | ac_header_compiler=yes |
| 27053 | | else |
| 27054 | | echo "$as_me: failed program was:" >&5 |
| 27055 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27056 | | |
| 27057 | | ac_header_compiler=no |
| 27058 | | fi |
| 27059 | | |
| 27060 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27061 | | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27062 | | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 27063 | | |
| 27064 | | # Is the header present? |
| 27065 | | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27066 | | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 27067 | | cat >conftest.$ac_ext <<_ACEOF |
| 27068 | | /* confdefs.h. */ |
| 27069 | | _ACEOF |
| 27070 | | cat confdefs.h >>conftest.$ac_ext |
| 27071 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27072 | | /* end confdefs.h. */ |
| 27073 | | #include <$ac_header> |
| 27074 | | _ACEOF |
| 27075 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 27076 | | case "(($ac_try" in |
| 27077 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27078 | | *) ac_try_echo=$ac_try;; |
| 27079 | | esac |
| 27080 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27081 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 27082 | | ac_status=$? |
| 27083 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27084 | | rm -f conftest.er1 |
| 27085 | | cat conftest.err >&5 |
| 27086 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27087 | | (exit $ac_status); } >/dev/null && { |
| 27088 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 27089 | | test ! -s conftest.err |
| 27090 | | }; then |
| 27091 | | ac_header_preproc=yes |
| 27092 | | else |
| 27093 | | echo "$as_me: failed program was:" >&5 |
| 27094 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27095 | | |
| 27096 | | ac_header_preproc=no |
| 27097 | | fi |
| 27098 | | |
| 27099 | | rm -f conftest.err conftest.$ac_ext |
| 27100 | | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27101 | | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 27102 | | |
| 27103 | | # So? What about this header? |
| 27104 | | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27105 | | yes:no: ) |
| 27106 | | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27107 | | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27108 | | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27109 | | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27110 | | ac_header_preproc=yes |
| 27111 | | ;; |
| 27112 | | no:yes:* ) |
| 27113 | | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27114 | | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27115 | | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27116 | | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27117 | | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27118 | | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27119 | | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27120 | | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27121 | | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27122 | | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27123 | | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27124 | | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 27125 | | |
| 27126 | | ;; |
| 27127 | | esac |
| 27128 | | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27129 | | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27130 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27131 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27132 | | else |
| 27133 | | eval "$as_ac_Header=\$ac_header_preproc" |
| 27134 | | fi |
| 27135 | | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27136 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27137 | | echo "${ECHO_T}$ac_res" >&6; } |
| 27138 | | |
| 27139 | | fi |
| 27140 | | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27141 | | cat >>confdefs.h <<_ACEOF |
| 27142 | | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 27143 | | _ACEOF |
| 27144 | | |
| 27145 | | fi |
| 27146 | | |
| 27147 | | done |
| 27148 | | |
| 27149 | | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 27150 | | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
| 27151 | | result= |
| 27152 | | cat >conftest.$ac_ext <<_ACEOF |
| 27153 | | /* confdefs.h. */ |
| 27154 | | _ACEOF |
| 27155 | | cat confdefs.h >>conftest.$ac_ext |
| 27156 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27157 | | /* end confdefs.h. */ |
| 27158 | | |
| 27159 | | #include <limits.h> |
| 27160 | | #if HAVE_STDINT_H |
| 27161 | | #include <stdint.h> |
| 27162 | | #endif |
| 27163 | | #ifdef SIZE_MAX |
| 27164 | | Found it |
| 27165 | | #endif |
| 27166 | | |
| 27167 | | _ACEOF |
| 27168 | | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 27169 | | $EGREP "Found it" >/dev/null 2>&1; then |
| 27170 | | result=yes |
| 27171 | | fi |
| 27172 | | rm -f conftest* |
| 27173 | | |
| 27174 | | if test -z "$result"; then |
| 27175 | | if test "$cross_compiling" = yes; then |
| 27176 | | # Depending upon the size, compute the lo and hi bounds. |
| 27177 | | cat >conftest.$ac_ext <<_ACEOF |
| 27178 | | /* confdefs.h. */ |
| 27179 | | _ACEOF |
| 27180 | | cat confdefs.h >>conftest.$ac_ext |
| 27181 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27182 | | /* end confdefs.h. */ |
| 27183 | | #include <stddef.h> |
| 27184 | | #include <limits.h> |
| 27185 | | int |
| 27186 | | main () |
| 27187 | | { |
| 27188 | | static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)]; |
| 27189 | | test_array [0] = 0 |
| 27190 | | |
| 27191 | | ; |
| 27192 | | return 0; |
| 27193 | | } |
| 27194 | | _ACEOF |
| 27195 | | rm -f conftest.$ac_objext |
| 27196 | | if { (ac_try="$ac_compile" |
| 27197 | | case "(($ac_try" in |
| 27198 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27199 | | *) ac_try_echo=$ac_try;; |
| 27200 | | esac |
| 27201 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27202 | | (eval "$ac_compile") 2>conftest.er1 |
| 27203 | | ac_status=$? |
| 27204 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27205 | | rm -f conftest.er1 |
| 27206 | | cat conftest.err >&5 |
| 27207 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27208 | | (exit $ac_status); } && { |
| 27209 | | test -z "$ac_c_werror_flag" || |
| 27210 | | test ! -s conftest.err |
| 27211 | | } && test -s conftest.$ac_objext; then |
| 27212 | | ac_lo=0 ac_mid=0 |
| 27213 | | while :; do |
| 27214 | | cat >conftest.$ac_ext <<_ACEOF |
| 27215 | | /* confdefs.h. */ |
| 27216 | | _ACEOF |
| 27217 | | cat confdefs.h >>conftest.$ac_ext |
| 27218 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27219 | | /* end confdefs.h. */ |
| 27220 | | #include <stddef.h> |
| 27221 | | #include <limits.h> |
| 27222 | | int |
| 27223 | | main () |
| 27224 | | { |
| 27225 | | static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; |
| 27226 | | test_array [0] = 0 |
| 27227 | | |
| 27228 | | ; |
| 27229 | | return 0; |
| 27230 | | } |
| 27231 | | _ACEOF |
| 27232 | | rm -f conftest.$ac_objext |
| 27233 | | if { (ac_try="$ac_compile" |
| 27234 | | case "(($ac_try" in |
| 27235 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27236 | | *) ac_try_echo=$ac_try;; |
| 27237 | | esac |
| 27238 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27239 | | (eval "$ac_compile") 2>conftest.er1 |
| 27240 | | ac_status=$? |
| 27241 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27242 | | rm -f conftest.er1 |
| 27243 | | cat conftest.err >&5 |
| 27244 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27245 | | (exit $ac_status); } && { |
| 27246 | | test -z "$ac_c_werror_flag" || |
| 27247 | | test ! -s conftest.err |
| 27248 | | } && test -s conftest.$ac_objext; then |
| 27249 | | ac_hi=$ac_mid; break |
| 27250 | | else |
| 27251 | | echo "$as_me: failed program was:" >&5 |
| 27252 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27253 | | |
| 27254 | | ac_lo=`expr $ac_mid + 1` |
| 27255 | | if test $ac_lo -le $ac_mid; then |
| 27256 | | ac_lo= ac_hi= |
| 27257 | | break |
| 27258 | | fi |
| 27259 | | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 27260 | | fi |
| 27261 | | |
| 27262 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27263 | | done |
| 27264 | | else |
| 27265 | | echo "$as_me: failed program was:" >&5 |
| 27266 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27267 | | |
| 27268 | | cat >conftest.$ac_ext <<_ACEOF |
| 27269 | | /* confdefs.h. */ |
| 27270 | | _ACEOF |
| 27271 | | cat confdefs.h >>conftest.$ac_ext |
| 27272 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27273 | | /* end confdefs.h. */ |
| 27274 | | #include <stddef.h> |
| 27275 | | #include <limits.h> |
| 27276 | | int |
| 27277 | | main () |
| 27278 | | { |
| 27279 | | static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)]; |
| 27280 | | test_array [0] = 0 |
| 27281 | | |
| 27282 | | ; |
| 27283 | | return 0; |
| 27284 | | } |
| 27285 | | _ACEOF |
| 27286 | | rm -f conftest.$ac_objext |
| 27287 | | if { (ac_try="$ac_compile" |
| 27288 | | case "(($ac_try" in |
| 27289 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27290 | | *) ac_try_echo=$ac_try;; |
| 27291 | | esac |
| 27292 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27293 | | (eval "$ac_compile") 2>conftest.er1 |
| 27294 | | ac_status=$? |
| 27295 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27296 | | rm -f conftest.er1 |
| 27297 | | cat conftest.err >&5 |
| 27298 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27299 | | (exit $ac_status); } && { |
| 27300 | | test -z "$ac_c_werror_flag" || |
| 27301 | | test ! -s conftest.err |
| 27302 | | } && test -s conftest.$ac_objext; then |
| 27303 | | ac_hi=-1 ac_mid=-1 |
| 27304 | | while :; do |
| 27305 | | cat >conftest.$ac_ext <<_ACEOF |
| 27306 | | /* confdefs.h. */ |
| 27307 | | _ACEOF |
| 27308 | | cat confdefs.h >>conftest.$ac_ext |
| 27309 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27310 | | /* end confdefs.h. */ |
| 27311 | | #include <stddef.h> |
| 27312 | | #include <limits.h> |
| 27313 | | int |
| 27314 | | main () |
| 27315 | | { |
| 27316 | | static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)]; |
| 27317 | | test_array [0] = 0 |
| 27318 | | |
| 27319 | | ; |
| 27320 | | return 0; |
| 27321 | | } |
| 27322 | | _ACEOF |
| 27323 | | rm -f conftest.$ac_objext |
| 27324 | | if { (ac_try="$ac_compile" |
| 27325 | | case "(($ac_try" in |
| 27326 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27327 | | *) ac_try_echo=$ac_try;; |
| 27328 | | esac |
| 27329 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27330 | | (eval "$ac_compile") 2>conftest.er1 |
| 27331 | | ac_status=$? |
| 27332 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27333 | | rm -f conftest.er1 |
| 27334 | | cat conftest.err >&5 |
| 27335 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27336 | | (exit $ac_status); } && { |
| 27337 | | test -z "$ac_c_werror_flag" || |
| 27338 | | test ! -s conftest.err |
| 27339 | | } && test -s conftest.$ac_objext; then |
| 27340 | | ac_lo=$ac_mid; break |
| 27341 | | else |
| 27342 | | echo "$as_me: failed program was:" >&5 |
| 27343 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27344 | | |
| 27345 | | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 27346 | | if test $ac_mid -le $ac_hi; then |
| 27347 | | ac_lo= ac_hi= |
| 27348 | | break |
| 27349 | | fi |
| 27350 | | ac_mid=`expr 2 '*' $ac_mid` |
| 27351 | | fi |
| 27352 | | |
| 27353 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27354 | | done |
| 27355 | | else |
| 27356 | | echo "$as_me: failed program was:" >&5 |
| 27357 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27358 | | |
| 27359 | | ac_lo= ac_hi= |
| 27360 | | fi |
| 27361 | | |
| 27362 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27363 | | fi |
| 27364 | | |
| 27365 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27366 | | # Binary search between lo and hi bounds. |
| 27367 | | while test "x$ac_lo" != "x$ac_hi"; do |
| 27368 | | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 27369 | | cat >conftest.$ac_ext <<_ACEOF |
| 27370 | | /* confdefs.h. */ |
| 27371 | | _ACEOF |
| 27372 | | cat confdefs.h >>conftest.$ac_ext |
| 27373 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27374 | | /* end confdefs.h. */ |
| 27375 | | #include <stddef.h> |
| 27376 | | #include <limits.h> |
| 27377 | | int |
| 27378 | | main () |
| 27379 | | { |
| 27380 | | static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; |
| 27381 | | test_array [0] = 0 |
| 27382 | | |
| 27383 | | ; |
| 27384 | | return 0; |
| 27385 | | } |
| 27386 | | _ACEOF |
| 27387 | | rm -f conftest.$ac_objext |
| 27388 | | if { (ac_try="$ac_compile" |
| 27389 | | case "(($ac_try" in |
| 27390 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27391 | | *) ac_try_echo=$ac_try;; |
| 27392 | | esac |
| 27393 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27394 | | (eval "$ac_compile") 2>conftest.er1 |
| 27395 | | ac_status=$? |
| 27396 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27397 | | rm -f conftest.er1 |
| 27398 | | cat conftest.err >&5 |
| 27399 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27400 | | (exit $ac_status); } && { |
| 27401 | | test -z "$ac_c_werror_flag" || |
| 27402 | | test ! -s conftest.err |
| 27403 | | } && test -s conftest.$ac_objext; then |
| 27404 | | ac_hi=$ac_mid |
| 27405 | | else |
| 27406 | | echo "$as_me: failed program was:" >&5 |
| 27407 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27408 | | |
| 27409 | | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 27410 | | fi |
| 27411 | | |
| 27412 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27413 | | done |
| 27414 | | case $ac_lo in |
| 27415 | | ?*) size_t_bits_minus_1=$ac_lo;; |
| 27416 | | '') size_t_bits_minus_1= ;; |
| 27417 | | esac |
| 27418 | | else |
| 27419 | | cat >conftest.$ac_ext <<_ACEOF |
| 27420 | | /* confdefs.h. */ |
| 27421 | | _ACEOF |
| 27422 | | cat confdefs.h >>conftest.$ac_ext |
| 27423 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27424 | | /* end confdefs.h. */ |
| 27425 | | #include <stddef.h> |
| 27426 | | #include <limits.h> |
| 27427 | | static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; } |
| 27428 | | static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; } |
| 27429 | | #include <stdio.h> |
| 27430 | | #include <stdlib.h> |
| 27431 | | int |
| 27432 | | main () |
| 27433 | | { |
| 27434 | | |
| 27435 | | FILE *f = fopen ("conftest.val", "w"); |
| 27436 | | if (! f) |
| 27437 | | return 1; |
| 27438 | | if ((sizeof (size_t) * CHAR_BIT - 1) < 0) |
| 27439 | | { |
| 27440 | | long int i = longval (); |
| 27441 | | if (i != (sizeof (size_t) * CHAR_BIT - 1)) |
| 27442 | | return 1; |
| 27443 | | fprintf (f, "%ld\n", i); |
| 27444 | | } |
| 27445 | | else |
| 27446 | | { |
| 27447 | | unsigned long int i = ulongval (); |
| 27448 | | if (i != (sizeof (size_t) * CHAR_BIT - 1)) |
| 27449 | | return 1; |
| 27450 | | fprintf (f, "%lu\n", i); |
| 27451 | | } |
| 27452 | | return ferror (f) || fclose (f) != 0; |
| 27453 | | |
| 27454 | | ; |
| 27455 | | return 0; |
| 27456 | | } |
| 27457 | | _ACEOF |
| 27458 | | rm -f conftest$ac_exeext |
| 27459 | | if { (ac_try="$ac_link" |
| 27460 | | case "(($ac_try" in |
| 27461 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27462 | | *) ac_try_echo=$ac_try;; |
| 27463 | | esac |
| 27464 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27465 | | (eval "$ac_link") 2>&5 |
| 27466 | | ac_status=$? |
| 27467 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27468 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27469 | | { (case "(($ac_try" in |
| 27470 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27471 | | *) ac_try_echo=$ac_try;; |
| 27472 | | esac |
| 27473 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27474 | | (eval "$ac_try") 2>&5 |
| 27475 | | ac_status=$? |
| 27476 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27477 | | (exit $ac_status); }; }; then |
| 27478 | | size_t_bits_minus_1=`cat conftest.val` |
| 27479 | | else |
| 27480 | | echo "$as_me: program exited with status $ac_status" >&5 |
| 27481 | | echo "$as_me: failed program was:" >&5 |
| 27482 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27483 | | |
| 27484 | | ( exit $ac_status ) |
| 27485 | | size_t_bits_minus_1= |
| 27486 | | fi |
| 27487 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27488 | | fi |
| 27489 | | rm -f conftest.val |
| 27490 | | |
| 27491 | | if test "$cross_compiling" = yes; then |
| 27492 | | # Depending upon the size, compute the lo and hi bounds. |
| 27493 | | cat >conftest.$ac_ext <<_ACEOF |
| 27494 | | /* confdefs.h. */ |
| 27495 | | _ACEOF |
| 27496 | | cat confdefs.h >>conftest.$ac_ext |
| 27497 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27498 | | /* end confdefs.h. */ |
| 27499 | | #include <stddef.h> |
| 27500 | | int |
| 27501 | | main () |
| 27502 | | { |
| 27503 | | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 27504 | | test_array [0] = 0 |
| 27505 | | |
| 27506 | | ; |
| 27507 | | return 0; |
| 27508 | | } |
| 27509 | | _ACEOF |
| 27510 | | rm -f conftest.$ac_objext |
| 27511 | | if { (ac_try="$ac_compile" |
| 27512 | | case "(($ac_try" in |
| 27513 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27514 | | *) ac_try_echo=$ac_try;; |
| 27515 | | esac |
| 27516 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27517 | | (eval "$ac_compile") 2>conftest.er1 |
| 27518 | | ac_status=$? |
| 27519 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27520 | | rm -f conftest.er1 |
| 27521 | | cat conftest.err >&5 |
| 27522 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27523 | | (exit $ac_status); } && { |
| 27524 | | test -z "$ac_c_werror_flag" || |
| 27525 | | test ! -s conftest.err |
| 27526 | | } && test -s conftest.$ac_objext; then |
| 27527 | | ac_lo=0 ac_mid=0 |
| 27528 | | while :; do |
| 27529 | | cat >conftest.$ac_ext <<_ACEOF |
| 27530 | | /* confdefs.h. */ |
| 27531 | | _ACEOF |
| 27532 | | cat confdefs.h >>conftest.$ac_ext |
| 27533 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27534 | | /* end confdefs.h. */ |
| 27535 | | #include <stddef.h> |
| 27536 | | int |
| 27537 | | main () |
| 27538 | | { |
| 27539 | | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 27540 | | test_array [0] = 0 |
| 27541 | | |
| 27542 | | ; |
| 27543 | | return 0; |
| 27544 | | } |
| 27545 | | _ACEOF |
| 27546 | | rm -f conftest.$ac_objext |
| 27547 | | if { (ac_try="$ac_compile" |
| 27548 | | case "(($ac_try" in |
| 27549 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27550 | | *) ac_try_echo=$ac_try;; |
| 27551 | | esac |
| 27552 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27553 | | (eval "$ac_compile") 2>conftest.er1 |
| 27554 | | ac_status=$? |
| 27555 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27556 | | rm -f conftest.er1 |
| 27557 | | cat conftest.err >&5 |
| 27558 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27559 | | (exit $ac_status); } && { |
| 27560 | | test -z "$ac_c_werror_flag" || |
| 27561 | | test ! -s conftest.err |
| 27562 | | } && test -s conftest.$ac_objext; then |
| 27563 | | ac_hi=$ac_mid; break |
| 27564 | | else |
| 27565 | | echo "$as_me: failed program was:" >&5 |
| 27566 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27567 | | |
| 27568 | | ac_lo=`expr $ac_mid + 1` |
| 27569 | | if test $ac_lo -le $ac_mid; then |
| 27570 | | ac_lo= ac_hi= |
| 27571 | | break |
| 27572 | | fi |
| 27573 | | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 27574 | | fi |
| 27575 | | |
| 27576 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27577 | | done |
| 27578 | | else |
| 27579 | | echo "$as_me: failed program was:" >&5 |
| 27580 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27581 | | |
| 27582 | | cat >conftest.$ac_ext <<_ACEOF |
| 27583 | | /* confdefs.h. */ |
| 27584 | | _ACEOF |
| 27585 | | cat confdefs.h >>conftest.$ac_ext |
| 27586 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27587 | | /* end confdefs.h. */ |
| 27588 | | #include <stddef.h> |
| 27589 | | int |
| 27590 | | main () |
| 27591 | | { |
| 27592 | | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 27593 | | test_array [0] = 0 |
| 27594 | | |
| 27595 | | ; |
| 27596 | | return 0; |
| 27597 | | } |
| 27598 | | _ACEOF |
| 27599 | | rm -f conftest.$ac_objext |
| 27600 | | if { (ac_try="$ac_compile" |
| 27601 | | case "(($ac_try" in |
| 27602 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27603 | | *) ac_try_echo=$ac_try;; |
| 27604 | | esac |
| 27605 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27606 | | (eval "$ac_compile") 2>conftest.er1 |
| 27607 | | ac_status=$? |
| 27608 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27609 | | rm -f conftest.er1 |
| 27610 | | cat conftest.err >&5 |
| 27611 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27612 | | (exit $ac_status); } && { |
| 27613 | | test -z "$ac_c_werror_flag" || |
| 27614 | | test ! -s conftest.err |
| 27615 | | } && test -s conftest.$ac_objext; then |
| 27616 | | ac_hi=-1 ac_mid=-1 |
| 27617 | | while :; do |
| 27618 | | cat >conftest.$ac_ext <<_ACEOF |
| 27619 | | /* confdefs.h. */ |
| 27620 | | _ACEOF |
| 27621 | | cat confdefs.h >>conftest.$ac_ext |
| 27622 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27623 | | /* end confdefs.h. */ |
| 27624 | | #include <stddef.h> |
| 27625 | | int |
| 27626 | | main () |
| 27627 | | { |
| 27628 | | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 27629 | | test_array [0] = 0 |
| 27630 | | |
| 27631 | | ; |
| 27632 | | return 0; |
| 27633 | | } |
| 27634 | | _ACEOF |
| 27635 | | rm -f conftest.$ac_objext |
| 27636 | | if { (ac_try="$ac_compile" |
| 27637 | | case "(($ac_try" in |
| 27638 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27639 | | *) ac_try_echo=$ac_try;; |
| 27640 | | esac |
| 27641 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27642 | | (eval "$ac_compile") 2>conftest.er1 |
| 27643 | | ac_status=$? |
| 27644 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27645 | | rm -f conftest.er1 |
| 27646 | | cat conftest.err >&5 |
| 27647 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27648 | | (exit $ac_status); } && { |
| 27649 | | test -z "$ac_c_werror_flag" || |
| 27650 | | test ! -s conftest.err |
| 27651 | | } && test -s conftest.$ac_objext; then |
| 27652 | | ac_lo=$ac_mid; break |
| 27653 | | else |
| 27654 | | echo "$as_me: failed program was:" >&5 |
| 27655 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27656 | | |
| 27657 | | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 27658 | | if test $ac_mid -le $ac_hi; then |
| 27659 | | ac_lo= ac_hi= |
| 27660 | | break |
| 27661 | | fi |
| 27662 | | ac_mid=`expr 2 '*' $ac_mid` |
| 27663 | | fi |
| 27664 | | |
| 27665 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27666 | | done |
| 27667 | | else |
| 27668 | | echo "$as_me: failed program was:" >&5 |
| 27669 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27670 | | |
| 27671 | | ac_lo= ac_hi= |
| 27672 | | fi |
| 27673 | | |
| 27674 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27675 | | fi |
| 27676 | | |
| 27677 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27678 | | # Binary search between lo and hi bounds. |
| 27679 | | while test "x$ac_lo" != "x$ac_hi"; do |
| 27680 | | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 27681 | | cat >conftest.$ac_ext <<_ACEOF |
| 27682 | | /* confdefs.h. */ |
| 27683 | | _ACEOF |
| 27684 | | cat confdefs.h >>conftest.$ac_ext |
| 27685 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27686 | | /* end confdefs.h. */ |
| 27687 | | #include <stddef.h> |
| 27688 | | int |
| 27689 | | main () |
| 27690 | | { |
| 27691 | | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 27692 | | test_array [0] = 0 |
| 27693 | | |
| 27694 | | ; |
| 27695 | | return 0; |
| 27696 | | } |
| 27697 | | _ACEOF |
| 27698 | | rm -f conftest.$ac_objext |
| 27699 | | if { (ac_try="$ac_compile" |
| 27700 | | case "(($ac_try" in |
| 27701 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27702 | | *) ac_try_echo=$ac_try;; |
| 27703 | | esac |
| 27704 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27705 | | (eval "$ac_compile") 2>conftest.er1 |
| 27706 | | ac_status=$? |
| 27707 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27708 | | rm -f conftest.er1 |
| 27709 | | cat conftest.err >&5 |
| 27710 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27711 | | (exit $ac_status); } && { |
| 27712 | | test -z "$ac_c_werror_flag" || |
| 27713 | | test ! -s conftest.err |
| 27714 | | } && test -s conftest.$ac_objext; then |
| 27715 | | ac_hi=$ac_mid |
| 27716 | | else |
| 27717 | | echo "$as_me: failed program was:" >&5 |
| 27718 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27719 | | |
| 27720 | | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 27721 | | fi |
| 27722 | | |
| 27723 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27724 | | done |
| 27725 | | case $ac_lo in |
| 27726 | | ?*) fits_in_uint=$ac_lo;; |
| 27727 | | '') fits_in_uint= ;; |
| 27728 | | esac |
| 27729 | | else |
| 27730 | | cat >conftest.$ac_ext <<_ACEOF |
| 27731 | | /* confdefs.h. */ |
| 27732 | | _ACEOF |
| 27733 | | cat confdefs.h >>conftest.$ac_ext |
| 27734 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27735 | | /* end confdefs.h. */ |
| 27736 | | #include <stddef.h> |
| 27737 | | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 27738 | | static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 27739 | | #include <stdio.h> |
| 27740 | | #include <stdlib.h> |
| 27741 | | int |
| 27742 | | main () |
| 27743 | | { |
| 27744 | | |
| 27745 | | FILE *f = fopen ("conftest.val", "w"); |
| 27746 | | if (! f) |
| 27747 | | return 1; |
| 27748 | | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 27749 | | { |
| 27750 | | long int i = longval (); |
| 27751 | | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
| 27752 | | return 1; |
| 27753 | | fprintf (f, "%ld\n", i); |
| 27754 | | } |
| 27755 | | else |
| 27756 | | { |
| 27757 | | unsigned long int i = ulongval (); |
| 27758 | | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
| 27759 | | return 1; |
| 27760 | | fprintf (f, "%lu\n", i); |
| 27761 | | } |
| 27762 | | return ferror (f) || fclose (f) != 0; |
| 27763 | | |
| 27764 | | ; |
| 27765 | | return 0; |
| 27766 | | } |
| 27767 | | _ACEOF |
| 27768 | | rm -f conftest$ac_exeext |
| 27769 | | if { (ac_try="$ac_link" |
| 27770 | | case "(($ac_try" in |
| 27771 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27772 | | *) ac_try_echo=$ac_try;; |
| 27773 | | esac |
| 27774 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27775 | | (eval "$ac_link") 2>&5 |
| 27776 | | ac_status=$? |
| 27777 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27778 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27779 | | { (case "(($ac_try" in |
| 27780 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27781 | | *) ac_try_echo=$ac_try;; |
| 27782 | | esac |
| 27783 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27784 | | (eval "$ac_try") 2>&5 |
| 27785 | | ac_status=$? |
| 27786 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27787 | | (exit $ac_status); }; }; then |
| 27788 | | fits_in_uint=`cat conftest.val` |
| 27789 | | else |
| 27790 | | echo "$as_me: program exited with status $ac_status" >&5 |
| 27791 | | echo "$as_me: failed program was:" >&5 |
| 27792 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27793 | | |
| 27794 | | ( exit $ac_status ) |
| 27795 | | fits_in_uint= |
| 27796 | | fi |
| 27797 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27798 | | fi |
| 27799 | | rm -f conftest.val |
| 27800 | | |
| 27801 | | if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then |
| 27802 | | if test $fits_in_uint = 1; then |
| 27803 | | cat >conftest.$ac_ext <<_ACEOF |
| 27804 | | /* confdefs.h. */ |
| 27805 | | _ACEOF |
| 27806 | | cat confdefs.h >>conftest.$ac_ext |
| 27807 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27808 | | /* end confdefs.h. */ |
| 27809 | | #include <stddef.h> |
| 27810 | | extern size_t foo; |
| 27811 | | extern unsigned long foo; |
| 27812 | | |
| 27813 | | int |
| 27814 | | main () |
| 27815 | | { |
| 27816 | | |
| 27817 | | ; |
| 27818 | | return 0; |
| 27819 | | } |
| 27820 | | _ACEOF |
| 27821 | | rm -f conftest.$ac_objext |
| 27822 | | if { (ac_try="$ac_compile" |
| 27823 | | case "(($ac_try" in |
| 27824 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27825 | | *) ac_try_echo=$ac_try;; |
| 27826 | | esac |
| 27827 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27828 | | (eval "$ac_compile") 2>conftest.er1 |
| 27829 | | ac_status=$? |
| 27830 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27831 | | rm -f conftest.er1 |
| 27832 | | cat conftest.err >&5 |
| 27833 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27834 | | (exit $ac_status); } && { |
| 27835 | | test -z "$ac_c_werror_flag" || |
| 27836 | | test ! -s conftest.err |
| 27837 | | } && test -s conftest.$ac_objext; then |
| 27838 | | fits_in_uint=0 |
| 27839 | | else |
| 27840 | | echo "$as_me: failed program was:" >&5 |
| 27841 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27842 | | |
| 27843 | | |
| 27844 | | fi |
| 27845 | | |
| 27846 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27847 | | fi |
| 27848 | | if test $fits_in_uint = 1; then |
| 27849 | | result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 27850 | | else |
| 27851 | | result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 27852 | | fi |
| 27853 | | else |
| 27854 | | result='((size_t)~(size_t)0)' |
| 27855 | | fi |
| 27856 | | fi |
| 27857 | | { echo "$as_me:$LINENO: result: $result" >&5 |
| 27858 | | echo "${ECHO_T}$result" >&6; } |
| 27859 | | if test "$result" != yes; then |
| 27860 | | |
| 27861 | | cat >>confdefs.h <<_ACEOF |
| 27862 | | #define SIZE_MAX $result |
| 27863 | | _ACEOF |
| 27864 | | |
| 27865 | | fi |
| 27866 | | |
| 27867 | | |
| 27868 | | |
| 27869 | | |
| 27870 | | |
| 27871 | | for ac_header in stdint.h |
| 27872 | | do |
| 27873 | | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 27874 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27875 | | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27876 | | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27877 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27878 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27879 | | fi |
| 27880 | | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27881 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27882 | | echo "${ECHO_T}$ac_res" >&6; } |
| 27883 | | else |
| 27884 | | # Is the header compilable? |
| 27885 | | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27886 | | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 27887 | | cat >conftest.$ac_ext <<_ACEOF |
| 27888 | | /* confdefs.h. */ |
| 27889 | | _ACEOF |
| 27890 | | cat confdefs.h >>conftest.$ac_ext |
| 27891 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27892 | | /* end confdefs.h. */ |
| 27893 | | $ac_includes_default |
| 27894 | | #include <$ac_header> |
| 27895 | | _ACEOF |
| 27896 | | rm -f conftest.$ac_objext |
| 27897 | | if { (ac_try="$ac_compile" |
| 27898 | | case "(($ac_try" in |
| 27899 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27900 | | *) ac_try_echo=$ac_try;; |
| 27901 | | esac |
| 27902 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27903 | | (eval "$ac_compile") 2>conftest.er1 |
| 27904 | | ac_status=$? |
| 27905 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27906 | | rm -f conftest.er1 |
| 27907 | | cat conftest.err >&5 |
| 27908 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27909 | | (exit $ac_status); } && { |
| 27910 | | test -z "$ac_c_werror_flag" || |
| 27911 | | test ! -s conftest.err |
| 27912 | | } && test -s conftest.$ac_objext; then |
| 27913 | | ac_header_compiler=yes |
| 27914 | | else |
| 27915 | | echo "$as_me: failed program was:" >&5 |
| 27916 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27917 | | |
| 27918 | | ac_header_compiler=no |
| 27919 | | fi |
| 27920 | | |
| 27921 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27922 | | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27923 | | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 27924 | | |
| 27925 | | # Is the header present? |
| 27926 | | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27927 | | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 27928 | | cat >conftest.$ac_ext <<_ACEOF |
| 27929 | | /* confdefs.h. */ |
| 27930 | | _ACEOF |
| 27931 | | cat confdefs.h >>conftest.$ac_ext |
| 27932 | | cat >>conftest.$ac_ext <<_ACEOF |
| 27933 | | /* end confdefs.h. */ |
| 27934 | | #include <$ac_header> |
| 27935 | | _ACEOF |
| 27936 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 27937 | | case "(($ac_try" in |
| 27938 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27939 | | *) ac_try_echo=$ac_try;; |
| 27940 | | esac |
| 27941 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27942 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 27943 | | ac_status=$? |
| 27944 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 27945 | | rm -f conftest.er1 |
| 27946 | | cat conftest.err >&5 |
| 27947 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27948 | | (exit $ac_status); } >/dev/null && { |
| 27949 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 27950 | | test ! -s conftest.err |
| 27951 | | }; then |
| 27952 | | ac_header_preproc=yes |
| 27953 | | else |
| 27954 | | echo "$as_me: failed program was:" >&5 |
| 27955 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27956 | | |
| 27957 | | ac_header_preproc=no |
| 27958 | | fi |
| 27959 | | |
| 27960 | | rm -f conftest.err conftest.$ac_ext |
| 27961 | | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27962 | | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 27963 | | |
| 27964 | | # So? What about this header? |
| 27965 | | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27966 | | yes:no: ) |
| 27967 | | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27968 | | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27969 | | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27970 | | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27971 | | ac_header_preproc=yes |
| 27972 | | ;; |
| 27973 | | no:yes:* ) |
| 27974 | | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27975 | | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27976 | | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27977 | | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27978 | | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27979 | | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27980 | | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27981 | | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27982 | | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27983 | | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27984 | | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27985 | | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 27986 | | |
| 27987 | | ;; |
| 27988 | | esac |
| 27989 | | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27990 | | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27991 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27992 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27993 | | else |
| 27994 | | eval "$as_ac_Header=\$ac_header_preproc" |
| 27995 | | fi |
| 27996 | | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27997 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27998 | | echo "${ECHO_T}$ac_res" >&6; } |
| 27999 | | |
| 28000 | | fi |
| 28001 | | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28002 | | cat >>confdefs.h <<_ACEOF |
| 28003 | | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28004 | | _ACEOF |
| 28005 | | |
| 28006 | | fi |
| 28007 | | |
| 28008 | | done |
| 28009 | | |
| 28010 | | |
| 28011 | | |
| 28012 | | { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 |
| 28013 | | echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } |
| 28014 | | if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then |
| 28015 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28016 | | else |
| 28017 | | gt_save_LIBS="$LIBS" |
| 28018 | | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 28019 | | cat >conftest.$ac_ext <<_ACEOF |
| 28020 | | /* confdefs.h. */ |
| 28021 | | _ACEOF |
| 28022 | | cat confdefs.h >>conftest.$ac_ext |
| 28023 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28024 | | /* end confdefs.h. */ |
| 28025 | | #include <CoreFoundation/CFPreferences.h> |
| 28026 | | int |
| 28027 | | main () |
| 28028 | | { |
| 28029 | | CFPreferencesCopyAppValue(NULL, NULL) |
| 28030 | | ; |
| 28031 | | return 0; |
| 28032 | | } |
| 28033 | | _ACEOF |
| 28034 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28035 | | if { (ac_try="$ac_link" |
| 28036 | | case "(($ac_try" in |
| 28037 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28038 | | *) ac_try_echo=$ac_try;; |
| 28039 | | esac |
| 28040 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28041 | | (eval "$ac_link") 2>conftest.er1 |
| 28042 | | ac_status=$? |
| 28043 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28044 | | rm -f conftest.er1 |
| 28045 | | cat conftest.err >&5 |
| 28046 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28047 | | (exit $ac_status); } && { |
| 28048 | | test -z "$ac_c_werror_flag" || |
| 28049 | | test ! -s conftest.err |
| 28050 | | } && test -s conftest$ac_exeext && |
| 28051 | | $as_test_x conftest$ac_exeext; then |
| 28052 | | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 28053 | | else |
| 28054 | | echo "$as_me: failed program was:" >&5 |
| 28055 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28056 | | |
| 28057 | | gt_cv_func_CFPreferencesCopyAppValue=no |
| 28058 | | fi |
| 28059 | | |
| 28060 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 28061 | | conftest$ac_exeext conftest.$ac_ext |
| 28062 | | LIBS="$gt_save_LIBS" |
| 28063 | | fi |
| 28064 | | { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 28065 | | echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 28066 | | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 28067 | | |
| 28068 | | cat >>confdefs.h <<\_ACEOF |
| 28069 | | #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 |
| 28070 | | _ACEOF |
| 28071 | | |
| 28072 | | fi |
| 28073 | | { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 |
| 28074 | | echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } |
| 28075 | | if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then |
| 28076 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28077 | | else |
| 28078 | | gt_save_LIBS="$LIBS" |
| 28079 | | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 28080 | | cat >conftest.$ac_ext <<_ACEOF |
| 28081 | | /* confdefs.h. */ |
| 28082 | | _ACEOF |
| 28083 | | cat confdefs.h >>conftest.$ac_ext |
| 28084 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28085 | | /* end confdefs.h. */ |
| 28086 | | #include <CoreFoundation/CFLocale.h> |
| 28087 | | int |
| 28088 | | main () |
| 28089 | | { |
| 28090 | | CFLocaleCopyCurrent(); |
| 28091 | | ; |
| 28092 | | return 0; |
| 28093 | | } |
| 28094 | | _ACEOF |
| 28095 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28096 | | if { (ac_try="$ac_link" |
| 28097 | | case "(($ac_try" in |
| 28098 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28099 | | *) ac_try_echo=$ac_try;; |
| 28100 | | esac |
| 28101 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28102 | | (eval "$ac_link") 2>conftest.er1 |
| 28103 | | ac_status=$? |
| 28104 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28105 | | rm -f conftest.er1 |
| 28106 | | cat conftest.err >&5 |
| 28107 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28108 | | (exit $ac_status); } && { |
| 28109 | | test -z "$ac_c_werror_flag" || |
| 28110 | | test ! -s conftest.err |
| 28111 | | } && test -s conftest$ac_exeext && |
| 28112 | | $as_test_x conftest$ac_exeext; then |
| 28113 | | gt_cv_func_CFLocaleCopyCurrent=yes |
| 28114 | | else |
| 28115 | | echo "$as_me: failed program was:" >&5 |
| 28116 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28117 | | |
| 28118 | | gt_cv_func_CFLocaleCopyCurrent=no |
| 28119 | | fi |
| 28120 | | |
| 28121 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 28122 | | conftest$ac_exeext conftest.$ac_ext |
| 28123 | | LIBS="$gt_save_LIBS" |
| 28124 | | fi |
| 28125 | | { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 28126 | | echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 28127 | | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 28128 | | |
| 28129 | | cat >>confdefs.h <<\_ACEOF |
| 28130 | | #define HAVE_CFLOCALECOPYCURRENT 1 |
| 28131 | | _ACEOF |
| 28132 | | |
| 28133 | | fi |
| 28134 | | INTL_MACOSX_LIBS= |
| 28135 | | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 28136 | | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 28137 | | fi |
| 28138 | | |
| 28139 | | |
| 28140 | | |
| 28141 | | |
| 28142 | | |
| 28143 | | |
| 28144 | | |
| 28145 | | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 28146 | | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
| 28147 | | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 28148 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28149 | | else |
| 28150 | | cat >conftest.$ac_ext <<_ACEOF |
| 28151 | | /* confdefs.h. */ |
| 28152 | | _ACEOF |
| 28153 | | cat confdefs.h >>conftest.$ac_ext |
| 28154 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28155 | | /* end confdefs.h. */ |
| 28156 | | $ac_includes_default |
| 28157 | | typedef ptrdiff_t ac__type_new_; |
| 28158 | | int |
| 28159 | | main () |
| 28160 | | { |
| 28161 | | if ((ac__type_new_ *) 0) |
| 28162 | | return 0; |
| 28163 | | if (sizeof (ac__type_new_)) |
| 28164 | | return 0; |
| 28165 | | ; |
| 28166 | | return 0; |
| 28167 | | } |
| 28168 | | _ACEOF |
| 28169 | | rm -f conftest.$ac_objext |
| 28170 | | if { (ac_try="$ac_compile" |
| 28171 | | case "(($ac_try" in |
| 28172 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28173 | | *) ac_try_echo=$ac_try;; |
| 28174 | | esac |
| 28175 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28176 | | (eval "$ac_compile") 2>conftest.er1 |
| 28177 | | ac_status=$? |
| 28178 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28179 | | rm -f conftest.er1 |
| 28180 | | cat conftest.err >&5 |
| 28181 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28182 | | (exit $ac_status); } && { |
| 28183 | | test -z "$ac_c_werror_flag" || |
| 28184 | | test ! -s conftest.err |
| 28185 | | } && test -s conftest.$ac_objext; then |
| 28186 | | ac_cv_type_ptrdiff_t=yes |
| 28187 | | else |
| 28188 | | echo "$as_me: failed program was:" >&5 |
| 28189 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28190 | | |
| 28191 | | ac_cv_type_ptrdiff_t=no |
| 28192 | | fi |
| 28193 | | |
| 28194 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28195 | | fi |
| 28196 | | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 28197 | | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
| 28198 | | if test $ac_cv_type_ptrdiff_t = yes; then |
| 28199 | | : |
| 28200 | | else |
| 28201 | | |
| 28202 | | cat >>confdefs.h <<\_ACEOF |
| 28203 | | #define ptrdiff_t long |
| 28204 | | _ACEOF |
| 28205 | | |
| 28206 | | |
| 28207 | | fi |
| 28208 | | |
| 28209 | | |
| 28210 | | |
| 28211 | | |
| 28212 | | for ac_header in stddef.h stdlib.h string.h |
| 28213 | | do |
| 28214 | | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 28215 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28216 | | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28217 | | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28218 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28219 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28220 | | fi |
| 28221 | | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28222 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28223 | | echo "${ECHO_T}$ac_res" >&6; } |
| 28224 | | else |
| 28225 | | # Is the header compilable? |
| 28226 | | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28227 | | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 28228 | | cat >conftest.$ac_ext <<_ACEOF |
| 28229 | | /* confdefs.h. */ |
| 28230 | | _ACEOF |
| 28231 | | cat confdefs.h >>conftest.$ac_ext |
| 28232 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28233 | | /* end confdefs.h. */ |
| 28234 | | $ac_includes_default |
| 28235 | | #include <$ac_header> |
| 28236 | | _ACEOF |
| 28237 | | rm -f conftest.$ac_objext |
| 28238 | | if { (ac_try="$ac_compile" |
| 28239 | | case "(($ac_try" in |
| 28240 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28241 | | *) ac_try_echo=$ac_try;; |
| 28242 | | esac |
| 28243 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28244 | | (eval "$ac_compile") 2>conftest.er1 |
| 28245 | | ac_status=$? |
| 28246 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28247 | | rm -f conftest.er1 |
| 28248 | | cat conftest.err >&5 |
| 28249 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28250 | | (exit $ac_status); } && { |
| 28251 | | test -z "$ac_c_werror_flag" || |
| 28252 | | test ! -s conftest.err |
| 28253 | | } && test -s conftest.$ac_objext; then |
| 28254 | | ac_header_compiler=yes |
| 28255 | | else |
| 28256 | | echo "$as_me: failed program was:" >&5 |
| 28257 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28258 | | |
| 28259 | | ac_header_compiler=no |
| 28260 | | fi |
| 28261 | | |
| 28262 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28263 | | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28264 | | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 28265 | | |
| 28266 | | # Is the header present? |
| 28267 | | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28268 | | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 28269 | | cat >conftest.$ac_ext <<_ACEOF |
| 28270 | | /* confdefs.h. */ |
| 28271 | | _ACEOF |
| 28272 | | cat confdefs.h >>conftest.$ac_ext |
| 28273 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28274 | | /* end confdefs.h. */ |
| 28275 | | #include <$ac_header> |
| 28276 | | _ACEOF |
| 28277 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28278 | | case "(($ac_try" in |
| 28279 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28280 | | *) ac_try_echo=$ac_try;; |
| 28281 | | esac |
| 28282 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28283 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28284 | | ac_status=$? |
| 28285 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28286 | | rm -f conftest.er1 |
| 28287 | | cat conftest.err >&5 |
| 28288 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28289 | | (exit $ac_status); } >/dev/null && { |
| 28290 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 28291 | | test ! -s conftest.err |
| 28292 | | }; then |
| 28293 | | ac_header_preproc=yes |
| 28294 | | else |
| 28295 | | echo "$as_me: failed program was:" >&5 |
| 28296 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28297 | | |
| 28298 | | ac_header_preproc=no |
| 28299 | | fi |
| 28300 | | |
| 28301 | | rm -f conftest.err conftest.$ac_ext |
| 28302 | | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28303 | | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 28304 | | |
| 28305 | | # So? What about this header? |
| 28306 | | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28307 | | yes:no: ) |
| 28308 | | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28309 | | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28310 | | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28311 | | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28312 | | ac_header_preproc=yes |
| 28313 | | ;; |
| 28314 | | no:yes:* ) |
| 28315 | | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28316 | | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28317 | | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28318 | | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28319 | | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28320 | | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28321 | | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28322 | | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28323 | | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28324 | | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28325 | | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28326 | | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 28327 | | |
| 28328 | | ;; |
| 28329 | | esac |
| 28330 | | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28331 | | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28332 | | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28333 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28334 | | else |
| 28335 | | eval "$as_ac_Header=\$ac_header_preproc" |
| 28336 | | fi |
| 28337 | | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28338 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28339 | | echo "${ECHO_T}$ac_res" >&6; } |
| 28340 | | |
| 28341 | | fi |
| 28342 | | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28343 | | cat >>confdefs.h <<_ACEOF |
| 28344 | | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28345 | | _ACEOF |
| 28346 | | |
| 28347 | | fi |
| 28348 | | |
| 28349 | | done |
| 28350 | | |
| 28351 | | |
| 28352 | | |
| 28353 | | |
| 28354 | | |
| 28355 | | |
| 28356 | | |
| 28357 | | |
| 28358 | | for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen |
| 28359 | | do |
| 28360 | | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28361 | | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28362 | | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 28363 | | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28364 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28365 | | else |
| 28366 | | cat >conftest.$ac_ext <<_ACEOF |
| 28367 | | /* confdefs.h. */ |
| 28368 | | _ACEOF |
| 28369 | | cat confdefs.h >>conftest.$ac_ext |
| 28370 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28371 | | /* end confdefs.h. */ |
| 28372 | | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28373 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28374 | | #define $ac_func innocuous_$ac_func |
| 28375 | | |
| 28376 | | /* System header to define __stub macros and hopefully few prototypes, |
| 28377 | | which can conflict with char $ac_func (); below. |
| 28378 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28379 | | <limits.h> exists even on freestanding compilers. */ |
| 28380 | | |
| 28381 | | #ifdef __STDC__ |
| 28382 | | # include <limits.h> |
| 28383 | | #else |
| 28384 | | # include <assert.h> |
| 28385 | | #endif |
| 28386 | | |
| 28387 | | #undef $ac_func |
| 28388 | | |
| 28389 | | /* Override any GCC internal prototype to avoid an error. |
| 28390 | | Use char because int might match the return type of a GCC |
| 28391 | | builtin and then its argument prototype would still apply. */ |
| 28392 | | #ifdef __cplusplus |
| 28393 | | extern "C" |
| 28394 | | #endif |
| 28395 | | char $ac_func (); |
| 28396 | | /* The GNU C library defines this for functions which it implements |
| 28397 | | to always fail with ENOSYS. Some functions are actually named |
| 28398 | | something starting with __ and the normal name is an alias. */ |
| 28399 | | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 28400 | | choke me |
| 28401 | | #endif |
| 28402 | | |
| 28403 | | int |
| 28404 | | main () |
| 28405 | | { |
| 28406 | | return $ac_func (); |
| 28407 | | ; |
| 28408 | | return 0; |
| 28409 | | } |
| 28410 | | _ACEOF |
| 28411 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28412 | | if { (ac_try="$ac_link" |
| 28413 | | case "(($ac_try" in |
| 28414 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28415 | | *) ac_try_echo=$ac_try;; |
| 28416 | | esac |
| 28417 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28418 | | (eval "$ac_link") 2>conftest.er1 |
| 28419 | | ac_status=$? |
| 28420 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28421 | | rm -f conftest.er1 |
| 28422 | | cat conftest.err >&5 |
| 28423 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28424 | | (exit $ac_status); } && { |
| 28425 | | test -z "$ac_c_werror_flag" || |
| 28426 | | test ! -s conftest.err |
| 28427 | | } && test -s conftest$ac_exeext && |
| 28428 | | $as_test_x conftest$ac_exeext; then |
| 28429 | | eval "$as_ac_var=yes" |
| 28430 | | else |
| 28431 | | echo "$as_me: failed program was:" >&5 |
| 28432 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28433 | | |
| 28434 | | eval "$as_ac_var=no" |
| 28435 | | fi |
| 28436 | | |
| 28437 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 28438 | | conftest$ac_exeext conftest.$ac_ext |
| 28439 | | fi |
| 28440 | | ac_res=`eval echo '${'$as_ac_var'}'` |
| 28441 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28442 | | echo "${ECHO_T}$ac_res" >&6; } |
| 28443 | | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28444 | | cat >>confdefs.h <<_ACEOF |
| 28445 | | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 28446 | | _ACEOF |
| 28447 | | |
| 28448 | | fi |
| 28449 | | done |
| 28450 | | |
| 28451 | | |
| 28452 | | |
| 28453 | | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 28454 | | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
| 28455 | | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 28456 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28457 | | else |
| 28458 | | cat >conftest.$ac_ext <<_ACEOF |
| 28459 | | /* confdefs.h. */ |
| 28460 | | _ACEOF |
| 28461 | | cat confdefs.h >>conftest.$ac_ext |
| 28462 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28463 | | /* end confdefs.h. */ |
| 28464 | | #include <stdio.h> |
| 28465 | | int |
| 28466 | | main () |
| 28467 | | { |
| 28468 | | |
| 28469 | | #ifndef _snprintf |
| 28470 | | char *p = (char *) _snprintf; |
| 28471 | | #endif |
| 28472 | | |
| 28473 | | ; |
| 28474 | | return 0; |
| 28475 | | } |
| 28476 | | _ACEOF |
| 28477 | | rm -f conftest.$ac_objext |
| 28478 | | if { (ac_try="$ac_compile" |
| 28479 | | case "(($ac_try" in |
| 28480 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28481 | | *) ac_try_echo=$ac_try;; |
| 28482 | | esac |
| 28483 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28484 | | (eval "$ac_compile") 2>conftest.er1 |
| 28485 | | ac_status=$? |
| 28486 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28487 | | rm -f conftest.er1 |
| 28488 | | cat conftest.err >&5 |
| 28489 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28490 | | (exit $ac_status); } && { |
| 28491 | | test -z "$ac_c_werror_flag" || |
| 28492 | | test ! -s conftest.err |
| 28493 | | } && test -s conftest.$ac_objext; then |
| 28494 | | ac_cv_have_decl__snprintf=yes |
| 28495 | | else |
| 28496 | | echo "$as_me: failed program was:" >&5 |
| 28497 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28498 | | |
| 28499 | | ac_cv_have_decl__snprintf=no |
| 28500 | | fi |
| 28501 | | |
| 28502 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28503 | | fi |
| 28504 | | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 28505 | | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
| 28506 | | if test $ac_cv_have_decl__snprintf = yes; then |
| 28507 | | gt_value=1 |
| 28508 | | else |
| 28509 | | gt_value=0 |
| 28510 | | fi |
| 28511 | | |
| 28512 | | cat >>confdefs.h <<_ACEOF |
| 28513 | | #define HAVE_DECL__SNPRINTF $gt_value |
| 28514 | | _ACEOF |
| 28515 | | |
| 28516 | | |
| 28517 | | |
| 28518 | | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 28519 | | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
| 28520 | | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 28521 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28522 | | else |
| 28523 | | cat >conftest.$ac_ext <<_ACEOF |
| 28524 | | /* confdefs.h. */ |
| 28525 | | _ACEOF |
| 28526 | | cat confdefs.h >>conftest.$ac_ext |
| 28527 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28528 | | /* end confdefs.h. */ |
| 28529 | | #include <stdio.h> |
| 28530 | | int |
| 28531 | | main () |
| 28532 | | { |
| 28533 | | |
| 28534 | | #ifndef _snwprintf |
| 28535 | | char *p = (char *) _snwprintf; |
| 28536 | | #endif |
| 28537 | | |
| 28538 | | ; |
| 28539 | | return 0; |
| 28540 | | } |
| 28541 | | _ACEOF |
| 28542 | | rm -f conftest.$ac_objext |
| 28543 | | if { (ac_try="$ac_compile" |
| 28544 | | case "(($ac_try" in |
| 28545 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28546 | | *) ac_try_echo=$ac_try;; |
| 28547 | | esac |
| 28548 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28549 | | (eval "$ac_compile") 2>conftest.er1 |
| 28550 | | ac_status=$? |
| 28551 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28552 | | rm -f conftest.er1 |
| 28553 | | cat conftest.err >&5 |
| 28554 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28555 | | (exit $ac_status); } && { |
| 28556 | | test -z "$ac_c_werror_flag" || |
| 28557 | | test ! -s conftest.err |
| 28558 | | } && test -s conftest.$ac_objext; then |
| 28559 | | ac_cv_have_decl__snwprintf=yes |
| 28560 | | else |
| 28561 | | echo "$as_me: failed program was:" >&5 |
| 28562 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28563 | | |
| 28564 | | ac_cv_have_decl__snwprintf=no |
| 28565 | | fi |
| 28566 | | |
| 28567 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28568 | | fi |
| 28569 | | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 28570 | | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
| 28571 | | if test $ac_cv_have_decl__snwprintf = yes; then |
| 28572 | | gt_value=1 |
| 28573 | | else |
| 28574 | | gt_value=0 |
| 28575 | | fi |
| 28576 | | |
| 28577 | | cat >>confdefs.h <<_ACEOF |
| 28578 | | #define HAVE_DECL__SNWPRINTF $gt_value |
| 28579 | | _ACEOF |
| 28580 | | |
| 28581 | | |
| 28582 | | |
| 28583 | | |
| 28584 | | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 28585 | | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } |
| 28586 | | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 28587 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28588 | | else |
| 28589 | | cat >conftest.$ac_ext <<_ACEOF |
| 28590 | | /* confdefs.h. */ |
| 28591 | | _ACEOF |
| 28592 | | cat confdefs.h >>conftest.$ac_ext |
| 28593 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28594 | | /* end confdefs.h. */ |
| 28595 | | #include <stdio.h> |
| 28596 | | int |
| 28597 | | main () |
| 28598 | | { |
| 28599 | | |
| 28600 | | #ifndef getc_unlocked |
| 28601 | | char *p = (char *) getc_unlocked; |
| 28602 | | #endif |
| 28603 | | |
| 28604 | | ; |
| 28605 | | return 0; |
| 28606 | | } |
| 28607 | | _ACEOF |
| 28608 | | rm -f conftest.$ac_objext |
| 28609 | | if { (ac_try="$ac_compile" |
| 28610 | | case "(($ac_try" in |
| 28611 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28612 | | *) ac_try_echo=$ac_try;; |
| 28613 | | esac |
| 28614 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28615 | | (eval "$ac_compile") 2>conftest.er1 |
| 28616 | | ac_status=$? |
| 28617 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28618 | | rm -f conftest.er1 |
| 28619 | | cat conftest.err >&5 |
| 28620 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28621 | | (exit $ac_status); } && { |
| 28622 | | test -z "$ac_c_werror_flag" || |
| 28623 | | test ! -s conftest.err |
| 28624 | | } && test -s conftest.$ac_objext; then |
| 28625 | | ac_cv_have_decl_getc_unlocked=yes |
| 28626 | | else |
| 28627 | | echo "$as_me: failed program was:" >&5 |
| 28628 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28629 | | |
| 28630 | | ac_cv_have_decl_getc_unlocked=no |
| 28631 | | fi |
| 28632 | | |
| 28633 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28634 | | fi |
| 28635 | | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 28636 | | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
| 28637 | | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 28638 | | gt_value=1 |
| 28639 | | else |
| 28640 | | gt_value=0 |
| 28641 | | fi |
| 28642 | | |
| 28643 | | cat >>confdefs.h <<_ACEOF |
| 28644 | | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 28645 | | _ACEOF |
| 28646 | | |
| 28647 | | |
| 28648 | | |
| 28649 | | case $gt_cv_func_printf_posix in |
| 28650 | | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 28651 | | *) HAVE_POSIX_PRINTF=0 ;; |
| 28652 | | esac |
| 28653 | | |
| 28654 | | if test "$ac_cv_func_asprintf" = yes; then |
| 28655 | | HAVE_ASPRINTF=1 |
| 28656 | | else |
| 28657 | | HAVE_ASPRINTF=0 |
| 28658 | | fi |
| 28659 | | |
| 28660 | | if test "$ac_cv_func_snprintf" = yes; then |
| 28661 | | HAVE_SNPRINTF=1 |
| 28662 | | else |
| 28663 | | HAVE_SNPRINTF=0 |
| 28664 | | fi |
| 28665 | | |
| 28666 | | if test "$ac_cv_func_wprintf" = yes; then |
| 28667 | | HAVE_WPRINTF=1 |
| 28668 | | else |
| 28669 | | HAVE_WPRINTF=0 |
| 28670 | | fi |
| 28671 | | |
| 28672 | | |
| 28673 | | |
| 28674 | | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 28675 | | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } |
| 28676 | | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 28677 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28678 | | else |
| 28679 | | cat >conftest.$ac_ext <<_ACEOF |
| 28680 | | /* confdefs.h. */ |
| 28681 | | _ACEOF |
| 28682 | | cat confdefs.h >>conftest.$ac_ext |
| 28683 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28684 | | /* end confdefs.h. */ |
| 28685 | | #include <langinfo.h> |
| 28686 | | int |
| 28687 | | main () |
| 28688 | | { |
| 28689 | | char* cs = nl_langinfo(CODESET); |
| 28690 | | ; |
| 28691 | | return 0; |
| 28692 | | } |
| 28693 | | _ACEOF |
| 28694 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28695 | | if { (ac_try="$ac_link" |
| 28696 | | case "(($ac_try" in |
| 28697 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28698 | | *) ac_try_echo=$ac_try;; |
| 28699 | | esac |
| 28700 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28701 | | (eval "$ac_link") 2>conftest.er1 |
| 28702 | | ac_status=$? |
| 28703 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28704 | | rm -f conftest.er1 |
| 28705 | | cat conftest.err >&5 |
| 28706 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28707 | | (exit $ac_status); } && { |
| 28708 | | test -z "$ac_c_werror_flag" || |
| 28709 | | test ! -s conftest.err |
| 28710 | | } && test -s conftest$ac_exeext && |
| 28711 | | $as_test_x conftest$ac_exeext; then |
| 28712 | | am_cv_langinfo_codeset=yes |
| 28713 | | else |
| 28714 | | echo "$as_me: failed program was:" >&5 |
| 28715 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28716 | | |
| 28717 | | am_cv_langinfo_codeset=no |
| 28718 | | fi |
| 28719 | | |
| 28720 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 28721 | | conftest$ac_exeext conftest.$ac_ext |
| 28722 | | |
| 28723 | | fi |
| 28724 | | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 28725 | | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
| 28726 | | if test $am_cv_langinfo_codeset = yes; then |
| 28727 | | |
| 28728 | | cat >>confdefs.h <<\_ACEOF |
| 28729 | | #define HAVE_LANGINFO_CODESET 1 |
| 28730 | | _ACEOF |
| 28731 | | |
| 28732 | | fi |
| 28733 | | |
| 28734 | | |
| 28735 | | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 28736 | | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
| 28737 | | if test "${gt_cv_val_LC_MESSAGES+set}" = set; then |
| 28738 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28739 | | else |
| 28740 | | cat >conftest.$ac_ext <<_ACEOF |
| 28741 | | /* confdefs.h. */ |
| 28742 | | _ACEOF |
| 28743 | | cat confdefs.h >>conftest.$ac_ext |
| 28744 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28745 | | /* end confdefs.h. */ |
| 28746 | | #include <locale.h> |
| 28747 | | int |
| 28748 | | main () |
| 28749 | | { |
| 28750 | | return LC_MESSAGES |
| 28751 | | ; |
| 28752 | | return 0; |
| 28753 | | } |
| 28754 | | _ACEOF |
| 28755 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28756 | | if { (ac_try="$ac_link" |
| 28757 | | case "(($ac_try" in |
| 28758 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28759 | | *) ac_try_echo=$ac_try;; |
| 28760 | | esac |
| 28761 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28762 | | (eval "$ac_link") 2>conftest.er1 |
| 28763 | | ac_status=$? |
| 28764 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28765 | | rm -f conftest.er1 |
| 28766 | | cat conftest.err >&5 |
| 28767 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28768 | | (exit $ac_status); } && { |
| 28769 | | test -z "$ac_c_werror_flag" || |
| 28770 | | test ! -s conftest.err |
| 28771 | | } && test -s conftest$ac_exeext && |
| 28772 | | $as_test_x conftest$ac_exeext; then |
| 28773 | | gt_cv_val_LC_MESSAGES=yes |
| 28774 | | else |
| 28775 | | echo "$as_me: failed program was:" >&5 |
| 28776 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28777 | | |
| 28778 | | gt_cv_val_LC_MESSAGES=no |
| 28779 | | fi |
| 28780 | | |
| 28781 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 28782 | | conftest$ac_exeext conftest.$ac_ext |
| 28783 | | fi |
| 28784 | | { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5 |
| 28785 | | echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; } |
| 28786 | | if test $gt_cv_val_LC_MESSAGES = yes; then |
| 28787 | | |
| 28788 | | cat >>confdefs.h <<\_ACEOF |
| 28789 | | #define HAVE_LC_MESSAGES 1 |
| 28790 | | _ACEOF |
| 28791 | | |
| 28792 | | fi |
| 28793 | | |
| 28794 | | |
| 28795 | | if test "$enable_shared" = yes; then |
| 28796 | | case "$host_os" in |
| 28797 | | cygwin*) is_woe32dll=yes ;; |
| 28798 | | *) is_woe32dll=no ;; |
| 28799 | | esac |
| 28800 | | else |
| 28801 | | is_woe32dll=no |
| 28802 | | fi |
| 28803 | | WOE32DLL=$is_woe32dll |
| 28804 | | |
| 28805 | | |
| 28806 | | |
| 28807 | | |
| 28808 | | |
| 28809 | | |
| 28810 | | |
| 28811 | | |
| 28812 | | |
| 28813 | | |
| 28814 | | |
| 28815 | | |
| 28816 | | |
| 28817 | | |
| 28818 | | |
| 28819 | | |
| 28820 | | |
| 28821 | | |
| 28822 | | |
| 28823 | | |
| 28824 | | { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 |
| 28825 | | echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } |
| 28826 | | if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then |
| 28827 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28828 | | else |
| 28829 | | gt_save_LIBS="$LIBS" |
| 28830 | | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 28831 | | cat >conftest.$ac_ext <<_ACEOF |
| 28832 | | /* confdefs.h. */ |
| 28833 | | _ACEOF |
| 28834 | | cat confdefs.h >>conftest.$ac_ext |
| 28835 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28836 | | /* end confdefs.h. */ |
| 28837 | | #include <CoreFoundation/CFPreferences.h> |
| 28838 | | int |
| 28839 | | main () |
| 28840 | | { |
| 28841 | | CFPreferencesCopyAppValue(NULL, NULL) |
| 28842 | | ; |
| 28843 | | return 0; |
| 28844 | | } |
| 28845 | | _ACEOF |
| 28846 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28847 | | if { (ac_try="$ac_link" |
| 28848 | | case "(($ac_try" in |
| 28849 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28850 | | *) ac_try_echo=$ac_try;; |
| 28851 | | esac |
| 28852 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28853 | | (eval "$ac_link") 2>conftest.er1 |
| 28854 | | ac_status=$? |
| 28855 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28856 | | rm -f conftest.er1 |
| 28857 | | cat conftest.err >&5 |
| 28858 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28859 | | (exit $ac_status); } && { |
| 28860 | | test -z "$ac_c_werror_flag" || |
| 28861 | | test ! -s conftest.err |
| 28862 | | } && test -s conftest$ac_exeext && |
| 28863 | | $as_test_x conftest$ac_exeext; then |
| 28864 | | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 28865 | | else |
| 28866 | | echo "$as_me: failed program was:" >&5 |
| 28867 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28868 | | |
| 28869 | | gt_cv_func_CFPreferencesCopyAppValue=no |
| 28870 | | fi |
| 28871 | | |
| 28872 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 28873 | | conftest$ac_exeext conftest.$ac_ext |
| 28874 | | LIBS="$gt_save_LIBS" |
| 28875 | | fi |
| 28876 | | { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 28877 | | echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 28878 | | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 28879 | | |
| 28880 | | cat >>confdefs.h <<\_ACEOF |
| 28881 | | #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 |
| 28882 | | _ACEOF |
| 28883 | | |
| 28884 | | fi |
| 28885 | | { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 |
| 28886 | | echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } |
| 28887 | | if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then |
| 28888 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28889 | | else |
| 28890 | | gt_save_LIBS="$LIBS" |
| 28891 | | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 28892 | | cat >conftest.$ac_ext <<_ACEOF |
| 28893 | | /* confdefs.h. */ |
| 28894 | | _ACEOF |
| 28895 | | cat confdefs.h >>conftest.$ac_ext |
| 28896 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28897 | | /* end confdefs.h. */ |
| 28898 | | #include <CoreFoundation/CFLocale.h> |
| 28899 | | int |
| 28900 | | main () |
| 28901 | | { |
| 28902 | | CFLocaleCopyCurrent(); |
| 28903 | | ; |
| 28904 | | return 0; |
| 28905 | | } |
| 28906 | | _ACEOF |
| 28907 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28908 | | if { (ac_try="$ac_link" |
| 28909 | | case "(($ac_try" in |
| 28910 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28911 | | *) ac_try_echo=$ac_try;; |
| 28912 | | esac |
| 28913 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28914 | | (eval "$ac_link") 2>conftest.er1 |
| 28915 | | ac_status=$? |
| 28916 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 28917 | | rm -f conftest.er1 |
| 28918 | | cat conftest.err >&5 |
| 28919 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28920 | | (exit $ac_status); } && { |
| 28921 | | test -z "$ac_c_werror_flag" || |
| 28922 | | test ! -s conftest.err |
| 28923 | | } && test -s conftest$ac_exeext && |
| 28924 | | $as_test_x conftest$ac_exeext; then |
| 28925 | | gt_cv_func_CFLocaleCopyCurrent=yes |
| 28926 | | else |
| 28927 | | echo "$as_me: failed program was:" >&5 |
| 28928 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28929 | | |
| 28930 | | gt_cv_func_CFLocaleCopyCurrent=no |
| 28931 | | fi |
| 28932 | | |
| 28933 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 28934 | | conftest$ac_exeext conftest.$ac_ext |
| 28935 | | LIBS="$gt_save_LIBS" |
| 28936 | | fi |
| 28937 | | { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 28938 | | echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 28939 | | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 28940 | | |
| 28941 | | cat >>confdefs.h <<\_ACEOF |
| 28942 | | #define HAVE_CFLOCALECOPYCURRENT 1 |
| 28943 | | _ACEOF |
| 28944 | | |
| 28945 | | fi |
| 28946 | | INTL_MACOSX_LIBS= |
| 28947 | | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 28948 | | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 28949 | | fi |
| 28950 | | |
| 28951 | | |
| 28952 | | |
| 28953 | | |
| 28954 | | |
| 28955 | | |
| 28956 | | BUILD_INCLUDED_LIBINTL=no |
| 28957 | | USE_INCLUDED_LIBINTL=no |
| 28958 | | |
| 28959 | | LIBINTL= |
| 28960 | | LTLIBINTL= |
| 28961 | | POSUB= |
| 28962 | | |
| 28963 | | if test "$USE_NLS" = "yes"; then |
| 28964 | | gt_use_preinstalled_gnugettext=no |
| 28965 | | |
| 28966 | | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 28967 | | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } |
| 28968 | | |
| 28969 | | # Check whether --with-included-gettext was given. |
| 28970 | | if test "${with_included_gettext+set}" = set; then |
| 28971 | | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
| 28972 | | else |
| 28973 | | nls_cv_force_use_gnu_gettext=no |
| 28974 | | fi |
| 28975 | | |
| 28976 | | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 28977 | | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
| 28978 | | |
| 28979 | | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 28980 | | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
| 28981 | | |
| 28982 | | |
| 28983 | | |
| 28984 | | |
| 28985 | | |
| 28986 | | |
| 28987 | | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 28988 | | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } |
| 28989 | | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 28990 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28991 | | else |
| 28992 | | cat >conftest.$ac_ext <<_ACEOF |
| 28993 | | /* confdefs.h. */ |
| 28994 | | _ACEOF |
| 28995 | | cat confdefs.h >>conftest.$ac_ext |
| 28996 | | cat >>conftest.$ac_ext <<_ACEOF |
| 28997 | | /* end confdefs.h. */ |
| 28998 | | #include <libintl.h> |
| 28999 | | extern int _nl_msg_cat_cntr; |
| 29000 | | extern int *_nl_domain_bindings; |
| 29001 | | int |
| 29002 | | main () |
| 29003 | | { |
| 29004 | | bindtextdomain ("", ""); |
| 29005 | | return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 29006 | | ; |
| 29007 | | return 0; |
| 29008 | | } |
| 29009 | | _ACEOF |
| 29010 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29011 | | if { (ac_try="$ac_link" |
| 29012 | | case "(($ac_try" in |
| 29013 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29014 | | *) ac_try_echo=$ac_try;; |
| 29015 | | esac |
| 29016 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29017 | | (eval "$ac_link") 2>conftest.er1 |
| 29018 | | ac_status=$? |
| 29019 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 29020 | | rm -f conftest.er1 |
| 29021 | | cat conftest.err >&5 |
| 29022 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29023 | | (exit $ac_status); } && { |
| 29024 | | test -z "$ac_c_werror_flag" || |
| 29025 | | test ! -s conftest.err |
| 29026 | | } && test -s conftest$ac_exeext && |
| 29027 | | $as_test_x conftest$ac_exeext; then |
| 29028 | | gt_cv_func_gnugettext1_libc=yes |
| 29029 | | else |
| 29030 | | echo "$as_me: failed program was:" >&5 |
| 29031 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29032 | | |
| 29033 | | gt_cv_func_gnugettext1_libc=no |
| 29034 | | fi |
| 29035 | | |
| 29036 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 29037 | | conftest$ac_exeext conftest.$ac_ext |
| 29038 | | fi |
| 29039 | | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 29040 | | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
| 29041 | | |
| 29042 | | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
| 29737 | | CFPreferencesCopyAppValue(NULL, NULL) |
| | 21936 | #ifndef __GNUC__ |
| | 21937 | choke me |
| | 21938 | #endif |
| | 21939 | |
| | 21940 | ; |
| | 21941 | return 0; |
| | 21942 | } |
| | 21943 | _ACEOF |
| | 21944 | rm -f conftest.$ac_objext |
| | 21945 | if { (ac_try="$ac_compile" |
| | 21946 | case "(($ac_try" in |
| | 21947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 21948 | *) ac_try_echo=$ac_try;; |
| | 21949 | esac |
| | 21950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 21951 | (eval "$ac_compile") 2>conftest.er1 |
| | 21952 | ac_status=$? |
| | 21953 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 21954 | rm -f conftest.er1 |
| | 21955 | cat conftest.err >&5 |
| | 21956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 21957 | (exit $ac_status); } && { |
| | 21958 | test -z "$ac_c_werror_flag" || |
| | 21959 | test ! -s conftest.err |
| | 21960 | } && test -s conftest.$ac_objext; then |
| | 21961 | ac_compiler_gnu=yes |
| | 21962 | else |
| | 21963 | echo "$as_me: failed program was:" >&5 |
| | 21964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 21965 | |
| | 21966 | ac_compiler_gnu=no |
| | 21967 | fi |
| | 21968 | |
| | 21969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 21970 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| | 21971 | |
| | 21972 | fi |
| | 21973 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| | 21974 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| | 21975 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| | 21976 | ac_test_CFLAGS=${CFLAGS+set} |
| | 21977 | ac_save_CFLAGS=$CFLAGS |
| | 21978 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| | 21979 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| | 21980 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| | 21981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 21982 | else |
| | 21983 | ac_save_c_werror_flag=$ac_c_werror_flag |
| | 21984 | ac_c_werror_flag=yes |
| | 21985 | ac_cv_prog_cc_g=no |
| | 21986 | CFLAGS="-g" |
| | 21987 | cat >conftest.$ac_ext <<_ACEOF |
| | 21988 | /* confdefs.h. */ |
| | 21989 | _ACEOF |
| | 21990 | cat confdefs.h >>conftest.$ac_ext |
| | 21991 | cat >>conftest.$ac_ext <<_ACEOF |
| | 21992 | /* end confdefs.h. */ |
| | 21993 | |
| | 21994 | int |
| | 21995 | main () |
| | 21996 | { |
| | 21997 | |
| | 21998 | ; |
| | 21999 | return 0; |
| | 22000 | } |
| | 22001 | _ACEOF |
| | 22002 | rm -f conftest.$ac_objext |
| | 22003 | if { (ac_try="$ac_compile" |
| | 22004 | case "(($ac_try" in |
| | 22005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 22006 | *) ac_try_echo=$ac_try;; |
| | 22007 | esac |
| | 22008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 22009 | (eval "$ac_compile") 2>conftest.er1 |
| | 22010 | ac_status=$? |
| | 22011 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 22012 | rm -f conftest.er1 |
| | 22013 | cat conftest.err >&5 |
| | 22014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 22015 | (exit $ac_status); } && { |
| | 22016 | test -z "$ac_c_werror_flag" || |
| | 22017 | test ! -s conftest.err |
| | 22018 | } && test -s conftest.$ac_objext; then |
| | 22019 | ac_cv_prog_cc_g=yes |
| | 22020 | else |
| | 22021 | echo "$as_me: failed program was:" >&5 |
| | 22022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 22023 | |
| | 22024 | CFLAGS="" |
| | 22025 | cat >conftest.$ac_ext <<_ACEOF |
| | 22026 | /* confdefs.h. */ |
| | 22027 | _ACEOF |
| | 22028 | cat confdefs.h >>conftest.$ac_ext |
| | 22029 | cat >>conftest.$ac_ext <<_ACEOF |
| | 22030 | /* end confdefs.h. */ |
| | 22031 | |
| | 22032 | int |
| | 22033 | main () |
| | 22034 | { |
| | 22035 | |
| | 22036 | ; |
| | 22037 | return 0; |
| | 22038 | } |
| | 22039 | _ACEOF |
| | 22040 | rm -f conftest.$ac_objext |
| | 22041 | if { (ac_try="$ac_compile" |
| | 22042 | case "(($ac_try" in |
| | 22043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 22044 | *) ac_try_echo=$ac_try;; |
| | 22045 | esac |
| | 22046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 22047 | (eval "$ac_compile") 2>conftest.er1 |
| | 22048 | ac_status=$? |
| | 22049 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 22050 | rm -f conftest.er1 |
| | 22051 | cat conftest.err >&5 |
| | 22052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 22053 | (exit $ac_status); } && { |
| | 22054 | test -z "$ac_c_werror_flag" || |
| | 22055 | test ! -s conftest.err |
| | 22056 | } && test -s conftest.$ac_objext; then |
| | 22057 | : |
| | 22058 | else |
| | 22059 | echo "$as_me: failed program was:" >&5 |
| | 22060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 22061 | |
| | 22062 | ac_c_werror_flag=$ac_save_c_werror_flag |
| | 22063 | CFLAGS="-g" |
| | 22064 | cat >conftest.$ac_ext <<_ACEOF |
| | 22065 | /* confdefs.h. */ |
| | 22066 | _ACEOF |
| | 22067 | cat confdefs.h >>conftest.$ac_ext |
| | 22068 | cat >>conftest.$ac_ext <<_ACEOF |
| | 22069 | /* end confdefs.h. */ |
| | 22070 | |
| | 22071 | int |
| | 22072 | main () |
| | 22073 | { |
| | 22074 | |
| | 22075 | ; |
| | 22076 | return 0; |
| | 22077 | } |
| | 22078 | _ACEOF |
| | 22079 | rm -f conftest.$ac_objext |
| | 22080 | if { (ac_try="$ac_compile" |
| | 22081 | case "(($ac_try" in |
| | 22082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 22083 | *) ac_try_echo=$ac_try;; |
| | 22084 | esac |
| | 22085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 22086 | (eval "$ac_compile") 2>conftest.er1 |
| | 22087 | ac_status=$? |
| | 22088 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 22089 | rm -f conftest.er1 |
| | 22090 | cat conftest.err >&5 |
| | 22091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 22092 | (exit $ac_status); } && { |
| | 22093 | test -z "$ac_c_werror_flag" || |
| | 22094 | test ! -s conftest.err |
| | 22095 | } && test -s conftest.$ac_objext; then |
| | 22096 | ac_cv_prog_cc_g=yes |
| | 22097 | else |
| | 22098 | echo "$as_me: failed program was:" >&5 |
| | 22099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 22100 | |
| | 22101 | |
| | 22102 | fi |
| | 22103 | |
| | 22104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 22105 | fi |
| | 22106 | |
| | 22107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 22108 | fi |
| | 22109 | |
| | 22110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 22111 | ac_c_werror_flag=$ac_save_c_werror_flag |
| | 22112 | fi |
| | 22113 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| | 22114 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| | 22115 | if test "$ac_test_CFLAGS" = set; then |
| | 22116 | CFLAGS=$ac_save_CFLAGS |
| | 22117 | elif test $ac_cv_prog_cc_g = yes; then |
| | 22118 | if test "$GCC" = yes; then |
| | 22119 | CFLAGS="-g -O2" |
| | 22120 | else |
| | 22121 | CFLAGS="-g" |
| | 22122 | fi |
| | 22123 | else |
| | 22124 | if test "$GCC" = yes; then |
| | 22125 | CFLAGS="-O2" |
| | 22126 | else |
| | 22127 | CFLAGS= |
| | 22128 | fi |
| | 22129 | fi |
| | 22130 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| | 22131 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| | 22132 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| | 22133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 22134 | else |
| | 22135 | ac_cv_prog_cc_c89=no |
| | 22136 | ac_save_CC=$CC |
| | 22137 | cat >conftest.$ac_ext <<_ACEOF |
| | 22138 | /* confdefs.h. */ |
| | 22139 | _ACEOF |
| | 22140 | cat confdefs.h >>conftest.$ac_ext |
| | 22141 | cat >>conftest.$ac_ext <<_ACEOF |
| | 22142 | /* end confdefs.h. */ |
| | 22143 | #include <stdarg.h> |
| | 22144 | #include <stdio.h> |
| | 22145 | #include <sys/types.h> |
| | 22146 | #include <sys/stat.h> |
| | 22147 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| | 22148 | struct buf { int x; }; |
| | 22149 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| | 22150 | static char *e (p, i) |
| | 22151 | char **p; |
| | 22152 | int i; |
| | 22153 | { |
| | 22154 | return p[i]; |
| | 22155 | } |
| | 22156 | static char *f (char * (*g) (char **, int), char **p, ...) |
| | 22157 | { |
| | 22158 | char *s; |
| | 22159 | va_list v; |
| | 22160 | va_start (v,p); |
| | 22161 | s = g (p, va_arg (v,int)); |
| | 22162 | va_end (v); |
| | 22163 | return s; |
| | 22164 | } |
| | 22165 | |
| | 22166 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| | 22167 | function prototypes and stuff, but not '\xHH' hex character constants. |
| | 22168 | These don't provoke an error unfortunately, instead are silently treated |
| | 22169 | as 'x'. The following induces an error, until -std is added to get |
| | 22170 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| | 22171 | array size at least. It's necessary to write '\x00'==0 to get something |
| | 22172 | that's true only with -std. */ |
| | 22173 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| | 22174 | |
| | 22175 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| | 22176 | inside strings and character constants. */ |
| | 22177 | #define FOO(x) 'x' |
| | 22178 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| | 22179 | |
| | 22180 | int test (int i, double x); |
| | 22181 | struct s1 {int (*f) (int a);}; |
| | 22182 | struct s2 {int (*f) (double a);}; |
| | 22183 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| | 22184 | int argc; |
| | 22185 | char **argv; |
| | 22186 | int |
| | 22187 | main () |
| | 22188 | { |
| | 22189 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| | 22190 | ; |
| | 22191 | return 0; |
| | 22192 | } |
| | 22193 | _ACEOF |
| | 22194 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| | 22195 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| | 22196 | do |
| | 22197 | CC="$ac_save_CC $ac_arg" |
| | 22198 | rm -f conftest.$ac_objext |
| | 22199 | if { (ac_try="$ac_compile" |
| | 22200 | case "(($ac_try" in |
| | 22201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 22202 | *) ac_try_echo=$ac_try;; |
| | 22203 | esac |
| | 22204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 22205 | (eval "$ac_compile") 2>conftest.er1 |
| | 22206 | ac_status=$? |
| | 22207 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 22208 | rm -f conftest.er1 |
| | 22209 | cat conftest.err >&5 |
| | 22210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 22211 | (exit $ac_status); } && { |
| | 22212 | test -z "$ac_c_werror_flag" || |
| | 22213 | test ! -s conftest.err |
| | 22214 | } && test -s conftest.$ac_objext; then |
| | 22215 | ac_cv_prog_cc_c89=$ac_arg |
| | 22216 | else |
| | 22217 | echo "$as_me: failed program was:" >&5 |
| | 22218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 22219 | |
| | 22220 | |
| | 22221 | fi |
| | 22222 | |
| | 22223 | rm -f core conftest.err conftest.$ac_objext |
| | 22224 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| | 22225 | done |
| | 22226 | rm -f conftest.$ac_ext |
| | 22227 | CC=$ac_save_CC |
| | 22228 | |
| | 22229 | fi |
| | 22230 | # AC_CACHE_VAL |
| | 22231 | case "x$ac_cv_prog_cc_c89" in |
| | 22232 | x) |
| | 22233 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| | 22234 | echo "${ECHO_T}none needed" >&6; } ;; |
| | 22235 | xno) |
| | 22236 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| | 22237 | echo "${ECHO_T}unsupported" >&6; } ;; |
| | 22238 | *) |
| | 22239 | CC="$CC $ac_cv_prog_cc_c89" |
| | 22240 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| | 22241 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| | 22242 | esac |
| | 22243 | |
| | 22244 | |
| | 22245 | ac_ext=c |
| | 22246 | ac_cpp='$CPP $CPPFLAGS' |
| | 22247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 22248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 22249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | 22250 | |
| | 22251 | depcc="$CC" am_compiler_list= |
| | 22252 | |
| | 22253 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| | 22254 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
| | 22255 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| | 22256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 22257 | else |
| | 22258 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| | 22259 | # We make a subdir and do the tests there. Otherwise we can end up |
| | 22260 | # making bogus files that we don't know about and never remove. For |
| | 22261 | # instance it was reported that on HP-UX the gcc test will end up |
| | 22262 | # making a dummy file named `D' -- because `-MD' means `put the output |
| | 22263 | # in D'. |
| | 22264 | mkdir conftest.dir |
| | 22265 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| | 22266 | # using a relative directory. |
| | 22267 | cp "$am_depcomp" conftest.dir |
| | 22268 | cd conftest.dir |
| | 22269 | # We will build objects and dependencies in a subdirectory because |
| | 22270 | # it helps to detect inapplicable dependency modes. For instance |
| | 22271 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| | 22272 | # side effect of compilation, but ICC will put the dependencies in |
| | 22273 | # the current directory while Tru64 will put them in the object |
| | 22274 | # directory. |
| | 22275 | mkdir sub |
| | 22276 | |
| | 22277 | am_cv_CC_dependencies_compiler_type=none |
| | 22278 | if test "$am_compiler_list" = ""; then |
| | 22279 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| | 22280 | fi |
| | 22281 | for depmode in $am_compiler_list; do |
| | 22282 | # Setup a source with many dependencies, because some compilers |
| | 22283 | # like to wrap large dependency lists on column 80 (with \), and |
| | 22284 | # we should not choose a depcomp mode which is confused by this. |
| | 22285 | # |
| | 22286 | # We need to recreate these files for each test, as the compiler may |
| | 22287 | # overwrite some of them when testing with obscure command lines. |
| | 22288 | # This happens at least with the AIX C compiler. |
| | 22289 | : > sub/conftest.c |
| | 22290 | for i in 1 2 3 4 5 6; do |
| | 22291 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| | 22292 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| | 22293 | # Solaris 8's {/usr,}/bin/sh. |
| | 22294 | touch sub/conftst$i.h |
| | 22295 | done |
| | 22296 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| | 22297 | |
| | 22298 | case $depmode in |
| | 22299 | nosideeffect) |
| | 22300 | # after this tag, mechanisms are not by side-effect, so they'll |
| | 22301 | # only be used when explicitly requested |
| | 22302 | if test "x$enable_dependency_tracking" = xyes; then |
| | 22303 | continue |
| | 22304 | else |
| | 22305 | break |
| | 22306 | fi |
| | 22307 | ;; |
| | 22308 | none) break ;; |
| | 22309 | esac |
| | 22310 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| | 22311 | # mode. It turns out that the SunPro C++ compiler does not properly |
| | 22312 | # handle `-M -o', and we need to detect this. |
| | 22313 | if depmode=$depmode \ |
| | 22314 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| | 22315 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| | 22316 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| | 22317 | >/dev/null 2>conftest.err && |
| | 22318 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| | 22319 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| | 22320 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| | 22321 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| | 22322 | # icc doesn't choke on unknown options, it will just issue warnings |
| | 22323 | # or remarks (even with -Werror). So we grep stderr for any message |
| | 22324 | # that says an option was ignored or not supported. |
| | 22325 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| | 22326 | # icc: Command line warning: ignoring option '-M'; no argument required |
| | 22327 | # The diagnosis changed in icc 8.0: |
| | 22328 | # icc: Command line remark: option '-MP' not supported |
| | 22329 | if (grep 'ignoring option' conftest.err || |
| | 22330 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| | 22331 | am_cv_CC_dependencies_compiler_type=$depmode |
| | 22332 | break |
| | 22333 | fi |
| | 22334 | fi |
| | 22335 | done |
| | 22336 | |
| | 22337 | cd .. |
| | 22338 | rm -rf conftest.dir |
| | 22339 | else |
| | 22340 | am_cv_CC_dependencies_compiler_type=none |
| | 22341 | fi |
| | 22342 | |
| | 22343 | fi |
| | 22344 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| | 22345 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
| | 22346 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| | 22347 | |
| | 22348 | if |
| | 22349 | test "x$enable_dependency_tracking" != xno \ |
| | 22350 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| | 22351 | am__fastdepCC_TRUE= |
| | 22352 | am__fastdepCC_FALSE='#' |
| | 22353 | else |
| | 22354 | am__fastdepCC_TRUE='#' |
| | 22355 | am__fastdepCC_FALSE= |
| | 22356 | fi |
| | 22357 | |
| | 22358 | |
| | 22359 | ac_ext=c |
| | 22360 | ac_cpp='$CPP $CPPFLAGS' |
| | 22361 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 22362 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 22363 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | 22364 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| | 22365 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| | 22366 | # On Suns, sometimes $CPP names a directory. |
| | 22367 | if test -n "$CPP" && test -d "$CPP"; then |
| | 22368 | CPP= |
| | 22369 | fi |
| | 22370 | if test -z "$CPP"; then |
| | 22371 | if test "${ac_cv_prog_CPP+set}" = set; then |
| | 22372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 22373 | else |
| | 22374 | # Double quotes because CPP needs to be expanded |
| | 22375 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| | 22376 | do |
| | 22377 | ac_preproc_ok=false |
| | 22378 | for ac_c_preproc_warn_flag in '' yes |
| | 22379 | do |
| | 22380 | # Use a header file that comes with gcc, so configuring glibc |
| | 22381 | # with a fresh cross-compiler works. |
| | 22382 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | 22383 | # <limits.h> exists even on freestanding compilers. |
| | 22384 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| | 22385 | # not just through cpp. "Syntax error" is here to catch this case. |
| | 22386 | cat >conftest.$ac_ext <<_ACEOF |
| | 22387 | /* confdefs.h. */ |
| | 22388 | _ACEOF |
| | 22389 | cat confdefs.h >>conftest.$ac_ext |
| | 22390 | cat >>conftest.$ac_ext <<_ACEOF |
| | 22391 | /* end confdefs.h. */ |
| | 22392 | #ifdef __STDC__ |
| | 22393 | # include <limits.h> |
| | 22394 | #else |
| | 22395 | # include <assert.h> |
| | 22396 | #endif |
| | 22397 | Syntax error |
| | 22398 | _ACEOF |
| | 22399 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| | 22400 | case "(($ac_try" in |
| | 22401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 22402 | *) ac_try_echo=$ac_try;; |
| | 22403 | esac |
| | 22404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 22405 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| | 22406 | ac_status=$? |
| | 22407 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 22408 | rm -f conftest.er1 |
| | 22409 | cat conftest.err >&5 |
| | 22410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 22411 | (exit $ac_status); } >/dev/null && { |
| | 22412 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| | 22413 | test ! -s conftest.err |
| | 22414 | }; then |
| | 22415 | : |
| | 22416 | else |
| | 22417 | echo "$as_me: failed program was:" >&5 |
| | 22418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 22419 | |
| | 22420 | # Broken: fails on valid input. |
| | 22421 | continue |
| | 22422 | fi |
| | 22423 | |
| | 22424 | rm -f conftest.err conftest.$ac_ext |
| | 22425 | |
| | 22426 | # OK, works on sane cases. Now check whether nonexistent headers |
| | 22427 | # can be detected and how. |
| | 22428 | cat >conftest.$ac_ext <<_ACEOF |
| | 22429 | /* confdefs.h. */ |
| | 22430 | _ACEOF |
| | 22431 | cat confdefs.h >>conftest.$ac_ext |
| | 22432 | cat >>conftest.$ac_ext <<_ACEOF |
| | 22433 | /* end confdefs.h. */ |
| | 22434 | #include <ac_nonexistent.h> |
| | 22435 | _ACEOF |
| | 22436 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| | 22437 | case "(($ac_try" in |
| | 22438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 22439 | *) ac_try_echo=$ac_try;; |
| | 22440 | esac |
| | 22441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 22442 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| | 22443 | ac_status=$? |
| | 22444 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 22445 | rm -f conftest.er1 |
| | 22446 | cat conftest.err >&5 |
| | 22447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 22448 | (exit $ac_status); } >/dev/null && { |
| | 22449 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| | 22450 | test ! -s conftest.err |
| | 22451 | }; then |
| | 22452 | # Broken: success on invalid input. |
| | 22453 | continue |
| | 22454 | else |
| | 22455 | echo "$as_me: failed program was:" >&5 |
| | 22456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 22457 | |
| | 22458 | # Passes both tests. |
| | 22459 | ac_preproc_ok=: |
| | 22460 | break |
| | 22461 | fi |
| | 22462 | |
| | 22463 | rm -f conftest.err conftest.$ac_ext |
| | 22464 | |
| | 22465 | done |
| | 22466 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| | 22467 | rm -f conftest.err conftest.$ac_ext |
| | 22468 | if $ac_preproc_ok; then |
| | 22469 | break |
| | 22470 | fi |
| | 22471 | |
| | 22472 | done |
| | 22473 | ac_cv_prog_CPP=$CPP |
| | 22474 | |
| | 22475 | fi |
| | 22476 | CPP=$ac_cv_prog_CPP |
| | 22477 | else |
| | 22478 | ac_cv_prog_CPP=$CPP |
| | 22479 | fi |
| | 22480 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| | 22481 | echo "${ECHO_T}$CPP" >&6; } |
| | 22482 | ac_preproc_ok=false |
| | 22483 | for ac_c_preproc_warn_flag in '' yes |
| | 22484 | do |
| | 22485 | # Use a header file that comes with gcc, so configuring glibc |
| | 22486 | # with a fresh cross-compiler works. |
| | 22487 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | 22488 | # <limits.h> exists even on freestanding compilers. |
| | 22489 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| | 22490 | # not just through cpp. "Syntax error" is here to catch this case. |
| | 22491 | cat >conftest.$ac_ext <<_ACEOF |
| | 22492 | /* confdefs.h. */ |
| | 22493 | _ACEOF |
| | 22494 | cat confdefs.h >>conftest.$ac_ext |
| | 22495 | cat >>conftest.$ac_ext <<_ACEOF |
| | 22496 | /* end confdefs.h. */ |
| | 22497 | #ifdef __STDC__ |
| | 22498 | # include <limits.h> |
| | 22499 | #else |
| | 22500 | # include <assert.h> |
| | 22501 | #endif |
| | 22502 | Syntax error |
| | 22503 | _ACEOF |
| | 22504 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| | 22505 | case "(($ac_try" in |
| | 22506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 22507 | *) ac_try_echo=$ac_try;; |
| | 22508 | esac |
| | 22509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 22510 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| | 22511 | ac_status=$? |
| | 22512 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 22513 | rm -f conftest.er1 |
| | 22514 | cat conftest.err >&5 |
| | 22515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 22516 | (exit $ac_status); } >/dev/null && { |
| | 22517 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| | 22518 | test ! -s conftest.err |
| | 22519 | }; then |
| | 22520 | : |
| | 22521 | else |
| | 22522 | echo "$as_me: failed program was:" >&5 |
| | 22523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 22524 | |
| | 22525 | # Broken: fails on valid input. |
| | 22526 | continue |
| | 22527 | fi |
| | 22528 | |
| | 22529 | rm -f conftest.err conftest.$ac_ext |
| | 22530 | |
| | 22531 | # OK, works on sane cases. Now check whether nonexistent headers |
| | 22532 | # can be detected and how. |
| | 22533 | cat >conftest.$ac_ext <<_ACEOF |
| | 22534 | /* confdefs.h. */ |
| | 22535 | _ACEOF |
| | 22536 | cat confdefs.h >>conftest.$ac_ext |
| | 22537 | cat >>conftest.$ac_ext <<_ACEOF |
| | 22538 | /* end confdefs.h. */ |
| | 22539 | #include <ac_nonexistent.h> |
| | 22540 | _ACEOF |
| | 22541 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| | 22542 | case "(($ac_try" in |
| | 22543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 22544 | *) ac_try_echo=$ac_try;; |
| | 22545 | esac |
| | 22546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 22547 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| | 22548 | ac_status=$? |
| | 22549 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 22550 | rm -f conftest.er1 |
| | 22551 | cat conftest.err >&5 |
| | 22552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 22553 | (exit $ac_status); } >/dev/null && { |
| | 22554 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| | 22555 | test ! -s conftest.err |
| | 22556 | }; then |
| | 22557 | # Broken: success on invalid input. |
| | 22558 | continue |
| | 22559 | else |
| | 22560 | echo "$as_me: failed program was:" >&5 |
| | 22561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 22562 | |
| | 22563 | # Passes both tests. |
| | 22564 | ac_preproc_ok=: |
| | 22565 | break |
| | 22566 | fi |
| | 22567 | |
| | 22568 | rm -f conftest.err conftest.$ac_ext |
| | 22569 | |
| | 22570 | done |
| | 22571 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| | 22572 | rm -f conftest.err conftest.$ac_ext |
| | 22573 | if $ac_preproc_ok; then |
| | 22574 | : |
| | 22575 | else |
| | 22576 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| | 22577 | See \`config.log' for more details." >&5 |
| | 22578 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| | 22579 | See \`config.log' for more details." >&2;} |
| | 22580 | { (exit 1); exit 1; }; } |
| | 22581 | fi |
| | 22582 | |
| | 22583 | ac_ext=c |
| | 22584 | ac_cpp='$CPP $CPPFLAGS' |
| | 22585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 22586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 22587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | 22588 | |
| | 22589 | # Find a good install program. We prefer a C program (faster), |
| | 22590 | # so one script is as good as another. But avoid the broken or |
| | 22591 | # incompatible versions: |
| | 22592 | # SysV /etc/install, /usr/sbin/install |
| | 22593 | # SunOS /usr/etc/install |
| | 22594 | # IRIX /sbin/install |
| | 22595 | # AIX /bin/install |
| | 22596 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| | 22597 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| | 22598 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| | 22599 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| | 22600 | # OS/2's system install, which has a completely different semantic |
| | 22601 | # ./install, which can be erroneously created by make from ./install.sh. |
| | 22602 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| | 22603 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| | 22604 | if test -z "$INSTALL"; then |
| | 22605 | if test "${ac_cv_path_install+set}" = set; then |
| | 22606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 22607 | else |
| | 22608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 22609 | for as_dir in $PATH |
| | 22610 | do |
| | 22611 | IFS=$as_save_IFS |
| | 22612 | test -z "$as_dir" && as_dir=. |
| | 22613 | # Account for people who put trailing slashes in PATH elements. |
| | 22614 | case $as_dir/ in |
| | 22615 | ./ | .// | /cC/* | \ |
| | 22616 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| | 22617 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| | 22618 | /usr/ucb/* ) ;; |
| | 22619 | *) |
| | 22620 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| | 22621 | # Don't use installbsd from OSF since it installs stuff as root |
| | 22622 | # by default. |
| | 22623 | for ac_prog in ginstall scoinst install; do |
| | 22624 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 22625 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| | 22626 | if test $ac_prog = install && |
| | 22627 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| | 22628 | # AIX install. It has an incompatible calling convention. |
| | 22629 | : |
| | 22630 | elif test $ac_prog = install && |
| | 22631 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| | 22632 | # program-specific install script used by HP pwplus--don't use. |
| | 22633 | : |
| | 22634 | else |
| | 22635 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| | 22636 | break 3 |
| | 22637 | fi |
| | 22638 | fi |
| | 22639 | done |
| | 22640 | done |
| | 22641 | ;; |
| | 22642 | esac |
| | 22643 | done |
| | 22644 | IFS=$as_save_IFS |
| | 22645 | |
| | 22646 | |
| | 22647 | fi |
| | 22648 | if test "${ac_cv_path_install+set}" = set; then |
| | 22649 | INSTALL=$ac_cv_path_install |
| | 22650 | else |
| | 22651 | # As a last resort, use the slow shell script. Don't cache a |
| | 22652 | # value for INSTALL within a source directory, because that will |
| | 22653 | # break other packages using the cache if that directory is |
| | 22654 | # removed, or if the value is a relative name. |
| | 22655 | INSTALL=$ac_install_sh |
| | 22656 | fi |
| | 22657 | fi |
| | 22658 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| | 22659 | echo "${ECHO_T}$INSTALL" >&6; } |
| | 22660 | |
| | 22661 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| | 22662 | # It thinks the first close brace ends the variable substitution. |
| | 22663 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| | 22664 | |
| | 22665 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| | 22666 | |
| | 22667 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| | 22668 | |
| | 22669 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| | 22670 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| | 22671 | LN_S=$as_ln_s |
| | 22672 | if test "$LN_S" = "ln -s"; then |
| | 22673 | { echo "$as_me:$LINENO: result: yes" >&5 |
| | 22674 | echo "${ECHO_T}yes" >&6; } |
| | 22675 | else |
| | 22676 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| | 22677 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| | 22678 | fi |
| | 22679 | |
| | 22680 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| | 22681 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| | 22682 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| | 22683 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| | 22684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 22685 | else |
| | 22686 | cat >conftest.make <<\_ACEOF |
| | 22687 | SHELL = /bin/sh |
| | 22688 | all: |
| | 22689 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| | 22690 | _ACEOF |
| | 22691 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| | 22692 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| | 22693 | *@@@%%%=?*=@@@%%%*) |
| | 22694 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| | 22695 | *) |
| | 22696 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| | 22697 | esac |
| | 22698 | rm -f conftest.make |
| | 22699 | fi |
| | 22700 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| | 22701 | { echo "$as_me:$LINENO: result: yes" >&5 |
| | 22702 | echo "${ECHO_T}yes" >&6; } |
| | 22703 | SET_MAKE= |
| | 22704 | else |
| | 22705 | { echo "$as_me:$LINENO: result: no" >&5 |
| | 22706 | echo "${ECHO_T}no" >&6; } |
| | 22707 | SET_MAKE="MAKE=${MAKE-make}" |
| | 22708 | fi |
| | 22709 | |
| | 22710 | if test -n "$ac_tool_prefix"; then |
| | 22711 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| | 22712 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| | 22713 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 22714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| | 22715 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| | 22716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 22717 | else |
| | 22718 | if test -n "$RANLIB"; then |
| | 22719 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| | 22720 | else |
| | 22721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 22722 | for as_dir in $PATH |
| | 22723 | do |
| | 22724 | IFS=$as_save_IFS |
| | 22725 | test -z "$as_dir" && as_dir=. |
| | 22726 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 22727 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| | 22728 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| | 22729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 22730 | break 2 |
| | 22731 | fi |
| | 22732 | done |
| | 22733 | done |
| | 22734 | IFS=$as_save_IFS |
| | 22735 | |
| | 22736 | fi |
| | 22737 | fi |
| | 22738 | RANLIB=$ac_cv_prog_RANLIB |
| | 22739 | if test -n "$RANLIB"; then |
| | 22740 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| | 22741 | echo "${ECHO_T}$RANLIB" >&6; } |
| | 22742 | else |
| | 22743 | { echo "$as_me:$LINENO: result: no" >&5 |
| | 22744 | echo "${ECHO_T}no" >&6; } |
| | 22745 | fi |
| | 22746 | |
| | 22747 | |
| | 22748 | fi |
| | 22749 | if test -z "$ac_cv_prog_RANLIB"; then |
| | 22750 | ac_ct_RANLIB=$RANLIB |
| | 22751 | # Extract the first word of "ranlib", so it can be a program name with args. |
| | 22752 | set dummy ranlib; ac_word=$2 |
| | 22753 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 22754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| | 22755 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| | 22756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 22757 | else |
| | 22758 | if test -n "$ac_ct_RANLIB"; then |
| | 22759 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| | 22760 | else |
| | 22761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 22762 | for as_dir in $PATH |
| | 22763 | do |
| | 22764 | IFS=$as_save_IFS |
| | 22765 | test -z "$as_dir" && as_dir=. |
| | 22766 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 22767 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| | 22768 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| | 22769 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 22770 | break 2 |
| | 22771 | fi |
| | 22772 | done |
| | 22773 | done |
| | 22774 | IFS=$as_save_IFS |
| | 22775 | |
| | 22776 | fi |
| | 22777 | fi |
| | 22778 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| | 22779 | if test -n "$ac_ct_RANLIB"; then |
| | 22780 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| | 22781 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| | 22782 | else |
| | 22783 | { echo "$as_me:$LINENO: result: no" >&5 |
| | 22784 | echo "${ECHO_T}no" >&6; } |
| | 22785 | fi |
| | 22786 | |
| | 22787 | if test "x$ac_ct_RANLIB" = x; then |
| | 22788 | RANLIB=":" |
| | 22789 | else |
| | 22790 | case $cross_compiling:$ac_tool_warned in |
| | 22791 | yes:) |
| | 22792 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| | 22793 | whose name does not start with the host triplet. If you think this |
| | 22794 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| | 22795 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| | 22796 | whose name does not start with the host triplet. If you think this |
| | 22797 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| | 22798 | ac_tool_warned=yes ;; |
| | 22799 | esac |
| | 22800 | RANLIB=$ac_ct_RANLIB |
| | 22801 | fi |
| | 22802 | else |
| | 22803 | RANLIB="$ac_cv_prog_RANLIB" |
| | 22804 | fi |
| | 22805 | |
| | 22806 | |
| | 22807 | |
| | 22808 | |
| | 22809 | # Checks for header files. |
| | 22810 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| | 22811 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| | 22812 | if test "${ac_cv_header_stdc+set}" = set; then |
| | 22813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 22814 | else |
| | 22815 | cat >conftest.$ac_ext <<_ACEOF |
| | 22816 | /* confdefs.h. */ |
| | 22817 | _ACEOF |
| | 22818 | cat confdefs.h >>conftest.$ac_ext |
| | 22819 | cat >>conftest.$ac_ext <<_ACEOF |
| | 22820 | /* end confdefs.h. */ |
| | 22821 | #include <stdlib.h> |
| | 22822 | #include <stdarg.h> |
| | 22823 | #include <string.h> |
| | 22824 | #include <float.h> |
| | 22825 | |
| | 22826 | int |
| | 22827 | main () |
| | 22828 | { |
| | 22829 | |
| | 22830 | ; |
| | 22831 | return 0; |
| | 22832 | } |
| | 22833 | _ACEOF |
| | 22834 | rm -f conftest.$ac_objext |
| | 22835 | if { (ac_try="$ac_compile" |
| | 22836 | case "(($ac_try" in |
| | 22837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 22838 | *) ac_try_echo=$ac_try;; |
| | 22839 | esac |
| | 22840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 22841 | (eval "$ac_compile") 2>conftest.er1 |
| | 22842 | ac_status=$? |
| | 22843 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 22844 | rm -f conftest.er1 |
| | 22845 | cat conftest.err >&5 |
| | 22846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 22847 | (exit $ac_status); } && { |
| | 22848 | test -z "$ac_c_werror_flag" || |
| | 22849 | test ! -s conftest.err |
| | 22850 | } && test -s conftest.$ac_objext; then |
| | 22851 | ac_cv_header_stdc=yes |
| | 22852 | else |
| | 22853 | echo "$as_me: failed program was:" >&5 |
| | 22854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 22855 | |
| | 22856 | ac_cv_header_stdc=no |
| | 22857 | fi |
| | 22858 | |
| | 22859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 22860 | |
| | 22861 | if test $ac_cv_header_stdc = yes; then |
| | 22862 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| | 22863 | cat >conftest.$ac_ext <<_ACEOF |
| | 22864 | /* confdefs.h. */ |
| | 22865 | _ACEOF |
| | 22866 | cat confdefs.h >>conftest.$ac_ext |
| | 22867 | cat >>conftest.$ac_ext <<_ACEOF |
| | 22868 | /* end confdefs.h. */ |
| | 22869 | #include <string.h> |
| | 22870 | |
| | 22871 | _ACEOF |
| | 22872 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| | 22873 | $EGREP "memchr" >/dev/null 2>&1; then |
| | 22874 | : |
| | 22875 | else |
| | 22876 | ac_cv_header_stdc=no |
| | 22877 | fi |
| | 22878 | rm -f conftest* |
| | 22879 | |
| | 22880 | fi |
| | 22881 | |
| | 22882 | if test $ac_cv_header_stdc = yes; then |
| | 22883 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| | 22884 | cat >conftest.$ac_ext <<_ACEOF |
| | 22885 | /* confdefs.h. */ |
| | 22886 | _ACEOF |
| | 22887 | cat confdefs.h >>conftest.$ac_ext |
| | 22888 | cat >>conftest.$ac_ext <<_ACEOF |
| | 22889 | /* end confdefs.h. */ |
| | 22890 | #include <stdlib.h> |
| | 22891 | |
| | 22892 | _ACEOF |
| | 22893 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| | 22894 | $EGREP "free" >/dev/null 2>&1; then |
| | 22895 | : |
| | 22896 | else |
| | 22897 | ac_cv_header_stdc=no |
| | 22898 | fi |
| | 22899 | rm -f conftest* |
| | 22900 | |
| | 22901 | fi |
| | 22902 | |
| | 22903 | if test $ac_cv_header_stdc = yes; then |
| | 22904 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| | 22905 | if test "$cross_compiling" = yes; then |
| | 22906 | : |
| | 22907 | else |
| | 22908 | cat >conftest.$ac_ext <<_ACEOF |
| | 22909 | /* confdefs.h. */ |
| | 22910 | _ACEOF |
| | 22911 | cat confdefs.h >>conftest.$ac_ext |
| | 22912 | cat >>conftest.$ac_ext <<_ACEOF |
| | 22913 | /* end confdefs.h. */ |
| | 22914 | #include <ctype.h> |
| | 22915 | #include <stdlib.h> |
| | 22916 | #if ((' ' & 0x0FF) == 0x020) |
| | 22917 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| | 22918 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| | 22919 | #else |
| | 22920 | # define ISLOWER(c) \ |
| | 22921 | (('a' <= (c) && (c) <= 'i') \ |
| | 22922 | || ('j' <= (c) && (c) <= 'r') \ |
| | 22923 | || ('s' <= (c) && (c) <= 'z')) |
| | 22924 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| | 22925 | #endif |
| | 22926 | |
| | 22927 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| | 22928 | int |
| | 22929 | main () |
| | 22930 | { |
| | 22931 | int i; |
| | 22932 | for (i = 0; i < 256; i++) |
| | 22933 | if (XOR (islower (i), ISLOWER (i)) |
| | 22934 | || toupper (i) != TOUPPER (i)) |
| | 22935 | return 2; |
| | 22936 | return 0; |
| | 22937 | } |
| | 22938 | _ACEOF |
| | 22939 | rm -f conftest$ac_exeext |
| | 22940 | if { (ac_try="$ac_link" |
| | 22941 | case "(($ac_try" in |
| | 22942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 22943 | *) ac_try_echo=$ac_try;; |
| | 22944 | esac |
| | 22945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 22946 | (eval "$ac_link") 2>&5 |
| | 22947 | ac_status=$? |
| | 22948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 22949 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| | 22950 | { (case "(($ac_try" in |
| | 22951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 22952 | *) ac_try_echo=$ac_try;; |
| | 22953 | esac |
| | 22954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 22955 | (eval "$ac_try") 2>&5 |
| | 22956 | ac_status=$? |
| | 22957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 22958 | (exit $ac_status); }; }; then |
| | 22959 | : |
| | 22960 | else |
| | 22961 | echo "$as_me: program exited with status $ac_status" >&5 |
| | 22962 | echo "$as_me: failed program was:" >&5 |
| | 22963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 22964 | |
| | 22965 | ( exit $ac_status ) |
| | 22966 | ac_cv_header_stdc=no |
| | 22967 | fi |
| | 22968 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| | 22969 | fi |
| | 22970 | |
| | 22971 | |
| | 22972 | fi |
| | 22973 | fi |
| | 22974 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| | 22975 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
| | 22976 | if test $ac_cv_header_stdc = yes; then |
| | 22977 | |
| | 22978 | cat >>confdefs.h <<\_ACEOF |
| | 22979 | #define STDC_HEADERS 1 |
| | 22980 | _ACEOF |
| | 22981 | |
| | 22982 | fi |
| | 22983 | |
| | 22984 | |
| | 22985 | |
| | 22986 | |
| | 22987 | |
| | 22988 | |
| | 22989 | |
| | 22990 | for ac_header in netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h |
| | 22991 | do |
| | 22992 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| | 22993 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| | 22994 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| | 22995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| | 22996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| | 22997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 22998 | fi |
| | 22999 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| | 23000 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| | 23001 | echo "${ECHO_T}$ac_res" >&6; } |
| | 23002 | else |
| | 23003 | # Is the header compilable? |
| | 23004 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| | 23005 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| | 23006 | cat >conftest.$ac_ext <<_ACEOF |
| | 23007 | /* confdefs.h. */ |
| | 23008 | _ACEOF |
| | 23009 | cat confdefs.h >>conftest.$ac_ext |
| | 23010 | cat >>conftest.$ac_ext <<_ACEOF |
| | 23011 | /* end confdefs.h. */ |
| | 23012 | $ac_includes_default |
| | 23013 | #include <$ac_header> |
| | 23014 | _ACEOF |
| | 23015 | rm -f conftest.$ac_objext |
| | 23016 | if { (ac_try="$ac_compile" |
| | 23017 | case "(($ac_try" in |
| | 23018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 23019 | *) ac_try_echo=$ac_try;; |
| | 23020 | esac |
| | 23021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 23022 | (eval "$ac_compile") 2>conftest.er1 |
| | 23023 | ac_status=$? |
| | 23024 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 23025 | rm -f conftest.er1 |
| | 23026 | cat conftest.err >&5 |
| | 23027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 23028 | (exit $ac_status); } && { |
| | 23029 | test -z "$ac_c_werror_flag" || |
| | 23030 | test ! -s conftest.err |
| | 23031 | } && test -s conftest.$ac_objext; then |
| | 23032 | ac_header_compiler=yes |
| | 23033 | else |
| | 23034 | echo "$as_me: failed program was:" >&5 |
| | 23035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 23036 | |
| | 23037 | ac_header_compiler=no |
| | 23038 | fi |
| | 23039 | |
| | 23040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 23041 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| | 23042 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| | 23043 | |
| | 23044 | # Is the header present? |
| | 23045 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| | 23046 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| | 23047 | cat >conftest.$ac_ext <<_ACEOF |
| | 23048 | /* confdefs.h. */ |
| | 23049 | _ACEOF |
| | 23050 | cat confdefs.h >>conftest.$ac_ext |
| | 23051 | cat >>conftest.$ac_ext <<_ACEOF |
| | 23052 | /* end confdefs.h. */ |
| | 23053 | #include <$ac_header> |
| | 23054 | _ACEOF |
| | 23055 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| | 23056 | case "(($ac_try" in |
| | 23057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 23058 | *) ac_try_echo=$ac_try;; |
| | 23059 | esac |
| | 23060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 23061 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| | 23062 | ac_status=$? |
| | 23063 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 23064 | rm -f conftest.er1 |
| | 23065 | cat conftest.err >&5 |
| | 23066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 23067 | (exit $ac_status); } >/dev/null && { |
| | 23068 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| | 23069 | test ! -s conftest.err |
| | 23070 | }; then |
| | 23071 | ac_header_preproc=yes |
| | 23072 | else |
| | 23073 | echo "$as_me: failed program was:" >&5 |
| | 23074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 23075 | |
| | 23076 | ac_header_preproc=no |
| | 23077 | fi |
| | 23078 | |
| | 23079 | rm -f conftest.err conftest.$ac_ext |
| | 23080 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| | 23081 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| | 23082 | |
| | 23083 | # So? What about this header? |
| | 23084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| | 23085 | yes:no: ) |
| | 23086 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| | 23087 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| | 23088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| | 23089 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| | 23090 | ac_header_preproc=yes |
| | 23091 | ;; |
| | 23092 | no:yes:* ) |
| | 23093 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| | 23094 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| | 23095 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| | 23096 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| | 23097 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| | 23098 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| | 23099 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| | 23100 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| | 23101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| | 23102 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| | 23103 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| | 23104 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| | 23105 | ( cat <<\_ASBOX |
| | 23106 | ## ----------------------------------------- ## |
| | 23107 | ## Report this to alberto.botti@yoda2000.net ## |
| | 23108 | ## ----------------------------------------- ## |
| | 23109 | _ASBOX |
| | 23110 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| | 23111 | ;; |
| | 23112 | esac |
| | 23113 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| | 23114 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| | 23115 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| | 23116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 23117 | else |
| | 23118 | eval "$as_ac_Header=\$ac_header_preproc" |
| | 23119 | fi |
| | 23120 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| | 23121 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| | 23122 | echo "${ECHO_T}$ac_res" >&6; } |
| | 23123 | |
| | 23124 | fi |
| | 23125 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| | 23126 | cat >>confdefs.h <<_ACEOF |
| | 23127 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| | 23128 | _ACEOF |
| | 23129 | |
| | 23130 | fi |
| | 23131 | |
| | 23132 | done |
| | 23133 | |
| | 23134 | |
| | 23135 | |
| | 23136 | |
| | 23137 | # Checks for typedefs, structures, and compiler characteristics. |
| | 23138 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| | 23139 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| | 23140 | if test "${ac_cv_c_const+set}" = set; then |
| | 23141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 23142 | else |
| | 23143 | cat >conftest.$ac_ext <<_ACEOF |
| | 23144 | /* confdefs.h. */ |
| | 23145 | _ACEOF |
| | 23146 | cat confdefs.h >>conftest.$ac_ext |
| | 23147 | cat >>conftest.$ac_ext <<_ACEOF |
| | 23148 | /* end confdefs.h. */ |
| | 23149 | |
| | 23150 | int |
| | 23151 | main () |
| | 23152 | { |
| | 23153 | /* FIXME: Include the comments suggested by Paul. */ |
| | 23154 | #ifndef __cplusplus |
| | 23155 | /* Ultrix mips cc rejects this. */ |
| | 23156 | typedef int charset[2]; |
| | 23157 | const charset cs; |
| | 23158 | /* SunOS 4.1.1 cc rejects this. */ |
| | 23159 | char const *const *pcpcc; |
| | 23160 | char **ppc; |
| | 23161 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| | 23162 | struct point {int x, y;}; |
| | 23163 | static struct point const zero = {0,0}; |
| | 23164 | /* AIX XL C 1.02.0.0 rejects this. |
| | 23165 | It does not let you subtract one const X* pointer from another in |
| | 23166 | an arm of an if-expression whose if-part is not a constant |
| | 23167 | expression */ |
| | 23168 | const char *g = "string"; |
| | 23169 | pcpcc = &g + (g ? g-g : 0); |
| | 23170 | /* HPUX 7.0 cc rejects these. */ |
| | 23171 | ++pcpcc; |
| | 23172 | ppc = (char**) pcpcc; |
| | 23173 | pcpcc = (char const *const *) ppc; |
| | 23174 | { /* SCO 3.2v4 cc rejects this. */ |
| | 23175 | char *t; |
| | 23176 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| | 23177 | |
| | 23178 | *t++ = 0; |
| | 23179 | if (s) return 0; |
| | 23180 | } |
| | 23181 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| | 23182 | int x[] = {25, 17}; |
| | 23183 | const int *foo = &x[0]; |
| | 23184 | ++foo; |
| | 23185 | } |
| | 23186 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| | 23187 | typedef const int *iptr; |
| | 23188 | iptr p = 0; |
| | 23189 | ++p; |
| | 23190 | } |
| | 23191 | { /* AIX XL C 1.02.0.0 rejects this saying |
| | 23192 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| | 23193 | struct s { int j; const int *ap[3]; }; |
| | 23194 | struct s *b; b->j = 5; |
| | 23195 | } |
| | 23196 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| | 23197 | const int foo = 10; |
| | 23198 | if (!foo) return 0; |
| | 23199 | } |
| | 23200 | return !cs[0] && !zero.x; |
| | 23201 | #endif |
| | 23202 | |
| | 23203 | ; |
| | 23204 | return 0; |
| | 23205 | } |
| | 23206 | _ACEOF |
| | 23207 | rm -f conftest.$ac_objext |
| | 23208 | if { (ac_try="$ac_compile" |
| | 23209 | case "(($ac_try" in |
| | 23210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 23211 | *) ac_try_echo=$ac_try;; |
| | 23212 | esac |
| | 23213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 23214 | (eval "$ac_compile") 2>conftest.er1 |
| | 23215 | ac_status=$? |
| | 23216 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 23217 | rm -f conftest.er1 |
| | 23218 | cat conftest.err >&5 |
| | 23219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 23220 | (exit $ac_status); } && { |
| | 23221 | test -z "$ac_c_werror_flag" || |
| | 23222 | test ! -s conftest.err |
| | 23223 | } && test -s conftest.$ac_objext; then |
| | 23224 | ac_cv_c_const=yes |
| | 23225 | else |
| | 23226 | echo "$as_me: failed program was:" >&5 |
| | 23227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 23228 | |
| | 23229 | ac_cv_c_const=no |
| | 23230 | fi |
| | 23231 | |
| | 23232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 23233 | fi |
| | 23234 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| | 23235 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| | 23236 | if test $ac_cv_c_const = no; then |
| | 23237 | |
| | 23238 | cat >>confdefs.h <<\_ACEOF |
| | 23239 | #define const |
| | 23240 | _ACEOF |
| | 23241 | |
| | 23242 | fi |
| | 23243 | |
| | 23244 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| | 23245 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
| | 23246 | if test "${ac_cv_c_inline+set}" = set; then |
| | 23247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 23248 | else |
| | 23249 | ac_cv_c_inline=no |
| | 23250 | for ac_kw in inline __inline__ __inline; do |
| | 23251 | cat >conftest.$ac_ext <<_ACEOF |
| | 23252 | /* confdefs.h. */ |
| | 23253 | _ACEOF |
| | 23254 | cat confdefs.h >>conftest.$ac_ext |
| | 23255 | cat >>conftest.$ac_ext <<_ACEOF |
| | 23256 | /* end confdefs.h. */ |
| | 23257 | #ifndef __cplusplus |
| | 23258 | typedef int foo_t; |
| | 23259 | static $ac_kw foo_t static_foo () {return 0; } |
| | 23260 | $ac_kw foo_t foo () {return 0; } |
| | 23261 | #endif |
| | 23262 | |
| | 23263 | _ACEOF |
| | 23264 | rm -f conftest.$ac_objext |
| | 23265 | if { (ac_try="$ac_compile" |
| | 23266 | case "(($ac_try" in |
| | 23267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 23268 | *) ac_try_echo=$ac_try;; |
| | 23269 | esac |
| | 23270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 23271 | (eval "$ac_compile") 2>conftest.er1 |
| | 23272 | ac_status=$? |
| | 23273 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 23274 | rm -f conftest.er1 |
| | 23275 | cat conftest.err >&5 |
| | 23276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 23277 | (exit $ac_status); } && { |
| | 23278 | test -z "$ac_c_werror_flag" || |
| | 23279 | test ! -s conftest.err |
| | 23280 | } && test -s conftest.$ac_objext; then |
| | 23281 | ac_cv_c_inline=$ac_kw |
| | 23282 | else |
| | 23283 | echo "$as_me: failed program was:" >&5 |
| | 23284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 23285 | |
| | 23286 | |
| | 23287 | fi |
| | 23288 | |
| | 23289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 23290 | test "$ac_cv_c_inline" != no && break |
| | 23291 | done |
| | 23292 | |
| | 23293 | fi |
| | 23294 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| | 23295 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
| | 23296 | |
| | 23297 | |
| | 23298 | case $ac_cv_c_inline in |
| | 23299 | inline | yes) ;; |
| | 23300 | *) |
| | 23301 | case $ac_cv_c_inline in |
| | 23302 | no) ac_val=;; |
| | 23303 | *) ac_val=$ac_cv_c_inline;; |
| | 23304 | esac |
| | 23305 | cat >>confdefs.h <<_ACEOF |
| | 23306 | #ifndef __cplusplus |
| | 23307 | #define inline $ac_val |
| | 23308 | #endif |
| | 23309 | _ACEOF |
| | 23310 | ;; |
| | 23311 | esac |
| | 23312 | |
| | 23313 | |
| | 23314 | |
| | 23315 | |
| | 23316 | # Checks for library functions. |
| | 23317 | |
| | 23318 | |
| | 23319 | |
| | 23320 | |
| | 23321 | |
| | 23322 | for ac_func in gethostbyname memset socket strdup strerror |
| | 23323 | do |
| | 23324 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| | 23325 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| | 23326 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| | 23327 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| | 23328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 23329 | else |
| | 23330 | cat >conftest.$ac_ext <<_ACEOF |
| | 23331 | /* confdefs.h. */ |
| | 23332 | _ACEOF |
| | 23333 | cat confdefs.h >>conftest.$ac_ext |
| | 23334 | cat >>conftest.$ac_ext <<_ACEOF |
| | 23335 | /* end confdefs.h. */ |
| | 23336 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| | 23337 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| | 23338 | #define $ac_func innocuous_$ac_func |
| | 23339 | |
| | 23340 | /* System header to define __stub macros and hopefully few prototypes, |
| | 23341 | which can conflict with char $ac_func (); below. |
| | 23342 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | 23343 | <limits.h> exists even on freestanding compilers. */ |
| | 23344 | |
| | 23345 | #ifdef __STDC__ |
| | 23346 | # include <limits.h> |
| | 23347 | #else |
| | 23348 | # include <assert.h> |
| | 23349 | #endif |
| | 23350 | |
| | 23351 | #undef $ac_func |
| | 23352 | |
| | 23353 | /* Override any GCC internal prototype to avoid an error. |
| | 23354 | Use char because int might match the return type of a GCC |
| | 23355 | builtin and then its argument prototype would still apply. */ |
| | 23356 | #ifdef __cplusplus |
| | 23357 | extern "C" |
| | 23358 | #endif |
| | 23359 | char $ac_func (); |
| | 23360 | /* The GNU C library defines this for functions which it implements |
| | 23361 | to always fail with ENOSYS. Some functions are actually named |
| | 23362 | something starting with __ and the normal name is an alias. */ |
| | 23363 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| | 23364 | choke me |
| | 23365 | #endif |
| | 23366 | |
| | 23367 | int |
| | 23368 | main () |
| | 23369 | { |
| | 23370 | return $ac_func (); |