cmake HAVE_GRANTPT examples

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

check_function_exists(grantpt HAVE_GRANTPT)