cmake HAVE_SGTTYB examples

SWI-Prolog/swipl-devel cmake/Config.cmake :234

check_function_exists(sgttyb HAVE_SGTTYB)