… | |
… | |
5323 | |
5323 | |
5324 | |
5324 | |
5325 | |
5325 | |
5326 | |
5326 | |
5327 | |
5327 | |
|
|
5328 | |
|
|
5329 | |
5328 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
5330 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h |
5329 | do |
5331 | do |
5330 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5332 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5331 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5332 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5334 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5333 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
5469 | |
5471 | |
5470 | |
5472 | |
5471 | |
5473 | |
5472 | |
5474 | |
5473 | |
5475 | |
|
|
5476 | |
|
|
5477 | |
5474 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
5478 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
5475 | do |
5479 | do |
5476 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5480 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5477 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5481 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5478 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5482 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5479 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5483 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
5648 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5652 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5649 | if test $ac_cv_func_clock_gettime = yes; then |
5653 | if test $ac_cv_func_clock_gettime = yes; then |
5650 | : |
5654 | : |
5651 | else |
5655 | else |
5652 | |
5656 | |
5653 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
5657 | if test $(uname) = Linux; then |
|
|
5658 | { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5 |
|
|
5659 | echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; } |
|
|
5660 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5661 | /* confdefs.h. */ |
|
|
5662 | _ACEOF |
|
|
5663 | cat confdefs.h >>conftest.$ac_ext |
|
|
5664 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5665 | /* end confdefs.h. */ |
|
|
5666 | #include <syscall.h> |
|
|
5667 | #include <time.h> |
|
|
5668 | int |
|
|
5669 | main () |
|
|
5670 | { |
|
|
5671 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
|
|
5672 | ; |
|
|
5673 | return 0; |
|
|
5674 | } |
|
|
5675 | _ACEOF |
|
|
5676 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5677 | if { (ac_try="$ac_link" |
|
|
5678 | case "(($ac_try" in |
|
|
5679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5680 | *) ac_try_echo=$ac_try;; |
|
|
5681 | esac |
|
|
5682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5683 | (eval "$ac_link") 2>conftest.er1 |
|
|
5684 | ac_status=$? |
|
|
5685 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5686 | rm -f conftest.er1 |
|
|
5687 | cat conftest.err >&5 |
|
|
5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5689 | (exit $ac_status); } && { |
|
|
5690 | test -z "$ac_cxx_werror_flag" || |
|
|
5691 | test ! -s conftest.err |
|
|
5692 | } && test -s conftest$ac_exeext && |
|
|
5693 | $as_test_x conftest$ac_exeext; then |
|
|
5694 | ac_have_clock_syscall=1 |
|
|
5695 | |
|
|
5696 | cat >>confdefs.h <<\_ACEOF |
|
|
5697 | #define HAVE_CLOCK_SYSCALL 1 |
|
|
5698 | _ACEOF |
|
|
5699 | |
|
|
5700 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5701 | echo "${ECHO_T}yes" >&6; } |
|
|
5702 | else |
|
|
5703 | echo "$as_me: failed program was:" >&5 |
|
|
5704 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5705 | |
|
|
5706 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5707 | echo "${ECHO_T}no" >&6; } |
|
|
5708 | fi |
|
|
5709 | |
|
|
5710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5711 | conftest$ac_exeext conftest.$ac_ext |
|
|
5712 | fi |
|
|
5713 | if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
5654 | |
5714 | |
5655 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5715 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5656 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5716 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5657 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5717 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
6147 | _ACEOF |
6207 | _ACEOF |
6148 | |
6208 | |
6149 | LIBS="-lm $LIBS" |
6209 | LIBS="-lm $LIBS" |
6150 | |
6210 | |
6151 | fi |
6211 | fi |
6152 | |
|
|
6153 | |
|
|
6154 | |
6212 | |
6155 | |
6213 | |
6156 | |
6214 | |
6157 | |
6215 | |
6158 | |
6216 | |
… | |
… | |
8654 | fi |
8712 | fi |
8655 | done |
8713 | done |
8656 | |
8714 | |
8657 | |
8715 | |
8658 | |
8716 | |
8659 | |
|
|
8660 | |
|
|
8661 | for ac_header in \ |
8717 | for ac_header in lastlog.h |
8662 | utmp.h \ |
|
|
8663 | utmpx.h \ |
|
|
8664 | lastlog.h \ |
|
|
8665 | |
|
|
8666 | do |
8718 | do |
8667 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8719 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8668 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8720 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8669 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8721 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8670 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8722 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
8801 | |
8853 | |
8802 | done |
8854 | done |
8803 | |
8855 | |
8804 | |
8856 | |
8805 | |
8857 | |
8806 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8858 | |
|
|
8859 | for ac_header in utmp.h |
|
|
8860 | do |
|
|
8861 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8862 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8807 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8863 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8808 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8809 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8865 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8811 | fi |
8867 | fi |
|
|
8868 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8812 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8869 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
8813 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8870 | echo "${ECHO_T}$ac_res" >&6; } |
8814 | else |
8871 | else |
8815 | # Is the header compilable? |
8872 | # Is the header compilable? |
8816 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8873 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8817 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8874 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
8818 | cat >conftest.$ac_ext <<_ACEOF |
8875 | cat >conftest.$ac_ext <<_ACEOF |
8819 | /* confdefs.h. */ |
8876 | /* confdefs.h. */ |
8820 | _ACEOF |
8877 | _ACEOF |
8821 | cat confdefs.h >>conftest.$ac_ext |
8878 | cat confdefs.h >>conftest.$ac_ext |
8822 | cat >>conftest.$ac_ext <<_ACEOF |
8879 | cat >>conftest.$ac_ext <<_ACEOF |
8823 | /* end confdefs.h. */ |
8880 | /* end confdefs.h. */ |
8824 | $ac_includes_default |
8881 | $ac_includes_default |
8825 | #include <utmp.h> |
8882 | #include <$ac_header> |
8826 | _ACEOF |
8883 | _ACEOF |
8827 | rm -f conftest.$ac_objext |
8884 | rm -f conftest.$ac_objext |
8828 | if { (ac_try="$ac_compile" |
8885 | if { (ac_try="$ac_compile" |
8829 | case "(($ac_try" in |
8886 | case "(($ac_try" in |
8830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
8852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8853 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8910 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8854 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8911 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8855 | |
8912 | |
8856 | # Is the header present? |
8913 | # Is the header present? |
8857 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8914 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8858 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8915 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
8859 | cat >conftest.$ac_ext <<_ACEOF |
8916 | cat >conftest.$ac_ext <<_ACEOF |
8860 | /* confdefs.h. */ |
8917 | /* confdefs.h. */ |
8861 | _ACEOF |
8918 | _ACEOF |
8862 | cat confdefs.h >>conftest.$ac_ext |
8919 | cat confdefs.h >>conftest.$ac_ext |
8863 | cat >>conftest.$ac_ext <<_ACEOF |
8920 | cat >>conftest.$ac_ext <<_ACEOF |
8864 | /* end confdefs.h. */ |
8921 | /* end confdefs.h. */ |
8865 | #include <utmp.h> |
8922 | #include <$ac_header> |
8866 | _ACEOF |
8923 | _ACEOF |
8867 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8924 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8868 | case "(($ac_try" in |
8925 | case "(($ac_try" in |
8869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8870 | *) ac_try_echo=$ac_try;; |
8927 | *) ac_try_echo=$ac_try;; |
… | |
… | |
8893 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8950 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8894 | |
8951 | |
8895 | # So? What about this header? |
8952 | # So? What about this header? |
8896 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8953 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8897 | yes:no: ) |
8954 | yes:no: ) |
8898 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8955 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8899 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8956 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8900 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8901 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8958 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
8902 | ac_header_preproc=yes |
8959 | ac_header_preproc=yes |
8903 | ;; |
8960 | ;; |
8904 | no:yes:* ) |
8961 | no:yes:* ) |
8905 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8962 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8906 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8963 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
8907 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8964 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8908 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8965 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
8909 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8966 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
8910 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8967 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
8911 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8968 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
8912 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8969 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
8913 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8914 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8971 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
8915 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8972 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8916 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8973 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
8917 | |
8974 | |
8918 | ;; |
8975 | ;; |
8919 | esac |
8976 | esac |
8920 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8977 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8921 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8922 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8979 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8924 | else |
8981 | else |
8925 | ac_cv_header_utmp_h=$ac_header_preproc |
8982 | eval "$as_ac_Header=\$ac_header_preproc" |
8926 | fi |
8983 | fi |
|
|
8984 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8927 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8985 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
8928 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8986 | echo "${ECHO_T}$ac_res" >&6; } |
8929 | |
8987 | |
8930 | fi |
8988 | fi |
8931 | if test $ac_cv_header_utmp_h = yes; then |
8989 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
8990 | cat >>confdefs.h <<_ACEOF |
|
|
8991 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
8992 | _ACEOF |
8932 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
8993 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
8933 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
8994 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
8934 | if test "${struct_utmp+set}" = set; then |
8995 | if test "${struct_utmp+set}" = set; then |
8935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8936 | else |
8997 | else |
8937 | cat >conftest.$ac_ext <<_ACEOF |
8998 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
9104 | |
9165 | |
9105 | fi |
9166 | fi |
9106 | |
9167 | |
9107 | fi |
9168 | fi |
9108 | |
9169 | |
|
|
9170 | done |
9109 | |
9171 | |
9110 | |
9172 | |
9111 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9173 | |
|
|
9174 | for ac_header in utmpx.h |
|
|
9175 | do |
|
|
9176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
9177 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9112 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9178 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9113 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9114 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9180 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9116 | fi |
9182 | fi |
|
|
9183 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9117 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9184 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9118 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9185 | echo "${ECHO_T}$ac_res" >&6; } |
9119 | else |
9186 | else |
9120 | # Is the header compilable? |
9187 | # Is the header compilable? |
9121 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
9188 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9122 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
9189 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
9123 | cat >conftest.$ac_ext <<_ACEOF |
9190 | cat >conftest.$ac_ext <<_ACEOF |
9124 | /* confdefs.h. */ |
9191 | /* confdefs.h. */ |
9125 | _ACEOF |
9192 | _ACEOF |
9126 | cat confdefs.h >>conftest.$ac_ext |
9193 | cat confdefs.h >>conftest.$ac_ext |
9127 | cat >>conftest.$ac_ext <<_ACEOF |
9194 | cat >>conftest.$ac_ext <<_ACEOF |
9128 | /* end confdefs.h. */ |
9195 | /* end confdefs.h. */ |
9129 | $ac_includes_default |
9196 | $ac_includes_default |
9130 | #include <utmpx.h> |
9197 | #include <$ac_header> |
9131 | _ACEOF |
9198 | _ACEOF |
9132 | rm -f conftest.$ac_objext |
9199 | rm -f conftest.$ac_objext |
9133 | if { (ac_try="$ac_compile" |
9200 | if { (ac_try="$ac_compile" |
9134 | case "(($ac_try" in |
9201 | case "(($ac_try" in |
9135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
9157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9158 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9225 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9159 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
9226 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
9160 | |
9227 | |
9161 | # Is the header present? |
9228 | # Is the header present? |
9162 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
9229 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9163 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
9230 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
9164 | cat >conftest.$ac_ext <<_ACEOF |
9231 | cat >conftest.$ac_ext <<_ACEOF |
9165 | /* confdefs.h. */ |
9232 | /* confdefs.h. */ |
9166 | _ACEOF |
9233 | _ACEOF |
9167 | cat confdefs.h >>conftest.$ac_ext |
9234 | cat confdefs.h >>conftest.$ac_ext |
9168 | cat >>conftest.$ac_ext <<_ACEOF |
9235 | cat >>conftest.$ac_ext <<_ACEOF |
9169 | /* end confdefs.h. */ |
9236 | /* end confdefs.h. */ |
9170 | #include <utmpx.h> |
9237 | #include <$ac_header> |
9171 | _ACEOF |
9238 | _ACEOF |
9172 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9239 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9173 | case "(($ac_try" in |
9240 | case "(($ac_try" in |
9174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9175 | *) ac_try_echo=$ac_try;; |
9242 | *) ac_try_echo=$ac_try;; |
… | |
… | |
9198 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9265 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9199 | |
9266 | |
9200 | # So? What about this header? |
9267 | # So? What about this header? |
9201 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9268 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9202 | yes:no: ) |
9269 | yes:no: ) |
9203 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9270 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9204 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9271 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9205 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9272 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9206 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9273 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
9207 | ac_header_preproc=yes |
9274 | ac_header_preproc=yes |
9208 | ;; |
9275 | ;; |
9209 | no:yes:* ) |
9276 | no:yes:* ) |
9210 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9277 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9211 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9278 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
9212 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9279 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9213 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9280 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
9214 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9281 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
9215 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9282 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
9216 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9283 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
9217 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9284 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
9218 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9285 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9219 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9286 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
9220 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9287 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9221 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9288 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
9222 | |
9289 | |
9223 | ;; |
9290 | ;; |
9224 | esac |
9291 | esac |
9225 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9292 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9226 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9293 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9227 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9294 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9229 | else |
9296 | else |
9230 | ac_cv_header_utmpx_h=$ac_header_preproc |
9297 | eval "$as_ac_Header=\$ac_header_preproc" |
9231 | fi |
9298 | fi |
|
|
9299 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9232 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9300 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9233 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9301 | echo "${ECHO_T}$ac_res" >&6; } |
9234 | |
9302 | |
9235 | fi |
9303 | fi |
9236 | if test $ac_cv_header_utmpx_h = yes; then |
9304 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9305 | cat >>confdefs.h <<_ACEOF |
|
|
9306 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9307 | _ACEOF |
9237 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9308 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9238 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9309 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9239 | if test "${struct_utmpx+set}" = set; then |
9310 | if test "${struct_utmpx+set}" = set; then |
9240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9241 | else |
9312 | else |
9242 | cat >conftest.$ac_ext <<_ACEOF |
9313 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
9409 | |
9480 | |
9410 | fi |
9481 | fi |
9411 | |
9482 | |
9412 | fi |
9483 | fi |
9413 | |
9484 | |
|
|
9485 | done |
9414 | |
9486 | |
9415 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9487 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9416 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9488 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9417 | if test "${struct_lastlog+set}" = set; then |
9489 | if test "${struct_lastlog+set}" = set; then |
9418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
10488 | |
10560 | |
10489 | |
10561 | |
10490 | |
10562 | |
10491 | |
10563 | |
10492 | |
10564 | |
|
|
10565 | |
10493 | for ac_header in \ |
10566 | for ac_header in \ |
10494 | pty.h \ |
10567 | pty.h \ |
10495 | util.h \ |
10568 | util.h \ |
10496 | libutil.h \ |
10569 | libutil.h \ |
10497 | sys/ioctl.h \ |
10570 | sys/ioctl.h \ |
10498 | sys/stropts.h \ |
10571 | sys/stropts.h \ |
|
|
10572 | stropts.h \ |
10499 | |
10573 | |
10500 | do |
10574 | do |
10501 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10575 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10502 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10503 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10577 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |