[PATCH 1/1] configure: Use AC_CHECK_FUNCS to define HAVE_GETTID