What does this line means - "ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default""

What is that we are trying to do with below code:

ac_fn_c_check_header_compile “$LINENO” “ncurses.h” “ac_cv_header_ncurses_h” “$ac_includes_default”

It calls the sh function ac_fn_c_check_header_compile


#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for python 3.9.
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()