Hello, Nikita Karetnikov <nik...@karetnikov.org> writes:
> How can I dump the actual code that AC_CHECK_FUNCS expands to? > https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Generic-Functions.html > In other words, what exactly is used to determine whether a function is > available or not? Since the result is stored in the 'ac_cv_func_FUNCTION' variable, you can search for it in the generated configure script. You will find something like: --8<---------------cut here---------------start------------->8--- ac_fn_c_check_func "$LINENO" "foo" "ac_cv_func_foo" if test "x$ac_cv_func_foo" = xyes; then : --8<---------------cut here---------------end--------------->8--- then, you can you check the shell function 'ac_fn_c_check_func ()' to see the code snippet used. Does it answer your question? -- Mathieu Lirzin _______________________________________________ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf