… | |
… | |
9548 | |
9548 | |
9549 | |
9549 | |
9550 | fi |
9550 | fi |
9551 | |
9551 | |
9552 | |
9552 | |
|
|
9553 | |
|
|
9554 | |
|
|
9555 | |
|
|
9556 | |
|
|
9557 | |
|
|
9558 | |
|
|
9559 | |
|
|
9560 | |
|
|
9561 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
|
|
9562 | do |
|
|
9563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
9564 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
9565 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
9566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
9567 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
9568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9569 | fi |
|
|
9570 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
9571 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
9572 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
9573 | else |
|
|
9574 | # Is the header compilable? |
|
|
9575 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
9576 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
9577 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9578 | /* confdefs.h. */ |
|
|
9579 | _ACEOF |
|
|
9580 | cat confdefs.h >>conftest.$ac_ext |
|
|
9581 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9582 | /* end confdefs.h. */ |
|
|
9583 | $ac_includes_default |
|
|
9584 | #include <$ac_header> |
|
|
9585 | _ACEOF |
|
|
9586 | rm -f conftest.$ac_objext |
|
|
9587 | if { (ac_try="$ac_compile" |
|
|
9588 | case "(($ac_try" in |
|
|
9589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9590 | *) ac_try_echo=$ac_try;; |
|
|
9591 | esac |
|
|
9592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9593 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9594 | ac_status=$? |
|
|
9595 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9596 | rm -f conftest.er1 |
|
|
9597 | cat conftest.err >&5 |
|
|
9598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9599 | (exit $ac_status); } && { |
|
|
9600 | test -z "$ac_c_werror_flag" || |
|
|
9601 | test ! -s conftest.err |
|
|
9602 | } && test -s conftest.$ac_objext; then |
|
|
9603 | ac_header_compiler=yes |
|
|
9604 | else |
|
|
9605 | echo "$as_me: failed program was:" >&5 |
|
|
9606 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9607 | |
|
|
9608 | ac_header_compiler=no |
|
|
9609 | fi |
|
|
9610 | |
|
|
9611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9612 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
9613 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
9614 | |
|
|
9615 | # Is the header present? |
|
|
9616 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
9617 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
9618 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9619 | /* confdefs.h. */ |
|
|
9620 | _ACEOF |
|
|
9621 | cat confdefs.h >>conftest.$ac_ext |
|
|
9622 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9623 | /* end confdefs.h. */ |
|
|
9624 | #include <$ac_header> |
|
|
9625 | _ACEOF |
|
|
9626 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
9627 | case "(($ac_try" in |
|
|
9628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9629 | *) ac_try_echo=$ac_try;; |
|
|
9630 | esac |
|
|
9631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9632 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
9633 | ac_status=$? |
|
|
9634 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9635 | rm -f conftest.er1 |
|
|
9636 | cat conftest.err >&5 |
|
|
9637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9638 | (exit $ac_status); } >/dev/null && { |
|
|
9639 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
9640 | test ! -s conftest.err |
|
|
9641 | }; then |
|
|
9642 | ac_header_preproc=yes |
|
|
9643 | else |
|
|
9644 | echo "$as_me: failed program was:" >&5 |
|
|
9645 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9646 | |
|
|
9647 | ac_header_preproc=no |
|
|
9648 | fi |
|
|
9649 | |
|
|
9650 | rm -f conftest.err conftest.$ac_ext |
|
|
9651 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
9652 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
9653 | |
|
|
9654 | # So? What about this header? |
|
|
9655 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
|
9656 | yes:no: ) |
|
|
9657 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
9658 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
9659 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
9660 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
9661 | ac_header_preproc=yes |
|
|
9662 | ;; |
|
|
9663 | no:yes:* ) |
|
|
9664 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
9665 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
9666 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
9667 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
9668 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
9669 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
9670 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
9671 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
9672 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
9673 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
9674 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
9675 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
9676 | |
|
|
9677 | ;; |
|
|
9678 | esac |
|
|
9679 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
9680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
9681 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
9682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9683 | else |
|
|
9684 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
9685 | fi |
|
|
9686 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
9687 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
9688 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
9689 | |
|
|
9690 | fi |
|
|
9691 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9692 | cat >>confdefs.h <<_ACEOF |
|
|
9693 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9694 | _ACEOF |
|
|
9695 | |
|
|
9696 | fi |
|
|
9697 | |
|
|
9698 | done |
|
|
9699 | |
|
|
9700 | |
|
|
9701 | |
|
|
9702 | |
|
|
9703 | |
|
|
9704 | |
|
|
9705 | |
|
|
9706 | |
|
|
9707 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
|
|
9708 | do |
|
|
9709 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
9710 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
9711 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
9712 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
9713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9714 | else |
|
|
9715 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9716 | /* confdefs.h. */ |
|
|
9717 | _ACEOF |
|
|
9718 | cat confdefs.h >>conftest.$ac_ext |
|
|
9719 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9720 | /* end confdefs.h. */ |
|
|
9721 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
9722 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
9723 | #define $ac_func innocuous_$ac_func |
|
|
9724 | |
|
|
9725 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
9726 | which can conflict with char $ac_func (); below. |
|
|
9727 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
9728 | <limits.h> exists even on freestanding compilers. */ |
|
|
9729 | |
|
|
9730 | #ifdef __STDC__ |
|
|
9731 | # include <limits.h> |
|
|
9732 | #else |
|
|
9733 | # include <assert.h> |
|
|
9734 | #endif |
|
|
9735 | |
|
|
9736 | #undef $ac_func |
|
|
9737 | |
|
|
9738 | /* Override any GCC internal prototype to avoid an error. |
|
|
9739 | Use char because int might match the return type of a GCC |
|
|
9740 | builtin and then its argument prototype would still apply. */ |
|
|
9741 | #ifdef __cplusplus |
|
|
9742 | extern "C" |
|
|
9743 | #endif |
|
|
9744 | char $ac_func (); |
|
|
9745 | /* The GNU C library defines this for functions which it implements |
|
|
9746 | to always fail with ENOSYS. Some functions are actually named |
|
|
9747 | something starting with __ and the normal name is an alias. */ |
|
|
9748 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
9749 | choke me |
|
|
9750 | #endif |
|
|
9751 | |
|
|
9752 | int |
|
|
9753 | main () |
|
|
9754 | { |
|
|
9755 | return $ac_func (); |
|
|
9756 | ; |
|
|
9757 | return 0; |
|
|
9758 | } |
|
|
9759 | _ACEOF |
|
|
9760 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
9761 | if { (ac_try="$ac_link" |
|
|
9762 | case "(($ac_try" in |
|
|
9763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9764 | *) ac_try_echo=$ac_try;; |
|
|
9765 | esac |
|
|
9766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9767 | (eval "$ac_link") 2>conftest.er1 |
|
|
9768 | ac_status=$? |
|
|
9769 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9770 | rm -f conftest.er1 |
|
|
9771 | cat conftest.err >&5 |
|
|
9772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9773 | (exit $ac_status); } && { |
|
|
9774 | test -z "$ac_c_werror_flag" || |
|
|
9775 | test ! -s conftest.err |
|
|
9776 | } && test -s conftest$ac_exeext && |
|
|
9777 | $as_test_x conftest$ac_exeext; then |
|
|
9778 | eval "$as_ac_var=yes" |
|
|
9779 | else |
|
|
9780 | echo "$as_me: failed program was:" >&5 |
|
|
9781 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9782 | |
|
|
9783 | eval "$as_ac_var=no" |
|
|
9784 | fi |
|
|
9785 | |
|
|
9786 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
9787 | conftest$ac_exeext conftest.$ac_ext |
|
|
9788 | fi |
|
|
9789 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
9790 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
9791 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
9792 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
9793 | cat >>confdefs.h <<_ACEOF |
|
|
9794 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
9795 | _ACEOF |
|
|
9796 | |
|
|
9797 | fi |
|
|
9798 | done |
|
|
9799 | |
|
|
9800 | |
|
|
9801 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
9802 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
9803 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
9804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9805 | else |
|
|
9806 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9807 | /* confdefs.h. */ |
|
|
9808 | _ACEOF |
|
|
9809 | cat confdefs.h >>conftest.$ac_ext |
|
|
9810 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9811 | /* end confdefs.h. */ |
|
|
9812 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
9813 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
9814 | #define clock_gettime innocuous_clock_gettime |
|
|
9815 | |
|
|
9816 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
9817 | which can conflict with char clock_gettime (); below. |
|
|
9818 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
9819 | <limits.h> exists even on freestanding compilers. */ |
|
|
9820 | |
|
|
9821 | #ifdef __STDC__ |
|
|
9822 | # include <limits.h> |
|
|
9823 | #else |
|
|
9824 | # include <assert.h> |
|
|
9825 | #endif |
|
|
9826 | |
|
|
9827 | #undef clock_gettime |
|
|
9828 | |
|
|
9829 | /* Override any GCC internal prototype to avoid an error. |
|
|
9830 | Use char because int might match the return type of a GCC |
|
|
9831 | builtin and then its argument prototype would still apply. */ |
|
|
9832 | #ifdef __cplusplus |
|
|
9833 | extern "C" |
|
|
9834 | #endif |
|
|
9835 | char clock_gettime (); |
|
|
9836 | /* The GNU C library defines this for functions which it implements |
|
|
9837 | to always fail with ENOSYS. Some functions are actually named |
|
|
9838 | something starting with __ and the normal name is an alias. */ |
|
|
9839 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
9840 | choke me |
|
|
9841 | #endif |
|
|
9842 | |
|
|
9843 | int |
|
|
9844 | main () |
|
|
9845 | { |
|
|
9846 | return clock_gettime (); |
|
|
9847 | ; |
|
|
9848 | return 0; |
|
|
9849 | } |
|
|
9850 | _ACEOF |
|
|
9851 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
9852 | if { (ac_try="$ac_link" |
|
|
9853 | case "(($ac_try" in |
|
|
9854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9855 | *) ac_try_echo=$ac_try;; |
|
|
9856 | esac |
|
|
9857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9858 | (eval "$ac_link") 2>conftest.er1 |
|
|
9859 | ac_status=$? |
|
|
9860 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9861 | rm -f conftest.er1 |
|
|
9862 | cat conftest.err >&5 |
|
|
9863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9864 | (exit $ac_status); } && { |
|
|
9865 | test -z "$ac_c_werror_flag" || |
|
|
9866 | test ! -s conftest.err |
|
|
9867 | } && test -s conftest$ac_exeext && |
|
|
9868 | $as_test_x conftest$ac_exeext; then |
|
|
9869 | ac_cv_func_clock_gettime=yes |
|
|
9870 | else |
|
|
9871 | echo "$as_me: failed program was:" >&5 |
|
|
9872 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9873 | |
|
|
9874 | ac_cv_func_clock_gettime=no |
|
|
9875 | fi |
|
|
9876 | |
|
|
9877 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
9878 | conftest$ac_exeext conftest.$ac_ext |
|
|
9879 | fi |
|
|
9880 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
9881 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
9882 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
9883 | : |
|
|
9884 | else |
|
|
9885 | |
|
|
9886 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
9887 | |
|
|
9888 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
9889 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
9890 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
9891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9892 | else |
|
|
9893 | ac_check_lib_save_LIBS=$LIBS |
|
|
9894 | LIBS="-lrt $LIBS" |
|
|
9895 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9896 | /* confdefs.h. */ |
|
|
9897 | _ACEOF |
|
|
9898 | cat confdefs.h >>conftest.$ac_ext |
|
|
9899 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9900 | /* end confdefs.h. */ |
|
|
9901 | |
|
|
9902 | /* Override any GCC internal prototype to avoid an error. |
|
|
9903 | Use char because int might match the return type of a GCC |
|
|
9904 | builtin and then its argument prototype would still apply. */ |
|
|
9905 | #ifdef __cplusplus |
|
|
9906 | extern "C" |
|
|
9907 | #endif |
|
|
9908 | char clock_gettime (); |
|
|
9909 | int |
|
|
9910 | main () |
|
|
9911 | { |
|
|
9912 | return clock_gettime (); |
|
|
9913 | ; |
|
|
9914 | return 0; |
|
|
9915 | } |
|
|
9916 | _ACEOF |
|
|
9917 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
9918 | if { (ac_try="$ac_link" |
|
|
9919 | case "(($ac_try" in |
|
|
9920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9921 | *) ac_try_echo=$ac_try;; |
|
|
9922 | esac |
|
|
9923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9924 | (eval "$ac_link") 2>conftest.er1 |
|
|
9925 | ac_status=$? |
|
|
9926 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9927 | rm -f conftest.er1 |
|
|
9928 | cat conftest.err >&5 |
|
|
9929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9930 | (exit $ac_status); } && { |
|
|
9931 | test -z "$ac_c_werror_flag" || |
|
|
9932 | test ! -s conftest.err |
|
|
9933 | } && test -s conftest$ac_exeext && |
|
|
9934 | $as_test_x conftest$ac_exeext; then |
|
|
9935 | ac_cv_lib_rt_clock_gettime=yes |
|
|
9936 | else |
|
|
9937 | echo "$as_me: failed program was:" >&5 |
|
|
9938 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9939 | |
|
|
9940 | ac_cv_lib_rt_clock_gettime=no |
|
|
9941 | fi |
|
|
9942 | |
|
|
9943 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
9944 | conftest$ac_exeext conftest.$ac_ext |
|
|
9945 | LIBS=$ac_check_lib_save_LIBS |
|
|
9946 | fi |
|
|
9947 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
9948 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
9949 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
9950 | cat >>confdefs.h <<_ACEOF |
|
|
9951 | #define HAVE_LIBRT 1 |
|
|
9952 | _ACEOF |
|
|
9953 | |
|
|
9954 | LIBS="-lrt $LIBS" |
|
|
9955 | |
|
|
9956 | fi |
|
|
9957 | |
|
|
9958 | |
|
|
9959 | for ac_func in clock_gettime |
|
|
9960 | do |
|
|
9961 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
9962 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
9963 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
9964 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
9965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9966 | else |
|
|
9967 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9968 | /* confdefs.h. */ |
|
|
9969 | _ACEOF |
|
|
9970 | cat confdefs.h >>conftest.$ac_ext |
|
|
9971 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9972 | /* end confdefs.h. */ |
|
|
9973 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
9974 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
9975 | #define $ac_func innocuous_$ac_func |
|
|
9976 | |
|
|
9977 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
9978 | which can conflict with char $ac_func (); below. |
|
|
9979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
9980 | <limits.h> exists even on freestanding compilers. */ |
|
|
9981 | |
|
|
9982 | #ifdef __STDC__ |
|
|
9983 | # include <limits.h> |
|
|
9984 | #else |
|
|
9985 | # include <assert.h> |
|
|
9986 | #endif |
|
|
9987 | |
|
|
9988 | #undef $ac_func |
|
|
9989 | |
|
|
9990 | /* Override any GCC internal prototype to avoid an error. |
|
|
9991 | Use char because int might match the return type of a GCC |
|
|
9992 | builtin and then its argument prototype would still apply. */ |
|
|
9993 | #ifdef __cplusplus |
|
|
9994 | extern "C" |
|
|
9995 | #endif |
|
|
9996 | char $ac_func (); |
|
|
9997 | /* The GNU C library defines this for functions which it implements |
|
|
9998 | to always fail with ENOSYS. Some functions are actually named |
|
|
9999 | something starting with __ and the normal name is an alias. */ |
|
|
10000 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
10001 | choke me |
|
|
10002 | #endif |
|
|
10003 | |
|
|
10004 | int |
|
|
10005 | main () |
|
|
10006 | { |
|
|
10007 | return $ac_func (); |
|
|
10008 | ; |
|
|
10009 | return 0; |
|
|
10010 | } |
|
|
10011 | _ACEOF |
|
|
10012 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10013 | if { (ac_try="$ac_link" |
|
|
10014 | case "(($ac_try" in |
|
|
10015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10016 | *) ac_try_echo=$ac_try;; |
|
|
10017 | esac |
|
|
10018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10019 | (eval "$ac_link") 2>conftest.er1 |
|
|
10020 | ac_status=$? |
|
|
10021 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10022 | rm -f conftest.er1 |
|
|
10023 | cat conftest.err >&5 |
|
|
10024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10025 | (exit $ac_status); } && { |
|
|
10026 | test -z "$ac_c_werror_flag" || |
|
|
10027 | test ! -s conftest.err |
|
|
10028 | } && test -s conftest$ac_exeext && |
|
|
10029 | $as_test_x conftest$ac_exeext; then |
|
|
10030 | eval "$as_ac_var=yes" |
|
|
10031 | else |
|
|
10032 | echo "$as_me: failed program was:" >&5 |
|
|
10033 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10034 | |
|
|
10035 | eval "$as_ac_var=no" |
|
|
10036 | fi |
|
|
10037 | |
|
|
10038 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10039 | conftest$ac_exeext conftest.$ac_ext |
|
|
10040 | fi |
|
|
10041 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
10042 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10043 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10044 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10045 | cat >>confdefs.h <<_ACEOF |
|
|
10046 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10047 | _ACEOF |
|
|
10048 | |
|
|
10049 | fi |
|
|
10050 | done |
|
|
10051 | |
|
|
10052 | fi |
|
|
10053 | |
|
|
10054 | fi |
|
|
10055 | |
|
|
10056 | |
|
|
10057 | |
|
|
10058 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
10059 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
10060 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
10061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10062 | else |
|
|
10063 | ac_check_lib_save_LIBS=$LIBS |
|
|
10064 | LIBS="-lm $LIBS" |
|
|
10065 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10066 | /* confdefs.h. */ |
|
|
10067 | _ACEOF |
|
|
10068 | cat confdefs.h >>conftest.$ac_ext |
|
|
10069 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10070 | /* end confdefs.h. */ |
|
|
10071 | |
|
|
10072 | /* Override any GCC internal prototype to avoid an error. |
|
|
10073 | Use char because int might match the return type of a GCC |
|
|
10074 | builtin and then its argument prototype would still apply. */ |
|
|
10075 | #ifdef __cplusplus |
|
|
10076 | extern "C" |
|
|
10077 | #endif |
|
|
10078 | char ceil (); |
|
|
10079 | int |
|
|
10080 | main () |
|
|
10081 | { |
|
|
10082 | return ceil (); |
|
|
10083 | ; |
|
|
10084 | return 0; |
|
|
10085 | } |
|
|
10086 | _ACEOF |
|
|
10087 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10088 | if { (ac_try="$ac_link" |
|
|
10089 | case "(($ac_try" in |
|
|
10090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10091 | *) ac_try_echo=$ac_try;; |
|
|
10092 | esac |
|
|
10093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10094 | (eval "$ac_link") 2>conftest.er1 |
|
|
10095 | ac_status=$? |
|
|
10096 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10097 | rm -f conftest.er1 |
|
|
10098 | cat conftest.err >&5 |
|
|
10099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10100 | (exit $ac_status); } && { |
|
|
10101 | test -z "$ac_c_werror_flag" || |
|
|
10102 | test ! -s conftest.err |
|
|
10103 | } && test -s conftest$ac_exeext && |
|
|
10104 | $as_test_x conftest$ac_exeext; then |
|
|
10105 | ac_cv_lib_m_ceil=yes |
|
|
10106 | else |
|
|
10107 | echo "$as_me: failed program was:" >&5 |
|
|
10108 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10109 | |
|
|
10110 | ac_cv_lib_m_ceil=no |
|
|
10111 | fi |
|
|
10112 | |
|
|
10113 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10114 | conftest$ac_exeext conftest.$ac_ext |
|
|
10115 | LIBS=$ac_check_lib_save_LIBS |
|
|
10116 | fi |
|
|
10117 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
10118 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
10119 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
10120 | cat >>confdefs.h <<_ACEOF |
|
|
10121 | #define HAVE_LIBM 1 |
|
|
10122 | _ACEOF |
|
|
10123 | |
|
|
10124 | LIBS="-lm $LIBS" |
|
|
10125 | |
|
|
10126 | fi |
|
|
10127 | |
|
|
10128 | |
|
|
10129 | |
|
|
10130 | |
|
|
10131 | |
|
|
10132 | |
9553 | ac_ext=cpp |
10133 | ac_ext=cpp |
9554 | ac_cpp='$CXXCPP $CPPFLAGS' |
10134 | ac_cpp='$CXXCPP $CPPFLAGS' |
9555 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10135 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9556 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10136 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9557 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10137 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
… | |
… | |
10651 | fi |
11231 | fi |
10652 | |
11232 | |
10653 | if $CXX -v --help 2>&1 | grep -q fexceptions; then |
11233 | if $CXX -v --help 2>&1 | grep -q fexceptions; then |
10654 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
11234 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
10655 | fi |
11235 | fi |
|
|
11236 | |
|
|
11237 | LIBS="$EXTRA_LIBS $LIBS" |
10656 | |
11238 | |
10657 | |
11239 | |
10658 | |
11240 | |
10659 | |
11241 | |
10660 | ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile" |
11242 | ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile" |