|
1 | 1 | #! /bin/sh |
2 | | -# From configure.in Revision: 41923 . |
| 2 | +# From configure.in Revision: 41924 . |
3 | 3 | # Guess values for system-dependent variables and create Makefiles. |
4 | 4 | # Generated by GNU Autoconf 2.59 for python 2.5. |
5 | 5 | # |
@@ -19694,14 +19694,167 @@ _ACEOF |
19694 | 19694 |
|
19695 | 19695 | fi |
19696 | 19696 |
|
| 19697 | +# check where readline lives |
| 19698 | + |
| 19699 | +echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 19700 | +echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| 19701 | +if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 19702 | + echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19703 | +else |
| 19704 | + ac_check_lib_save_LIBS=$LIBS |
| 19705 | +LIBS="-lreadline $LIBS" |
| 19706 | +cat >conftest.$ac_ext <<_ACEOF |
| 19707 | +/* confdefs.h. */ |
| 19708 | +_ACEOF |
| 19709 | +cat confdefs.h >>conftest.$ac_ext |
| 19710 | +cat >>conftest.$ac_ext <<_ACEOF |
| 19711 | +/* end confdefs.h. */ |
| 19712 | + |
| 19713 | +/* Override any gcc2 internal prototype to avoid an error. */ |
| 19714 | +#ifdef __cplusplus |
| 19715 | +extern "C" |
| 19716 | +#endif |
| 19717 | +/* We use char because int might match the return type of a gcc2 |
| 19718 | + builtin and then its argument prototype would still apply. */ |
| 19719 | +char readline (); |
| 19720 | +int |
| 19721 | +main () |
| 19722 | +{ |
| 19723 | +readline (); |
| 19724 | + ; |
| 19725 | + return 0; |
| 19726 | +} |
| 19727 | +_ACEOF |
| 19728 | +rm -f conftest.$ac_objext conftest$ac_exeext |
| 19729 | +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19730 | + (eval $ac_link) 2>conftest.er1 |
| 19731 | + ac_status=$? |
| 19732 | + grep -v '^ *+' conftest.er1 >conftest.err |
| 19733 | + rm -f conftest.er1 |
| 19734 | + cat conftest.err >&5 |
| 19735 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19736 | + (exit $ac_status); } && |
| 19737 | + { ac_try='test -z "$ac_c_werror_flag" |
| 19738 | + || test ! -s conftest.err' |
| 19739 | + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19740 | + (eval $ac_try) 2>&5 |
| 19741 | + ac_status=$? |
| 19742 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19743 | + (exit $ac_status); }; } && |
| 19744 | + { ac_try='test -s conftest$ac_exeext' |
| 19745 | + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19746 | + (eval $ac_try) 2>&5 |
| 19747 | + ac_status=$? |
| 19748 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19749 | + (exit $ac_status); }; }; then |
| 19750 | + ac_cv_lib_readline_readline=yes |
| 19751 | +else |
| 19752 | + echo "$as_me: failed program was:" >&5 |
| 19753 | +sed 's/^/| /' conftest.$ac_ext >&5 |
| 19754 | + |
| 19755 | +ac_cv_lib_readline_readline=no |
| 19756 | +fi |
| 19757 | +rm -f conftest.err conftest.$ac_objext \ |
| 19758 | + conftest$ac_exeext conftest.$ac_ext |
| 19759 | +LIBS=$ac_check_lib_save_LIBS |
| 19760 | +fi |
| 19761 | +echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 19762 | +echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| 19763 | +if test $ac_cv_lib_readline_readline = yes; then |
| 19764 | + cat >>confdefs.h <<_ACEOF |
| 19765 | +#define HAVE_LIBREADLINE 1 |
| 19766 | +_ACEOF |
| 19767 | + |
| 19768 | + LIBS="-lreadline $LIBS" |
| 19769 | + |
| 19770 | +fi |
| 19771 | + |
| 19772 | +if test "$ac_cv_have_readline_readline" = no |
| 19773 | +then |
| 19774 | + |
| 19775 | +echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5 |
| 19776 | +echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6 |
| 19777 | +if test "${ac_cv_lib_termcap_readline+set}" = set; then |
| 19778 | + echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19779 | +else |
| 19780 | + ac_check_lib_save_LIBS=$LIBS |
| 19781 | +LIBS="-ltermcap $LIBS" |
| 19782 | +cat >conftest.$ac_ext <<_ACEOF |
| 19783 | +/* confdefs.h. */ |
| 19784 | +_ACEOF |
| 19785 | +cat confdefs.h >>conftest.$ac_ext |
| 19786 | +cat >>conftest.$ac_ext <<_ACEOF |
| 19787 | +/* end confdefs.h. */ |
| 19788 | + |
| 19789 | +/* Override any gcc2 internal prototype to avoid an error. */ |
| 19790 | +#ifdef __cplusplus |
| 19791 | +extern "C" |
| 19792 | +#endif |
| 19793 | +/* We use char because int might match the return type of a gcc2 |
| 19794 | + builtin and then its argument prototype would still apply. */ |
| 19795 | +char readline (); |
| 19796 | +int |
| 19797 | +main () |
| 19798 | +{ |
| 19799 | +readline (); |
| 19800 | + ; |
| 19801 | + return 0; |
| 19802 | +} |
| 19803 | +_ACEOF |
| 19804 | +rm -f conftest.$ac_objext conftest$ac_exeext |
| 19805 | +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19806 | + (eval $ac_link) 2>conftest.er1 |
| 19807 | + ac_status=$? |
| 19808 | + grep -v '^ *+' conftest.er1 >conftest.err |
| 19809 | + rm -f conftest.er1 |
| 19810 | + cat conftest.err >&5 |
| 19811 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19812 | + (exit $ac_status); } && |
| 19813 | + { ac_try='test -z "$ac_c_werror_flag" |
| 19814 | + || test ! -s conftest.err' |
| 19815 | + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19816 | + (eval $ac_try) 2>&5 |
| 19817 | + ac_status=$? |
| 19818 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19819 | + (exit $ac_status); }; } && |
| 19820 | + { ac_try='test -s conftest$ac_exeext' |
| 19821 | + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19822 | + (eval $ac_try) 2>&5 |
| 19823 | + ac_status=$? |
| 19824 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19825 | + (exit $ac_status); }; }; then |
| 19826 | + ac_cv_lib_termcap_readline=yes |
| 19827 | +else |
| 19828 | + echo "$as_me: failed program was:" >&5 |
| 19829 | +sed 's/^/| /' conftest.$ac_ext >&5 |
| 19830 | + |
| 19831 | +ac_cv_lib_termcap_readline=no |
| 19832 | +fi |
| 19833 | +rm -f conftest.err conftest.$ac_objext \ |
| 19834 | + conftest$ac_exeext conftest.$ac_ext |
| 19835 | +LIBS=$ac_check_lib_save_LIBS |
| 19836 | +fi |
| 19837 | +echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5 |
| 19838 | +echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6 |
| 19839 | +if test $ac_cv_lib_termcap_readline = yes; then |
| 19840 | + cat >>confdefs.h <<_ACEOF |
| 19841 | +#define HAVE_LIBTERMCAP 1 |
| 19842 | +_ACEOF |
| 19843 | + |
| 19844 | + LIBS="-ltermcap $LIBS" |
| 19845 | + |
| 19846 | +fi |
| 19847 | + |
| 19848 | +fi |
| 19849 | + |
19697 | 19850 | # check for readline 2.1 |
19698 | 19851 | echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
19699 | 19852 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6 |
19700 | 19853 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
19701 | 19854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19702 | 19855 | else |
19703 | 19856 | ac_check_lib_save_LIBS=$LIBS |
19704 | | -LIBS="-lreadline -ltermcap $LIBS" |
| 19857 | +LIBS="-lreadline $LIBS" |
19705 | 19858 | cat >conftest.$ac_ext <<_ACEOF |
19706 | 19859 | /* confdefs.h. */ |
19707 | 19860 | _ACEOF |
@@ -19833,7 +19986,7 @@ if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
19833 | 19986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19834 | 19987 | else |
19835 | 19988 | ac_check_lib_save_LIBS=$LIBS |
19836 | | -LIBS="-lreadline -ltermcap $LIBS" |
| 19989 | +LIBS="-lreadline $LIBS" |
19837 | 19990 | cat >conftest.$ac_ext <<_ACEOF |
19838 | 19991 | /* confdefs.h. */ |
19839 | 19992 | _ACEOF |
@@ -19907,7 +20060,7 @@ if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
19907 | 20060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19908 | 20061 | else |
19909 | 20062 | ac_check_lib_save_LIBS=$LIBS |
19910 | | -LIBS="-lreadline -ltermcap $LIBS" |
| 20063 | +LIBS="-lreadline $LIBS" |
19911 | 20064 | cat >conftest.$ac_ext <<_ACEOF |
19912 | 20065 | /* confdefs.h. */ |
19913 | 20066 | _ACEOF |
|
0 commit comments