| 4567 | | echo "$as_me:$LINENO: checking for main in -ltermcap" >&5 |
|---|
| 4568 | | echo $ECHO_N "checking for main in -ltermcap... $ECHO_C" >&6 |
|---|
| 4569 | | if test "${ac_cv_lib_termcap_main+set}" = set; then |
|---|
| | 4567 | |
|---|
| | 4568 | for ac_header in term.h |
|---|
| | 4569 | do |
|---|
| | 4570 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|---|
| | 4571 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 4572 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| | 4573 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| | 4574 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 4575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 4576 | fi |
|---|
| | 4577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| | 4578 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| | 4579 | else |
|---|
| | 4580 | # Is the header compilable? |
|---|
| | 4581 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|---|
| | 4582 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|---|
| | 4583 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4584 | #line $LINENO "configure" |
|---|
| | 4585 | /* confdefs.h. */ |
|---|
| | 4586 | _ACEOF |
|---|
| | 4587 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4588 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4589 | /* end confdefs.h. */ |
|---|
| | 4590 | $ac_includes_default |
|---|
| | 4591 | #include <$ac_header> |
|---|
| | 4592 | _ACEOF |
|---|
| | 4593 | rm -f conftest.$ac_objext |
|---|
| | 4594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 4595 | (eval $ac_compile) 2>&5 |
|---|
| | 4596 | ac_status=$? |
|---|
| | 4597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4598 | (exit $ac_status); } && |
|---|
| | 4599 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 4600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 4601 | (eval $ac_try) 2>&5 |
|---|
| | 4602 | ac_status=$? |
|---|
| | 4603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4604 | (exit $ac_status); }; }; then |
|---|
| | 4605 | ac_header_compiler=yes |
|---|
| | 4606 | else |
|---|
| | 4607 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4608 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4609 | |
|---|
| | 4610 | ac_header_compiler=no |
|---|
| | 4611 | fi |
|---|
| | 4612 | rm -f conftest.$ac_objext conftest.$ac_ext |
|---|
| | 4613 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|---|
| | 4614 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|---|
| | 4615 | |
|---|
| | 4616 | # Is the header present? |
|---|
| | 4617 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|---|
| | 4618 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|---|
| | 4619 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4620 | #line $LINENO "configure" |
|---|
| | 4621 | /* confdefs.h. */ |
|---|
| | 4622 | _ACEOF |
|---|
| | 4623 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4624 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4625 | /* end confdefs.h. */ |
|---|
| | 4626 | #include <$ac_header> |
|---|
| | 4627 | _ACEOF |
|---|
| | 4628 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| | 4629 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| | 4630 | ac_status=$? |
|---|
| | 4631 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 4632 | rm -f conftest.er1 |
|---|
| | 4633 | cat conftest.err >&5 |
|---|
| | 4634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4635 | (exit $ac_status); } >/dev/null; then |
|---|
| | 4636 | if test -s conftest.err; then |
|---|
| | 4637 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| | 4638 | else |
|---|
| | 4639 | ac_cpp_err= |
|---|
| | 4640 | fi |
|---|
| | 4641 | else |
|---|
| | 4642 | ac_cpp_err=yes |
|---|
| | 4643 | fi |
|---|
| | 4644 | if test -z "$ac_cpp_err"; then |
|---|
| | 4645 | ac_header_preproc=yes |
|---|
| | 4646 | else |
|---|
| | 4647 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4648 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4649 | |
|---|
| | 4650 | ac_header_preproc=no |
|---|
| | 4651 | fi |
|---|
| | 4652 | rm -f conftest.err conftest.$ac_ext |
|---|
| | 4653 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|---|
| | 4654 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|---|
| | 4655 | |
|---|
| | 4656 | # So? What about this header? |
|---|
| | 4657 | case $ac_header_compiler:$ac_header_preproc in |
|---|
| | 4658 | yes:no ) |
|---|
| | 4659 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|---|
| | 4660 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|---|
| | 4661 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| | 4662 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| | 4663 | ( |
|---|
| | 4664 | cat <<\_ASBOX |
|---|
| | 4665 | ## ------------------------------------ ## |
|---|
| | 4666 | ## Report this to bug-autoconf@gnu.org. ## |
|---|
| | 4667 | ## ------------------------------------ ## |
|---|
| | 4668 | _ASBOX |
|---|
| | 4669 | ) | |
|---|
| | 4670 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| | 4671 | ;; |
|---|
| | 4672 | no:yes ) |
|---|
| | 4673 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|---|
| | 4674 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|---|
| | 4675 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|---|
| | 4676 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|---|
| | 4677 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| | 4678 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| | 4679 | ( |
|---|
| | 4680 | cat <<\_ASBOX |
|---|
| | 4681 | ## ------------------------------------ ## |
|---|
| | 4682 | ## Report this to bug-autoconf@gnu.org. ## |
|---|
| | 4683 | ## ------------------------------------ ## |
|---|
| | 4684 | _ASBOX |
|---|
| | 4685 | ) | |
|---|
| | 4686 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| | 4687 | ;; |
|---|
| | 4688 | esac |
|---|
| | 4689 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| | 4690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| | 4691 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 4692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 4693 | else |
|---|
| | 4694 | eval "$as_ac_Header=$ac_header_preproc" |
|---|
| | 4695 | fi |
|---|
| | 4696 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| | 4697 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| | 4698 | |
|---|
| | 4699 | fi |
|---|
| | 4700 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|---|
| | 4701 | cat >>confdefs.h <<_ACEOF |
|---|
| | 4702 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| | 4703 | _ACEOF |
|---|
| | 4704 | |
|---|
| | 4705 | echo "$as_me:$LINENO: checking for tgoto" >&5 |
|---|
| | 4706 | echo $ECHO_N "checking for tgoto... $ECHO_C" >&6 |
|---|
| | 4707 | if test "${ac_cv_func_tgoto+set}" = set; then |
|---|
| | 4708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 4709 | else |
|---|
| | 4710 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4711 | #line $LINENO "configure" |
|---|
| | 4712 | /* confdefs.h. */ |
|---|
| | 4713 | _ACEOF |
|---|
| | 4714 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4715 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4716 | /* end confdefs.h. */ |
|---|
| | 4717 | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| | 4718 | which can conflict with char tgoto (); below. |
|---|
| | 4719 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| | 4720 | <limits.h> exists even on freestanding compilers. */ |
|---|
| | 4721 | #ifdef __STDC__ |
|---|
| | 4722 | # include <limits.h> |
|---|
| | 4723 | #else |
|---|
| | 4724 | # include <assert.h> |
|---|
| | 4725 | #endif |
|---|
| | 4726 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| | 4727 | #ifdef __cplusplus |
|---|
| | 4728 | extern "C" |
|---|
| | 4729 | { |
|---|
| | 4730 | #endif |
|---|
| | 4731 | /* We use char because int might match the return type of a gcc2 |
|---|
| | 4732 | builtin and then its argument prototype would still apply. */ |
|---|
| | 4733 | char tgoto (); |
|---|
| | 4734 | /* The GNU C library defines this for functions which it implements |
|---|
| | 4735 | to always fail with ENOSYS. Some functions are actually named |
|---|
| | 4736 | something starting with __ and the normal name is an alias. */ |
|---|
| | 4737 | #if defined (__stub_tgoto) || defined (__stub___tgoto) |
|---|
| | 4738 | choke me |
|---|
| | 4739 | #else |
|---|
| | 4740 | char (*f) () = tgoto; |
|---|
| | 4741 | #endif |
|---|
| | 4742 | #ifdef __cplusplus |
|---|
| | 4743 | } |
|---|
| | 4744 | #endif |
|---|
| | 4745 | |
|---|
| | 4746 | int |
|---|
| | 4747 | main () |
|---|
| | 4748 | { |
|---|
| | 4749 | return f != tgoto; |
|---|
| | 4750 | ; |
|---|
| | 4751 | return 0; |
|---|
| | 4752 | } |
|---|
| | 4753 | _ACEOF |
|---|
| | 4754 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 4755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 4756 | (eval $ac_link) 2>&5 |
|---|
| | 4757 | ac_status=$? |
|---|
| | 4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4759 | (exit $ac_status); } && |
|---|
| | 4760 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 4761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 4762 | (eval $ac_try) 2>&5 |
|---|
| | 4763 | ac_status=$? |
|---|
| | 4764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4765 | (exit $ac_status); }; }; then |
|---|
| | 4766 | ac_cv_func_tgoto=yes |
|---|
| | 4767 | else |
|---|
| | 4768 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4769 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4770 | |
|---|
| | 4771 | ac_cv_func_tgoto=no |
|---|
| | 4772 | fi |
|---|
| | 4773 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|---|
| | 4774 | fi |
|---|
| | 4775 | echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5 |
|---|
| | 4776 | echo "${ECHO_T}$ac_cv_func_tgoto" >&6 |
|---|
| | 4777 | if test $ac_cv_func_tgoto = yes; then |
|---|
| | 4778 | : |
|---|
| | 4779 | else |
|---|
| | 4780 | |
|---|
| | 4781 | echo "$as_me:$LINENO: checking for tgoto in -ltermcap" >&5 |
|---|
| | 4782 | echo $ECHO_N "checking for tgoto in -ltermcap... $ECHO_C" >&6 |
|---|
| | 4783 | if test "${ac_cv_lib_termcap_tgoto+set}" = set; then |
|---|
| 4613 | | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_main" >&5 |
|---|
| 4614 | | echo "${ECHO_T}$ac_cv_lib_termcap_main" >&6 |
|---|
| 4615 | | if test $ac_cv_lib_termcap_main = yes; then |
|---|
| 4616 | | |
|---|
| 4617 | | LIBS="$LIBS -ltermcap" |
|---|
| 4618 | | |
|---|
| 4619 | | fi |
|---|
| | 4833 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgoto" >&5 |
|---|
| | 4834 | echo "${ECHO_T}$ac_cv_lib_termcap_tgoto" >&6 |
|---|
| | 4835 | if test $ac_cv_lib_termcap_tgoto = yes; then |
|---|
| | 4836 | |
|---|
| | 4837 | LIBS="$LIBS -ltermcap" |
|---|
| | 4838 | |
|---|
| | 4839 | else |
|---|
| | 4840 | |
|---|
| | 4841 | echo "$as_me:$LINENO: checking for tgoto in -lcurses" >&5 |
|---|
| | 4842 | echo $ECHO_N "checking for tgoto in -lcurses... $ECHO_C" >&6 |
|---|
| | 4843 | if test "${ac_cv_lib_curses_tgoto+set}" = set; then |
|---|
| | 4844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 4845 | else |
|---|
| | 4846 | ac_check_lib_save_LIBS=$LIBS |
|---|
| | 4847 | LIBS="-lcurses $LIBS" |
|---|
| | 4848 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4849 | #line $LINENO "configure" |
|---|
| | 4850 | /* confdefs.h. */ |
|---|
| | 4851 | _ACEOF |
|---|
| | 4852 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4853 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4854 | /* end confdefs.h. */ |
|---|
| | 4855 | |
|---|
| | 4856 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| | 4857 | #ifdef __cplusplus |
|---|
| | 4858 | extern "C" |
|---|
| | 4859 | #endif |
|---|
| | 4860 | /* We use char because int might match the return type of a gcc2 |
|---|
| | 4861 | builtin and then its argument prototype would still apply. */ |
|---|
| | 4862 | char tgoto (); |
|---|
| | 4863 | int |
|---|
| | 4864 | main () |
|---|
| | 4865 | { |
|---|
| | 4866 | tgoto (); |
|---|
| | 4867 | ; |
|---|
| | 4868 | return 0; |
|---|
| | 4869 | } |
|---|
| | 4870 | _ACEOF |
|---|
| | 4871 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 4872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 4873 | (eval $ac_link) 2>&5 |
|---|
| | 4874 | ac_status=$? |
|---|
| | 4875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4876 | (exit $ac_status); } && |
|---|
| | 4877 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 4878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 4879 | (eval $ac_try) 2>&5 |
|---|
| | 4880 | ac_status=$? |
|---|
| | 4881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4882 | (exit $ac_status); }; }; then |
|---|
| | 4883 | ac_cv_lib_curses_tgoto=yes |
|---|
| | 4884 | else |
|---|
| | 4885 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4886 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4887 | |
|---|
| | 4888 | ac_cv_lib_curses_tgoto=no |
|---|
| | 4889 | fi |
|---|
| | 4890 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|---|
| | 4891 | LIBS=$ac_check_lib_save_LIBS |
|---|
| | 4892 | fi |
|---|
| | 4893 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgoto" >&5 |
|---|
| | 4894 | echo "${ECHO_T}$ac_cv_lib_curses_tgoto" >&6 |
|---|
| | 4895 | if test $ac_cv_lib_curses_tgoto = yes; then |
|---|
| | 4896 | |
|---|
| | 4897 | LIBS="$LIBS -lcurses" |
|---|
| | 4898 | |
|---|
| | 4899 | fi |
|---|
| | 4900 | |
|---|
| | 4901 | |
|---|
| | 4902 | fi |
|---|
| | 4903 | |
|---|
| | 4904 | |
|---|
| | 4905 | fi |
|---|
| | 4906 | |
|---|
| | 4907 | |
|---|
| | 4908 | fi |
|---|
| | 4909 | |
|---|
| | 4910 | done |
|---|