diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-17 08:02:51 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-17 08:02:51 +0300 |
commit | 76e1f5bfee032dbcb5c19b3e4e92f96aa05731c3 (patch) | |
tree | 30fc36317c233851cb339d3d985b075eddace130 /configure | |
parent | b415aad108eefea24d5195c29daa2eb54d025b00 (diff) | |
parent | 3d47e0edfe9dbac583f54cb265063efb9d37fa38 (diff) | |
download | egawk-76e1f5bfee032dbcb5c19b3e4e92f96aa05731c3.tar.gz egawk-76e1f5bfee032dbcb5c19b3e4e92f96aa05731c3.tar.bz2 egawk-76e1f5bfee032dbcb5c19b3e4e92f96aa05731c3.zip |
Merge branch 'master' into feature/cmake
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 41 |
1 files changed, 40 insertions, 1 deletions
@@ -10798,7 +10798,46 @@ $as_echo "$_found_readline" >&6; } if test $_found_readline = yes ; then case $host_os in - *bsd* ) _combo="$_combo -ltermcap" + *bsd* ) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 +$as_echo_n "checking for tgetent in -ltermcap... " >&6; } +if ${ac_cv_lib_termcap_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltermcap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_termcap_tgetent=yes +else + ac_cv_lib_termcap_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 +$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : + _combo="$_combo -ltermcap" +fi + ;; esac |