diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-15 22:42:15 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-15 22:42:15 +0300 |
commit | 3d47e0edfe9dbac583f54cb265063efb9d37fa38 (patch) | |
tree | e9f3e90fa01262d116bad5a7f962f27d76207322 /configure | |
parent | cafcfc7d7f2341951b82e4511efc19b84afa4031 (diff) | |
parent | ac0ef52fe407b89c7968b927c7b2b513cc13963a (diff) | |
download | egawk-3d47e0edfe9dbac583f54cb265063efb9d37fa38.tar.gz egawk-3d47e0edfe9dbac583f54cb265063efb9d37fa38.tar.bz2 egawk-3d47e0edfe9dbac583f54cb265063efb9d37fa38.zip |
Merge branch 'gawk-4.1-stable'
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 |